Documentation: Difference between revisions
/>SuperDragonXD1 Move () out of link |
/>BaRaN6161TURK Grammar fixes and tr interwiki. |
||
Line 68: | Line 68: | ||
- Installation | - Installation | ||
- | - | ||
--><div style="padding:10px;border:1px solid #444c4d; margin-top:0; border-radius:0 0 10px 10px;" class="mw-collapsible article-table" data-collapsetext="Hide install | --><div style="padding:10px;border:1px solid #444c4d; margin-top:0; border-radius:0 0 10px 10px;" class="mw-collapsible article-table" data-collapsetext="Hide install instructions" data-expandtext="Show install instructions"> | ||
<span style="font-size:large;">Installation Instructions</span><!-- | <span style="font-size:large;">Installation Instructions</span><!-- | ||
--><div class="mw-collapsible-content"> | --><div class="mw-collapsible-content"> | ||
Line 91: | Line 91: | ||
- Main Text | - Main Text | ||
- | - | ||
--> Export this template]''', then [[Help:Importing|import]] | --> Export this template]''', then [[w:Help:Importing and exporting pages|import]] to install it.<br/><!-- | ||
-->''Use edit summary: ''<code><nowiki>Copied from [[w:c:templates:</nowiki>{{FULLPAGENAME}}<nowiki>]]</nowiki></code>'' to properly attribute this template's editors. | -->''Use edit summary: ''<code><nowiki>Copied from [[w:c:templates:</nowiki>{{FULLPAGENAME}}<nowiki>]]</nowiki></code>'' to properly attribute this template's editors.}}<!-- | ||
- If compatible with vanilla MediaWiki | - If compatible with vanilla MediaWiki | ||
-->{{#if:{{{vanilla|}}}|:''This template is compatible with vanilla | -->{{#if:{{{vanilla|}}}|:''This template is compatible with vanilla MediaWiki.''}} | ||
<!-- | <!-- | ||
- | - | ||
Line 109: | Line 109: | ||
-->{{#ifeq: {{SITENAME}} | -->{{#ifeq: {{SITENAME}} | ||
| Templates Wiki | | Templates Wiki | ||
| [[Category:Newer than on starter pages | | [[Category:Newer than on starter pages]] | ||
}} | }} | ||
| is not relevant | | is not relevant | ||
| is not relevant to = [[File:Warning.svg|left|50px]]<!-- | | is not relevant to = [[File:Warning.svg|left|50px]]<!-- | ||
-->This template is not on [[w:c:starter|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.''' {{#if:{{{SPW-link|}}}|For a similar template intended to be copied, see [[ | -->This template is not on [[w:c:starter|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.''' {{#if:{{{SPW-link|}}}|For a similar template intended to be copied, see [[Template:{{{SPW-link}}}]].}}<!-- | ||
-->{{#ifeq: {{SITENAME}} | -->{{#ifeq: {{SITENAME}} | ||
| Templates Wiki | | Templates Wiki | ||
| [[Category:Templates Wiki templates | | [[Category:Templates Wiki templates]] | ||
}} | }} | ||
| true <!-- Automatically checked against list of SPW templates at Template: Is SPW --> | | true <!-- Automatically checked against list of SPW templates at Template:Is SPW --> | ||
| is on = | | is on = | ||
[[w:c:templates:Help:Starter pages|This template is probably already on your wiki.]]<!-- | [[w:c:templates:Help:Starter pages|This template is probably already on your wiki.]]<!-- | ||
-->{{#ifeq: {{SITENAME}} | -->{{#ifeq: {{SITENAME}} | ||
| Templates Wiki | | Templates Wiki | ||
| [[Category:From starter pages | | [[Category:From starter pages]] | ||
}} | }} | ||
| is not on | | is not on | ||
Line 141: | Line 141: | ||
|{{#switch:{{{nothing|{{Is JA}}}}} | |{{#switch:{{{nothing|{{Is JA}}}}} | ||
|true=[[ja:Template:{{PAGENAME}}]] | |true=[[ja:Template:{{PAGENAME}}]] | ||
}} | |||
}} | |||
}}<!-- | |||
- Turkish | |||
-->{{#ifeq:{{CONTENTLANG}}|tr| | |||
|{{#if:{{{tr|}}} | |||
|[[Category:Interwiki specified]][[tr:{{{tr}}}]] | |||
|{{#switch:{{{nothing|{{Is TR}}}}} | |||
|true=[[tr:Şablon:{{PAGENAME}}]] | |||
}} | }} | ||
}} | }} | ||
Line 171: | Line 180: | ||
{{#ifeq: {{{SPW}}}|is not relevant | | {{#ifeq: {{{SPW}}}|is not relevant | | ||
|{{#ifexist: {{{install|{{FULLPAGENAME}}/install}}} | |{{#ifexist: {{{install|{{FULLPAGENAME}}/install}}} | ||
| ''The above message will be enough for most cases; if there are | | ''The above message will be enough for most cases; if there are additional instructions, you can see them below.''<br/><!-- | ||
--> {{<!---->{{{install|{{FULLPAGENAME}}/install}}}}} | --> {{<!---->{{{install|{{FULLPAGENAME}}/install}}}}} | ||
| :There is no | | :There is no additional installation instructions for this template. If there is any, you may create it at [{{fullurl: | ||
{{{install|{{FULLPAGENAME}}/install}}} | {{{install|{{FULLPAGENAME}}/install}}} | ||
|action=edit&preload=Template:Documentation/preload-install<!-- | |action=edit&preload=Template:Documentation/preload-install<!-- | ||
Line 188: | Line 197: | ||
* 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 [[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 [[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 [[Help: | *: 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]]). | ||
*: Interlanguage links to existing Japanese and Chinese pages are automatically inserted if their names are equivalent, in which case no parameter is needed. | *: 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 newer than</code> - The template '''exists on [[w:c:starter | ** <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. | ** <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. | ** 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). | * <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 == | == Maintenance == | ||
* Periodically check [ | * Periodically check [[w:c:starter:Special:AllPages/Template:|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 [ | * 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 [ | * Periodically check [[:tr:Özel:TümSayfalar/Şablon:|the list of templates on Turkish Templates Wiki]] to see if the list encoded into [[Template:TR]] 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| ]]</noinclude> | }}[[Category:Documentation templates| ]]</noinclude> |