|
|
Line 27: |
Line 27: |
| }}''</div> | | }}''</div> |
| </div> | | </div> |
| {{#ifeq:{{CONTENTLANG}}|ja||{{#if:{{{ja|}}}|[[Category:Interwiki specified]][[ja:{{{ja}}}]]|{{#switch:{{{nothing|{{Is JA}}}}}|true=[[ja:Template:{{PAGENAME}}]]}}}}}}
| | <noinclude><div style="display:none;"></noinclude><div style="border:1px solid black; margin:1em; margin-top:3em;"><div style="background:#ddd; color:#111; padding:1em; margin:0em;">'''Template documentation''' <span style="font-size:85%;">(for the template shown above, sometimes hidden or invisible)</span></div><div style="padding:1em; padding-bottom:0em; margin:0em;">{{tocright}} |
| {{#ifeq:{{CONTENTLANG}}|zh||{{#if:{{{zh|}}}|[[Category:Interwiki specified]][[zh:{{{zh}}}]]|{{#switch:{{{nothing|{{Is ZH}}}}}|true=[[zh:Template:{{PAGENAME}}]]}}}}}}
| | {{{{PAGENAME}}/doc}} |
| {{#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>
| | </div><br style="clear:both;"/><div style="background:#ddd; color:#111; padding:0.5em; margin:0em; font-size:85%; text-align:right;">Visit [[Template:{{PAGENAME}}/doc]] to edit this text! ([[Template:Documentation|How does this work]]?)</div></div><noinclude></div> |
| | | {{documentation}}</noinclude> |
| For a documentation template you can use on your wiki, see [[w:c:templates:Template:Documentation (copy)]].}}<!--
| |
| | |
| End of documentation blob - the ONLY part returned if called by "Template: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&preload=Template:Documentation/preload this template for the documentation].|
| |
| {{#ifexist: {{#if: {{{1|}}}
| |
| | {{{1}}}
| |
| | {{FULLPAGENAME}}/doc
| |
| }}<!--end if 1--> |
| |
| View or edit [[:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}/doc}}|this documentation]].
| |
| |
| |
| [{{fullurl:{{#if: {{{1|}}}
| |
| | {{{1}}}
| |
| | {{FULLPAGENAME}}/doc
| |
| }}<!--end if 1-->
| |
| | action=edit&preload=Template:Documentation/preload
| |
| }}<!--end if content--> create this documentation]
| |
| }}<!--end ifeq PAGENAME--> ([[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] }}<!--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]]
| |
| | #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)||
| |
| {{#if:{{{content|}}}|{{{content}}}|
| |
| {{#if:{{{1|}}}|{{{{{1}}}}}|{{{{FULLPAGENAME}}/doc}}}}
| |
| }}<!--end if 1-->}}<!--end if content-->}}<!--end ifeq PAGENAME-->
| |
| </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.
| |
| | |
| It acts identically to the usual Template:Documentation - and should be treated identically - except for a few particular cases.
| |
| * <code>content = </code> should the template have just a short blurb for documentation and not need a new page for it.
| |
| * <code>sandbox = yes</code> should the template have a /sandbox page.
| |
| * <code>testcases = yes</code> should the template have a /testcases page.
| |
| * If the template '''should transclude a documentation page other than its /doc subpage,''' use <code><nowiki>{{Documentation|documentation page}}</nowiki></code>.
| |
| *: You may also use <code><nowiki>{{Documentation|content=documentation goes here}}</nowiki></code> to include documentation without a subpage at all.
| |
| * If the template '''should be [[Help:Interlanguage links|interlanguage linked]] but at a different name,''' use <code><nowiki>{{Documentation|ja=Japanese name|zh=Chinese name}}</nowiki></code>.
| |
| *: You might instead create a [[Help:redirect|redirect]] on the foreign-language wiki from the name used on this wiki to theirs (and then update the relevant template in [[#Maintenance]]).
| |
| *: Interlanguage links to existing Japanese and Chinese pages are automatically inserted if their names are equivalent, in which case no parameter is needed.
| |
| * SPW
| |
| ** <code>SPW=is newer than</code> - The template '''exists on [[w:c:starter:|FANDOM starter pages]] but has been upgraded'''.
| |
| ** <code>SPW=is not relevant</code> - The template (such as this one) are not relevant to wikis other than Templates Wiki.
| |
| ** The other possible relations to SPW - "<code>is not on</code>" and "<code>is on</code>" [and unchanged] are automatically inserted, in which cases no parameter is needed.
| |
| * <code>dep1=</code><code>dep2=</code><code>dep3=</code><code>dep4=</code> to name up to four dependency templates (include Template: prefix, no need to name /doc pages).
| |
| == Maintenance ==
| |
| * Periodically check [http://starter.wikia.com/index.php?title=Special%3AAllPages&from=&to=&namespace=10 the list of templates on FANDOM starter pages wiki] to see if the list encoded into [[:Template:Is SPW]] is up-to-date.
| |
| * Periodically check [http://ja.templates.wikia.com/index.php?title=Special%3AAllPages&from=&to=&namespace=10 the list of templates on Japanese Templates Wiki] to see if the list encoded into [[:Template:Is JA]] is up-to-date.
| |
| * Periodically check [http://zh.templates.wikia.com/index.php?title=Special%3AAllPages&from=&to=&namespace=10 the list of templates on Chinese Templates Wiki] to see if the list encoded into [[:Template:Is ZH]] is up-to-date.
| |
| }}[[Category:Documentation templates| ]]</noinclude> | |