Template:SandboxDocumentation: Difference between revisions
Template page
More actions
oops cats in documentation |
hum I should have used sandbox first ;[ |
||
| Line 2: | Line 2: | ||
|template ={{#if: {{{template|}}} | |template ={{#if: {{{template|}}} | ||
| {{{template|}}} | | {{{template|}}} | ||
| {{#ifeq: {{lc:{{#titleparts:{{PAGENAME | | {{#ifeq: {{lc:{{#titleparts:{{PAGENAME}} | 1 | -1 }}}} | doc | ||
| {{#ifeq: {{lc:{{#titleparts: {{PAGENAME | | {{#ifeq: {{lc:{{#titleparts: {{PAGENAME}} | 1 | -2 }}}} | sandbox | ||
| {{#titleparts: {{PAGENAME}} | | -2 }} | | {{#titleparts: {{PAGENAME}} | | -2 }} | ||
| {{#titleparts: {{PAGENAME}} | | -1 }} | | {{#titleparts: {{PAGENAME}} | | -1 }} | ||
}} | }} | ||
| {{#ifeq: {{lc:{{#titleparts: {{PAGENAME | | {{#ifeq: {{lc:{{#titleparts: {{PAGENAME}} | 1 | -1 }}}} | sandbox | ||
| {{#titleparts: {{PAGENAME}} | | -1 }} | | {{#titleparts: {{PAGENAME}} | | -1 }} | ||
| {{PAGENAME}} | | {{PAGENAME}} | ||
| Line 13: | Line 13: | ||
}} | }} | ||
}} | }} | ||
|type={{#ifeq: {{lc:{{#titleparts: {{PAGENAME | |type={{#ifeq: {{lc:{{#titleparts: {{PAGENAME}} | 1 | -1 }}}} | sandbox | ||
| sandbox | | sandbox | ||
| {{#ifeq: {{lc:{{#titleparts: {{PAGENAME | | {{#ifeq: {{lc:{{#titleparts: {{PAGENAME}} | 1 | -2 }}}} | sandbox | sandbox }} | ||
}} | }} | ||
|protected={{{protected|}}} | |protected={{{protected|}}} | ||
Revision as of 06:57, 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.
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: