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
hum I should have used sandbox first ;[
rv
Line 1: Line 1:
{{SandboxDocumentation/core
{{#if:{{Str endswith|{{PAGENAME}}|/sandbox}}{{Str endswith|{{PAGENAME}}|/sandbox/doc}}<!--
  |template ={{#if: {{{template|}}}
-->|<!-- SANDBOX DOCUMENTATION:
                | {{{template|}}}
-->;Usage
                | {{#ifeq: {{lc:{{#titleparts:{{PAGENAME}} | 1 | -1 }}}} | doc
:This template is used to test changes in {{SandboxDocumentation/page|template={{{template|}}}}}.
                              | {{#ifeq: {{lc:{{#titleparts: {{PAGENAME}} | 1 | -2 }}}} | sandbox
: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|}}}}}.<!--
                                          | {{#titleparts: {{PAGENAME}} | | -2 }}
-->|<!-- REAL TEMPLATE DOCUMENTATION:
                                          | {{#titleparts: {{PAGENAME}} | | -1 }}
-->'''{{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.<!--
                                }}
-->}}<!--
                              | {{#ifeq: {{lc:{{#titleparts: {{PAGENAME}} | 1 | -1 }}}} | sandbox
-->{{#if:{{Str endswith|{{PAGENAME}}|/sandbox}}|[[Category:Sandbox templates]]}}<noinclude>
                                          | {{#titleparts: {{PAGENAME}} | | -1 }}
 
                                          | {{PAGENAME}}
                                }}
                  }}
              }}
  |type={{#ifeq: {{lc:{{#titleparts: {{PAGENAME}} | 1 | -1 }}}} | sandbox
                    | sandbox
                    | {{#ifeq: {{lc:{{#titleparts: {{PAGENAME}} | 1 | -2 }}}} | sandbox | sandbox }}
          }}
  |protected={{{protected|}}}
}}<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.
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.