FANDOM


(formating)
(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.

Revision as of 18:28, July 13, 2018

[[File:Broom|80px]]
This template is in need of a clean-up. You can help out Templates Wiki by re-organizing parts of the article, checking grammar and spelling, and doing other helpful things to correct the article.
  • Reason: This template is way too complicated withput comments to show where ifs and switches start and end.
This template is not on Fandom starter pages because it is probably not relevant to wikis other than Templates Wiki. You probably don't want to copy this template to your wiki. For a similar template intended to be copied, see Template:Documentation (copy).
Template documentation
Note: the template above may sometimes be partially or fully invisible.

Edit this template for the documentation. 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.

  • content = should the template have just a short blurb for documentation and not need a new page for it.
  • sandbox = yes should the template have a /sandbox page.
  • testcases = yes should the template have a /testcases page.
  • If the template should transclude a documentation page other than its /doc subpage, use {{Documentation|documentation page}}.
    You may also use {{Documentation|content=documentation goes here}} to include documentation without a subpage at all.
  • If the template should be interlanguage linked but at a different name, use {{Documentation|ja=Japanese name|zh=Chinese name}}.
    You might instead create a 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
    • SPW=is newer than - The template exists on FANDOM starter pages but has been upgraded.
    • SPW=is not relevant - The template (such as this one) are not relevant to wikis other than Templates Wiki.
    • The other possible relations to SPW - "is not on" and "is on" [and unchanged] are automatically inserted, in which cases no parameter is needed.
  • dep1=dep2=dep3=dep4= to name up to four dependency templates (include Template: prefix, no need to name /doc pages).

Maintenance

Community content is available under CC-BY-SA unless otherwise noted.