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
avoid CR
slightly more efficient and maintainable structure using #titleparts:
Line 1: Line 1:
{{#if:{{Str endswith|{{PAGENAME}}|/sandbox}}{{Str endswith|{{PAGENAME}}|/sandbox/doc}}<!--
{{SandboxDocumentation/core
-->|<!-- SANDBOX DOCUMENTATION:
  |template ={{#if: {{{template|}}}
-->;Usage
                | {{{template|}}}
:This template is used to test changes in {{SandboxDocumentation/page|template={{{template|}}}}}.
                | {{#ifeq: {{lc:{{#titleparts:{{PAGENAME}}}} | 1 | -1 }} | doc
:When you have validated/tested your modification(s) in {{SandboxDocumentation/page|template={{{template|}}}|subpage=/testcases}}, just {{#if:{{{protected|}}}|ask an [[:Commons:Administrators|administrator]] to }} copy the code from {{SandboxDocumentation/page|template={{{template|}}}|subpage=/sandbox}} to {{SandboxDocumentation/page|template={{{template|}}}}}.<!--
                              | {{#ifeq: {{lc:{{#titleparts: {{PAGENAME}}}} | 1 | -2 }} | sandbox
-->|<!-- REAL TEMPLATE DOCUMENTATION:
                                          | {{#titleparts: {{PAGENAME}} | | -2 }}
-->'''{{Note:}}''' If you want to modify this template, first modify {{SandboxDocumentation/page|template={{{template|}}}|subpage=/sandbox}}, then test the sandbox template in {{SandboxDocumentation/page|template={{{template|}}}|subpage=/testcases}}, finally {{#if:{{{protected|}}}|ask an [[:Commons:Administrators|administrator]] to }} copy the sandbox code into the real template.<!--
                                          | {{#titleparts: {{PAGENAME}} | | -1 }}
-->}}<!--
                                }}
-->{{#if:{{Str endswith|{{PAGENAME}}|/sandbox}}|[[Category:Sandbox templates]]}}<noinclude>
                              | {{#ifeq: {{lc:{{#titleparts: {{PAGENAME}}}} | 1 | -1 }} | sandbox
 
                                          | {{#titleparts: {{PAGENAME}} | | -1 }}
{{documentation}}
                                          | {{PAGENAME}}
 
                                }}
</noinclude>
                  }}
              }}
  |type={{#ifeq: {{lc:{{#titleparts: {{PAGENAME}}}} | 1 | -1 }} | sandbox
                    | sandbox
                    | {{#ifeq: {{lc:{{#titleparts: {{PAGENAME}}}} | 1 | -2 }} | sandbox | sandbox }}
          }}
  |protected={{{protected|}}}
}}

Revision as of 06:44, 15 September 2011

Note: if you want to edit this template, first try your modifications on {{SandboxDocumentation/sandbox}}.You can then test your edits in {{SandboxDocumentation/testcases}}.
When the new version is ready, you can move it to the main template.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.