Documentation: Difference between revisions
/>Henstepl Typo fix(es) |
/>Henstepl Simpler layout of code |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{SITENAME}}|Templates Wiki|<div style="margin:0 1em;clear:both;"><div style="font-size:small;line-height:16px;"> | <includeonly><onlyinclude>{{#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|| | ||
:'''''[{{fullurl:Special:Export}}?link1=Template:{{PAGENAMEE}}&link2=Template:{{PAGENAMEE}}/doc{{#if:{{{dep1|}}} | :'''''[{{fullurl:Special:Export}}?link1=Template:{{PAGENAMEE}}&link2=Template:{{PAGENAMEE}}/doc{{#if:{{{dep1|}}} | ||
Line 31: | Line 31: | ||
{{#ifeq:{{CONTENTLANG}}|en||{{#if:{{{en|}}}|[[Category:Interwiki specified]][[en:{{{en}}}]]|{{#switch:{{{nothing|{{Is EN 1}}{{Is EN 2}}{{Is EN 3}}}}}|true=[[en:Template:{{PAGENAME}}]]}}}}}}|<span style="color:red;">'''You don't want this version of the documentation template on your wiki! [{{fullurl:Template:Documentation}}?action=history Click here to revert it.]'''</span> | {{#ifeq:{{CONTENTLANG}}|en||{{#if:{{{en|}}}|[[Category:Interwiki specified]][[en:{{{en}}}]]|{{#switch:{{{nothing|{{Is EN 1}}{{Is EN 2}}{{Is EN 3}}}}}|true=[[en:Template:{{PAGENAME}}]]}}}}}}|<span style="color:red;">'''You don't want this version of the documentation template on your wiki! [{{fullurl:Template:Documentation}}?action=history Click here to revert it.]'''</span> | ||
For a documentation template you can use on your wiki, see [[w:c:templates:Template:Documentation (copy)]].}}<!-- | For a documentation template you can use on your wiki, see [[w:c:templates:Template:Documentation (copy)]].}}</includeonly></onlyinclude><!-- | ||
End of documentation blob - the ONLY part returned if called by "Template:Documentation (copy)" | End of documentation blob - the ONLY part returned if called by "Template:Documentation (copy)" | ||
Line 56: | Line 56: | ||
{{#if:{{{1|}}}|{{{{{1}}}}}|{{{{FULLPAGENAME}}/doc}}}} | {{#if:{{{1|}}}|{{{{{1}}}}}|{{{{FULLPAGENAME}}/doc}}}} | ||
}}}} | }}}} | ||
</includeonly><noinclude> | </includeonly></onlyinclude>--><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}} | ||
{{Documentation (copy)|content= This is a version of Template:Documentation customized for Templates Wiki and so not designed to be copied to other wikis. | |||
It acts identically to the usual Template:Documentation - and should be treated identically - except for a few particular cases. | It acts identically to the usual Template:Documentation - and should be treated identically - except for a few particular cases. |
Revision as of 07:16, 2 February 2018
{{#ifeq:Documentation|Documentation (copy)||
Template documentation
| ||||
---|---|---|---|---|
Note: the template above may sometimes be partially or fully invisible. | ||||
Edit this template for the documentation.|View or edit [[:{{#if:|{{{1}}}|Documentation/doc}}|this documentation]].}} (How does this work?) | ||||
{{#switch: {{#sub:{{{sandbox}}}|0|1}} | t | 1 = sandbox | sandbox}} and {{#if: | {{#switch: {{#sub:{{{testcases}}}|0|1}} | t | 1 = test case | test case}} pages. |
}} {{#ifeq:Documentation|Documentation (copy)|| {{#if:|{{{content}}}| {{#if:|{{{{{1}}}}}|Template:Documentation/doc}} }}}} </includeonly>--> Template:Documentation Template:Documentation (copy)