Template:SandboxDocumentation: Difference between revisions
Template page
More actions
avoid CR |
slightly more efficient and maintainable structure using #titleparts: |
||
| Line 1: | Line 1: | ||
{{#if:{{ | {{SandboxDocumentation/core | ||
|template ={{#if: {{{template|}}} | |||
| {{{template|}}} | |||
: | | {{#ifeq: {{lc:{{#titleparts:{{PAGENAME}}}} | 1 | -1 }} | doc | ||
: | | {{#ifeq: {{lc:{{#titleparts: {{PAGENAME}}}} | 1 | -2 }} | sandbox | ||
| {{#titleparts: {{PAGENAME}} | | -2 }} | |||
| {{#titleparts: {{PAGENAME}} | | -1 }} | |||
}} | |||
| {{#ifeq: {{lc:{{#titleparts: {{PAGENAME}}}} | 1 | -1 }} | sandbox | |||
| {{#titleparts: {{PAGENAME}} | | -1 }} | |||
{{ | | {{PAGENAME}} | ||
}} | |||
}} | |||
}} | |||
|type={{#ifeq: {{lc:{{#titleparts: {{PAGENAME}}}} | 1 | -1 }} | sandbox | |||
| sandbox | |||
| {{#ifeq: {{lc:{{#titleparts: {{PAGENAME}}}} | 1 | -2 }} | sandbox | sandbox }} | |||
}} | |||
|protected={{{protected|}}} | |||
}} | |||
Revision as of 06:44, 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.