Documentation: Difference between revisions

From SL Pro Wrestling Wiki
/>BaRaN6161TURK
m Fix.
/>BaRaN6161TURK
Some cleanup for interlanguage links (I will include rest of them from {{Is <LANG CODE>}}).
Line 112: Line 112:
--><!--
--><!--
- Japanese
- Japanese
-->{{#ifeq:{{CONTENTLANG}}|ja|
-->{{#if:{{{ja|}}}
|{{#if:{{{ja|}}}
     |[[ja:{{{ja}}}]]
     |[[Category:Interwiki specified]][[ja:{{{ja}}}]]
     |
     |{{#switch:{{{nothing|{{Is JA}}}}}
  }}<!--
      |true=[[ja:Template:{{PAGENAME}}]]
- Turkish
      }}
-->{{#if:{{{tr|}}}
   }}
    |[[tr:{{{tr}}}]]
}}<!--
    |
   }}<!--
- Simplified Chinese
- Simplified Chinese
-->{{#ifeq:{{CONTENTLANG}}|zh|
-->{{#if:{{{zh|}}}
|{{#if:{{{zh|}}}
     |[[zh:{{{zh}}}]]
     |[[Category:Interwiki specified]][[zh:{{{zh}}}]]
     |
     |{{#switch:{{{nothing|{{Is ZH}}}}}
      |true=[[zh:Template:{{PAGENAME}}]]
      }}
     }}
     }}
}}<!--
- English
-->{{#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}}]]
    }}
  }}
}}
<!--
<!--
-
-
Line 161: Line 149:
* If the template '''should transclude a documentation page other than its /doc subpage,''' use <code><nowiki>{{Documentation|documentation page}}</nowiki></code>.
* 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.
*: 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 [[w:Help:Interlanguage links|interlanguage linked]] but at a different name,''' use <code><nowiki>{{Documentation|ja=Japanese name|zh=Chinese name}}</nowiki></code>.
* If the template '''should be [[w:Help:Interlanguage links|interlanguage linked]] but at a different name,''' use <code><nowiki>{{Documentation|ja=Japanese name|tr=Turkish name|zh=Chinese name}}</nowiki></code>.
*: You might instead create a [[w: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]]).
*: You might instead create a [[w:Help:Redirect|redirect]] on the foreign-language wiki from the name used on this wiki to theirs.
*: Interlanguage links to existing Japanese, Turkish, and Chinese pages are automatically inserted if their names are equivalent, in which case no parameter is needed.
* SPW
* SPW
** <code>SPW=is not relevant</code> - The template (such as this one) are not relevant to wikis other than Templates Wiki.
** <code>SPW=is not relevant</code> - The template (such as this one) are not relevant to wikis other than Templates Wiki.
* <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).
* <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 [[:ja:Special:AllPages/Template:|the list of templates on Japanese Templates Wiki]] to see if the list encoded into [[Template:Is JA]] is up-to-date.
* Periodically check [[:zh:Special:AllPages/Template:|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| ]]
}}[[Category:Documentation templates| ]]
[[tr:Şablon:Belgelendirme]]
[[tr:Şablon:Belgelendirme]]

Revision as of 12:11, 8 February 2022