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
can also document the sandbox
sandbox_doc
 
(21 intermediate revisions by 2 users not shown)
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 {{m|Wikispecies}}.
                | {{#ifeq: {{#titleparts:{{PAGENAME}} | 1 | -1 }} | doc <!-- means 'if ends with /doc' -->
:When you have validated/tested your modification, just ask an [[:Commons:Administrators|administrator]] to copy the code from {{m|Wikispecies/sandbox}} to {{m|Wikispecies}}.<!--
                              | {{#ifeq: {{#titleparts: {{PAGENAME}} | 1 | -2 }} | sandbox<!-- means 'if ends with /sandbox/doc' -->
-->|<!-- REAL TEMPLATE DOCUMENTATION:
                                          | {{#titleparts: {{PAGENAME}} | -2 }}<!-- PAGENAME without ending /sandbox/doc -->
-->'''{{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.}}<!--
                                          | {{#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>

Latest revision as of 19:05, 18 May 2016

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.

Template documentation[ view · edit · history · purge ]

This template can be used in a template documentation (/doc page) to describe the process to modify/test the template
This template can also be used in a template sandbox documentation (/sandbox/doc page)
Note: it will add Category:Sandbox templates to /sandbox pages

Usage

{{SandboxDocumentation |template= |protected= |domain= }}

Template parameters

ParameterDescriptionDefaultStatus
templatename of the template associated with the sandbox and testcases page.(computed by the template)optional
protectedset to yes if the template is protected (modifiable only by an administrator)emptyoptional
domainThe domain of the template (for example: biology). Category:<domain> sandbox templates must exist.emptyoptional

Additional information

The template is intended to be used in the following namespaces: the Template namespace

The template is intended to be used by the following user groups: no user group specified

Relies on:
{{SandboxDocumentation/core}}

Examples

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