Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:SandboxDocumentation: Difference between revisions

Template page
{{{protected}}}
sandbox_doc
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''{{Note:}}''' If you want to modify this template, first modify {{m|{{PAGENAME}}/sandbox}}, then test the sandbox template in {{m|{{PAGENAME}}/testcases}}, then {{#if:{{{protected}}}|ask an [[:Commons:Administrators|administrator]] to copy the sandbox code into the real template|copy the sandbox code into the real template.}}
{{SandboxDocumentation/core
  |template ={{#if: {{{template|}}}
                | {{{template|}}}
                | {{#ifeq: {{#titleparts:{{PAGENAME}} | 1 | -1 }} | doc <!-- means 'if ends with /doc' -->
                              | {{#ifeq: {{#titleparts: {{PAGENAME}} | 1 | -2 }} | sandbox<!-- means 'if ends with /sandbox/doc' -->
                                          | {{#titleparts: {{PAGENAME}} | -2 }}<!-- PAGENAME without ending /sandbox/doc -->
                                          | {{#titleparts: {{PAGENAME}} | -1 }}<!-- PAGENAME without ending /doc -->
                                }}
                              | {{#ifeq: {{#titleparts: {{PAGENAME}} | 1 | -1 }} | sandbox <!-- means 'if ends with /sandbox' -->
                                          | {{#titleparts: {{PAGENAME}} | -1 }}<!-- PAGENAME without ending /sandbox -->
                                          | {{PAGENAME}}
                                }}
                  }}
              }}
  |template type={{#ifeq: {{#titleparts: {{PAGENAME}} | 1 | -1 }} | sandbox <!-- means 'if ends with /sandbox' -->
                    | sandbox
                    | {{#ifeq: {{#titleparts: {{PAGENAME}} | 1 | -2 }} | sandbox <!-- means 'if ends with /sandbox/doc' --> | sandbox_doc }}
          }}
  |protected={{{protected|}}}
  |domain={{{domain|}}}
}}<noinclude>
{{documentation}}
</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.