Documentation: Difference between revisions
/>Lady Aleena changed category |
/>Lady Aleena added links to sandbox and testcases |
||
Line 10: | Line 10: | ||
{{!}}- | {{!}}- | ||
{{!}} {{#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?]]) | {{!}} {{#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. | |||
{{!}}} | {{!}}} | ||
}}<!-- | }}<!-- | ||
Line 57: | Line 63: | ||
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. | ||
* 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>sandbox = yes</code> should the template have a /sandbox page. | |||
* <code>testcases = yes</code> should the template have a /testcases page. | |||
== Maintenance == | == 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://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. |