Documentation: Difference between revisions
/>Henstepl Simpler layout of code |
/>Henstepl Fix/cut |
||
Line 6: | Line 6: | ||
|&link7={{{dep3}}}&link7={{{dep3}}}/doc}}{{#if:{{{dep4|}}} | |&link7={{{dep3}}}&link7={{{dep3}}}/doc}}{{#if:{{{dep4|}}} | ||
|&link9={{{dep4}}}&link8={{{dep4}}}/doc}} Export this template]''', then [[Help:Importing|import]], to install it. | |&link9={{{dep4}}}&link8={{{dep4}}}/doc}} Export this template]''', then [[Help:Importing|import]], to install it. | ||
:''Use edit summary: ''<code><nowiki>Copied from [[w:c:templates:</nowiki>{{FULLPAGENAME}}<nowiki>]]</nowiki></code>'' to properly attribute this template's editors.''}}{{#if:{{{vanilla|}}}| | :''Use edit summary: ''<code><nowiki>Copied from [[w:c:templates:</nowiki>{{FULLPAGENAME}}<nowiki>]]</nowiki></code>'' to properly attribute this template's editors.''}}{{#if:{{{vanilla|}}}| | ||
:''This template is compatible with vanilla Mediawiki.''}} | :''This template is compatible with vanilla Mediawiki.''}} | ||
Line 31: | Line 27: | ||
{{#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)]].}}</onlyinclude></includeonly> | ||
{{#ifeq:{{PAGENAME}}|Documentation (copy)|| | {{#ifeq:{{PAGENAME}}|Documentation (copy)|| | ||
{{{!}} class="article-table" style="width:100%;" role="complementary" | {{{!}} class="article-table" style="width:100%;" role="complementary" |
Revision as of 07:18, 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)