Documentation: Difference between revisions
/>Henstepl Spacing |
/>Henstepl What if we move the blob above the documentation template? Thoughts? |
||
Line 1: | Line 1: | ||
<includeonly | <includeonly>{{#ifeq:{{SITENAME}}|Templates Wiki|<div style="margin:0 1em;"><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 51: | Line 29: | ||
{{#ifeq:{{CONTENTLANG}}|ja||{{#if:{{{ja|}}}|[[Category:Interwiki specified]][[ja:{{{ja}}}]]|{{#switch:{{{nothing|{{Is JA}}}}}|true=[[ja:Template:{{PAGENAME}}]]}}}}}} | {{#ifeq:{{CONTENTLANG}}|ja||{{#if:{{{ja|}}}|[[Category:Interwiki specified]][[ja:{{{ja}}}]]|{{#switch:{{{nothing|{{Is JA}}}}}|true=[[ja:Template:{{PAGENAME}}]]}}}}}} | ||
{{#ifeq:{{CONTENTLANG}}|zh||{{#if:{{{zh|}}}|[[Category:Interwiki specified]][[zh:{{{zh}}}]]|{{#switch:{{{nothing|{{Is ZH}}}}}|true=[[zh:Template:{{PAGENAME}}]]}}}}}} | {{#ifeq:{{CONTENTLANG}}|zh||{{#if:{{{zh|}}}|[[Category:Interwiki specified]][[zh:{{{zh}}}]]|{{#switch:{{{nothing|{{Is ZH}}}}}|true=[[zh:Template:{{PAGENAME}}]]}}}}}} | ||
{{#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}}]]}}}}}} | {{#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)]].}}<!-- | |||
End documentation blob | End of documentation blob - the ONLY part returned if called by "Template:Documentation (copy)" | ||
--> | --> | ||
{{#ifeq:{{PAGENAME}}|Documentation (copy)|| | {{#ifeq:{{PAGENAME}}|Documentation (copy)|| | ||
{{{!}} class="article-table" style="width:100%;" role="complementary" | |||
{{!}}- style="font-size:18px;" | |||
! style="padding:0px;" {{!}} <div style="width:100%; padding:3px 0px; text-align:center;" class="color1">Template documentation</div> | |||
{{!}}- | |||
{{!}} ''Note: the template above may sometimes be partially or fully invisible.'' | |||
{{!}}- | |||
{{!}} {{#if:{{{content|}}}|Edit [{{fullurl:{{FULLPAGENAME}}}}?action=edit this template for the documentation].|View or edit [[:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}/doc}}|this documentation]].}} ([[Template:Documentation|How does this work?]]) | |||
{{!}}- | |||
{{!}} Editors can experiment with this template's {{#if: {{{sandbox|}}} | {{#switch: {{#sub:{{lc:{{{sandbox}}}}}|0|1}} | |||
| 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}} | |||
| y | t | 1 = [[{{FULLPAGENAME}}/testcases|test case]] | |||
| #default = [{{fullurl:{{FULLPAGENAME}}/testcases|action=edit}} test case] }} | [{{fullurl:{{FULLPAGENAME}}/testcases|action=edit}} test case]}} pages. | |||
{{!}}} | |||
}}{{#ifeq:{{PAGENAME}}|Documentation (copy)|| | |||
{{#if:{{{content|}}}|{{{content}}}| | {{#if:{{{content|}}}|{{{content}}}| | ||
{{#if:{{{1|}}}|{{{{{1}}}}}|{{{{FULLPAGENAME}}/doc}}}} | {{#if:{{{1|}}}|{{{{{1}}}}}|{{{{FULLPAGENAME}}/doc}}}} |