Documentation: Difference between revisions
/>Miiohau formating |
/>Fandyllic try to fix; this template is a mess |
||
Line 1: | Line 1: | ||
{{Cleanup|This template is way too complicated withput comments to show where ifs and switches start and end.}} | |||
<includeonly>{{#ifeq:{{SITENAME}}|Templates Wiki|<div style="margin:0 1em;clear:both;"><div style="font-size:small;line-height:16px;"> | <includeonly>{{#ifeq:{{SITENAME}}|Templates Wiki|<div style="margin:0 1em;clear:both;"><div style="font-size:small;line-height:16px;"> | ||
{{#ifeq:{{{SPW}}}|is not relevant|| | {{#ifeq:{{{SPW}}}|is not relevant|| | ||
Line 49: | Line 50: | ||
| {{{1}}} | | {{{1}}} | ||
| {{FULLPAGENAME}}/doc | | {{FULLPAGENAME}}/doc | ||
}} | | }}<!--end if 1--> | | ||
View or edit [[:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}/doc}}|this documentation]]. | View or edit [[:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}/doc}}|this documentation]]. | ||
| | | | ||
Line 55: | Line 56: | ||
| {{{1}}} | | {{{1}}} | ||
| {{FULLPAGENAME}}/doc | | {{FULLPAGENAME}}/doc | ||
}} | }}<!--end if 1--> | ||
| action=edit&preload=Template:Documentation/preload | | action=edit&preload=Template:Documentation/preload | ||
}} create this documentation] | }}<!--end if content--> create this documentation] | ||
}} ([[Template:Documentation|How does this work?]]) | }}<!--end ifeq PAGENAME--> ([[Template:Documentation|How does this work?]]) | ||
{{!}}- | {{!}}- | ||
{{!}} Editors can experiment with this template's {{#if: {{{sandbox|}}} | {{#switch: {{#sub:{{lc:{{{sandbox}}}}}|0|1}} | {{!}} Editors can experiment with this template's {{#if: {{{sandbox|}}} | {{#switch: {{#sub:{{lc:{{{sandbox}}}}}|0|1}} | ||
| y | t | 1 = [[{{FULLPAGENAME}}/sandbox|sandbox]] | | y | t | 1 = [[{{FULLPAGENAME}}/sandbox|sandbox]] | ||
| #default = [{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit}} sandbox] }} | [{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit}} sandbox]}} and {{#if: {{{testcases|}}} | {{#switch: {{#sub:{{lc:{{{testcases}}}}}|0|1}} | | #default = [{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit}} sandbox] }}<!--end switch--> | [{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit}} sandbox]}}<!--end if sandbox--> and {{#if: {{{testcases|}}} | {{#switch: {{#sub:{{lc:{{{testcases}}}}}|0|1}} | ||
| y | t | 1 = [[{{FULLPAGENAME}}/testcases|test case]] | | y | t | 1 = [[{{FULLPAGENAME}}/testcases|test case]] | ||
| #default = [{{fullurl:{{FULLPAGENAME}}/testcases|action=edit}} test case] }} | [{{fullurl:{{FULLPAGENAME}}/testcases|action=edit}} test case]}} pages. | | #default = [{{fullurl:{{FULLPAGENAME}}/testcases|action=edit}} test case] }}<!--end switch--> | [{{fullurl:{{FULLPAGENAME}}/testcases|action=edit}} test case]}} pages. | ||
{{!}}} | {{!}}} | ||
}} | }}<!--end if testcases--> | ||
{{#ifeq:{{PAGENAME}}|Documentation (copy)|| | {{#ifeq:{{PAGENAME}}|Documentation (copy)|| | ||
{{#if:{{{content|}}}|{{{content}}}| | {{#if:{{{content|}}}|{{{content}}}| | ||
{{#if:{{{1|}}}|{{{{{1}}}}}|{{{{FULLPAGENAME}}/doc}}}} | {{#if:{{{1|}}}|{{{{{1}}}}}|{{{{FULLPAGENAME}}/doc}}}} | ||
}}}} | }}<!--end if 1-->}}<!--end if content-->}}<!--end ifeq PAGENAME--> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{Documentation|SPW = is not relevant|SPW-link = Documentation (copy)|sandbox=yes|content= This is a version of Template:Documentation customized for Templates Wiki and so not designed to be copied to other wikis. | {{Documentation|SPW = is not relevant|SPW-link = Documentation (copy)|sandbox=yes|content= This is a version of Template:Documentation customized for Templates Wiki and so not designed to be copied to other wikis. |