Template:SandboxDocumentation: Difference between revisions
Template page
More actions
suppress /doc only if PAGENAME ends with /doc |
can also document the sandbox |
||
| Line 1: | Line 1: | ||
'''{{Note:}}''' If you want to modify this template, first modify {{tl|{{#if: {{{template|}}}|{{{template|}}}|{{#if:{{Str endswith|{{PAGENAME}}|/doc}}|{{str left| {{PAGENAME}} | {{#expr: {{str len|{{PAGENAME}}}}-4}} }} |{{PAGENAME}} }} }}/sandbox}}, then test the sandbox template in {{tl|{{#if: {{{template|}}}|{{{template|}}}|{{#if:{{Str endswith|{{PAGENAME}}|/doc}}|{{str left| {{PAGENAME}} | {{#expr: {{str len|{{PAGENAME}}}}-4}} }} |{{PAGENAME}} }} }}/testcases}}, finally {{#if:{{{protected}}}|ask an [[:Commons:Administrators|administrator]] to copy the sandbox code into the real template.|copy the sandbox code into the real template.}} | {{#if:{{Str endswith|{{PAGENAME}}|/sandbox}}{{Str endswith|{{PAGENAME}}|/sandbox/doc}}<!-- | ||
-->|<!-- SANDBOX DOCUMENTATION: | |||
-->;Usage | |||
:This template is used to test changes in {{m|Wikispecies}}. | |||
:When you have validated/tested your modification, just ask an [[:Commons:Administrators|administrator]] to copy the code from {{m|Wikispecies/sandbox}} to {{m|Wikispecies}}.<!-- | |||
-->|<!-- REAL TEMPLATE DOCUMENTATION: | |||
-->'''{{Note:}}''' If you want to modify this template, first modify {{tl|{{#if: {{{template|}}}|{{{template|}}}|{{#if:{{Str endswith|{{PAGENAME}}|/doc}}|{{str left| {{PAGENAME}} | {{#expr: {{str len|{{PAGENAME}}}}-4}} }} |{{PAGENAME}} }} }}/sandbox}}, then test the sandbox template in {{tl|{{#if: {{{template|}}}|{{{template|}}}|{{#if:{{Str endswith|{{PAGENAME}}|/doc}}|{{str left| {{PAGENAME}} | {{#expr: {{str len|{{PAGENAME}}}}-4}} }} |{{PAGENAME}} }} }}/testcases}}, finally {{#if:{{{protected}}}|ask an [[:Commons:Administrators|administrator]] to copy the sandbox code into the real template.|copy the sandbox code into the real template.}}<!-- | |||
--> | |||
Revision as of 11:56, 13 September 2011
{{#if:Template:Str endswithTemplate:Str endswith|;Usage
- This template is used to test changes in Wikispecies.
- When you have validated/tested your modification, just ask an administrator to copy the code from Wikispecies/sandbox to Wikispecies.|Note: If you want to modify this template, first modify {{SandboxDocumenta/sandbox}}, then test the sandbox template in {{SandboxDocumenta/testcases}}, finally ask an administrator to copy the sandbox code into the real template.