Template:SandboxDocumentation: Difference between revisions
Template page
More actions
hum I should have used sandbox first ;[ |
rv |
||
| Line 1: | Line 1: | ||
{{#if:{{Str endswith|{{PAGENAME}}|/sandbox}}{{Str endswith|{{PAGENAME}}|/sandbox/doc}}<!-- | |||
-->|<!-- SANDBOX DOCUMENTATION: | |||
-->;Usage | |||
:This template is used to test changes in {{SandboxDocumentation/page|template={{{template|}}}}}. | |||
: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|}}}}}.<!-- | |||
-->|<!-- REAL TEMPLATE DOCUMENTATION: | |||
-->'''{{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.<!-- | |||
-->}}<!-- | |||
-->{{#if:{{Str endswith|{{PAGENAME}}|/sandbox}}|[[Category:Sandbox templates]]}}<noinclude> | |||
}}<noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 06:59, 15 September 2011
- Usage
- This template is used to test changes in Template:SandboxDocumentation/page.
- When you have validated/tested your modification(s) in Template:SandboxDocumentation/page, just copy the code from Template:SandboxDocumentation/page to Template:SandboxDocumentation/page.
This documentation is transcluded from Template:SandboxDocumentation/doc.
- 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
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
template | name of the template associated with the sandbox and testcases page. | (computed by the template) | optional | |
protected | set to yes if the template is protected (modifiable only by an administrator) | empty | optional | |
domain | The domain of the template (for example: biology). Category:<domain> sandbox templates must exist. | empty | optional | |
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
- protected templates:
- unprotected templates: