|
|
Line 11: |
Line 11: |
| |} | | |} |
| {{#ifeq:{{SITENAME}}|Wikia Templates|<div style="margin:0 1em;"><div style="font-size:small;line-height:16px;"> | | {{#ifeq:{{SITENAME}}|Wikia Templates|<div style="margin:0 1em;"><div style="font-size:small;line-height:16px;"> |
| :''{{#switch: {{{SPW|{{Template:Is SPW}}}}} | | :''{{#switch: {{{SPW|{{Is SPW}}}}} |
| | is newer | | | is newer |
| | is newer than = | | | is newer than = |
Line 35: |
Line 35: |
| }}</div> | | }}</div> |
| </div> | | </div> |
| {{#if:{{{ja|}}}|[[ja:{{{ja}}}]]|{{#if:{{Template:Is JA}}|[[ja:Template:{{PAGENAME}}]]}}}} | | {{#if:{{{ja|}}}|[[ja:{{{ja}}}]]|{{#if:{{Is JA}}|[[ja:Template:{{PAGENAME}}]]}}}} |
| {{#if:{{{zh|}}}|[[zh:{{{zh}}}]]|{{#if:{{Template:Is ZH}}|[[zh:Template:{{PAGENAME}}]]}}}} | | {{#if:{{{zh|}}}|[[zh:{{{zh}}}]]|{{#if:{{Is ZH}}|[[zh:Template:{{PAGENAME}}]]}}}} |
| }} | | }} |
| {{#if:{{{content|}}}|{{{content}}}| | | {{#if:{{{content|}}}|{{{content}}}| |
Line 46: |
Line 46: |
|
| |
|
| 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 {{ #if: | <code> }}<nowiki>{{</nowiki><span style="padding: 0 0.1em;">{{ #if: | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: Documentation | 0 | 1 }} | : || {{ #if: {{NAMESPACE:Documentation}} || {{ns:10}} }} }}:Documentation|{{ #ifeq: {{ #sub: Documentation | 0 | 1 }} | : | : }}{{ #ifeq: {{NAMESPACE:Documentation}} | {{ns:10}} | {{PAGENAME:Documentation}} | Documentation }}]]</span>{{ #if: documentation page | | #If the template '''should transclude a documentation page other than its /doc subpage,''' use {{T|Documentation|2=documentation page}}. |
| | |<var style="padding: 0 0.2em; color: gray;">documentation page</var> }}{{ #if:
| | #:You may also use {{t|Documentation|2=content=documentation goes here}} to include documentation without a subpage at all. |
| | |<var style="padding: 0 0.2em; color: gray;">{{{3}}}</var> }}{{ #if:
| | #If the template '''should be [[Help:Interlanguage links|interlanguage linked]] but at a different name,''' use {{T|Documentation|2=ja=Japanese name|3=zh=Chinese name}}. |
| | |<var style="padding: 0 0.2em; color: gray;">{{{4}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{5}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{6}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{7}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{8}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{9}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{10}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{11}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{12}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{13}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{14}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{15}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{16}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{17}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{18}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{19}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{20}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{21}}}</var> }}<nowiki>}}</nowiki>{{ #if: | </code> }}.
| |
| #:You may also use {{ #if: | <code> }}<nowiki>{{</nowiki><span style="padding: 0 0.1em;">{{ #if: | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: Documentation | 0 | 1 }} | : || {{ #if: {{NAMESPACE:Documentation}} || {{ns:10}} }} }}:Documentation|{{ #ifeq: {{ #sub: Documentation | 0 | 1 }} | : | : }}{{ #ifeq: {{NAMESPACE:Documentation}} | {{ns:10}} | {{PAGENAME:Documentation}} | Documentation }}]]</span>{{ #if: content=documentation goes here | |
| | |<var style="padding: 0 0.2em; color: gray;">content=documentation goes here</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{3}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{4}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{5}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{6}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{7}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{8}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{9}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{10}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{11}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{12}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{13}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{14}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{15}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{16}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{17}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{18}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{19}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{20}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{21}}}</var> }}<nowiki>}}</nowiki>{{ #if: | </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 {{ #if: | <code> }}<nowiki>{{</nowiki><span style="padding: 0 0.1em;">{{ #if: | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: Documentation | 0 | 1 }} | : || {{ #if: {{NAMESPACE:Documentation}} || {{ns:10}} }} }}:Documentation|{{ #ifeq: {{ #sub: Documentation | 0 | 1 }} | : | : }}{{ #ifeq: {{NAMESPACE:Documentation}} | {{ns:10}} | {{PAGENAME:Documentation}} | Documentation }}]]</span>{{ #if: ja=Japanese name | |
| | |<var style="padding: 0 0.2em; color: gray;">ja=Japanese name</var> }}{{ #if: zh=Chinese name
| |
| | |<var style="padding: 0 0.2em; color: gray;">zh=Chinese name</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{4}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{5}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{6}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{7}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{8}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{9}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{10}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{11}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{12}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{13}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{14}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{15}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{16}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{17}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{18}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{19}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{20}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{21}}}</var> }}<nowiki>}}</nowiki>{{ #if: | </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]]). | | #: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. | | #:Interlanguage links to existing Japanese and Chinese pages are automatically inserted if their names are equivalent, in which case no parameter is needed. |
| #If the template '''exists on [[w:c:starter:|Starter Pages Wikia]] but has been upgraded,''' use {{ #if: | <code> }}<nowiki>{{</nowiki><span style="padding: 0 0.1em;">{{ #if: | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: Documentation | 0 | 1 }} | : || {{ #if: {{NAMESPACE:Documentation}} || {{ns:10}} }} }}:Documentation|{{ #ifeq: {{ #sub: Documentation | 0 | 1 }} | : | : }}{{ #ifeq: {{NAMESPACE:Documentation}} | {{ns:10}} | {{PAGENAME:Documentation}} | Documentation }}]]</span>{{ #if: SPW=is newer than | | #If the template '''exists on [[w:c:starter:|Starter Pages Wikia]] but has been upgraded,''' use {{T|Documentation|2=SPW=is newer than}}. |
| | |<var style="padding: 0 0.2em; color: gray;">SPW=is newer than</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{3}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{4}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{5}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{6}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{7}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{8}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{9}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{10}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{11}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{12}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{13}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{14}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{15}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{16}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{17}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{18}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{19}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{20}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{21}}}</var> }}<nowiki>}}</nowiki>{{ #if: | </code> }}.
| |
| #:The other possible relations to SPW - "is not on" and "is on" [and unchanged] are automatically inserted, in which cases no parameter is needed. | | #:The other possible relations to SPW - "is not on" and "is on" [and unchanged] are automatically inserted, in which cases no parameter is needed. |
| #:Some templates (such as this one) are not relevant to wikis other than Wikia Templates: these can be marked by {{ #if: | <code> }}<nowiki>{{</nowiki><span style="padding: 0 0.1em;">{{ #if: | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: Documentation | 0 | 1 }} | : || {{ #if: {{NAMESPACE:Documentation}} || {{ns:10}} }} }}:Documentation|{{ #ifeq: {{ #sub: Documentation | 0 | 1 }} | : | : }}{{ #ifeq: {{NAMESPACE:Documentation}} | {{ns:10}} | {{PAGENAME:Documentation}} | Documentation }}]]</span>{{ #if: SPW=is not relevant | | #:Some templates (such as this one) are not relevant to wikis other than Wikia Templates: these can be marked by {{T|Documentation|2=SPW=is not relevant}}. |
| | |<var style="padding: 0 0.2em; color: gray;">SPW=is not relevant</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{3}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{4}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{5}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{6}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{7}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{8}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{9}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{10}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{11}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{12}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{13}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{14}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{15}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{16}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{17}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{18}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{19}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{20}}}</var> }}{{ #if:
| |
| | |<var style="padding: 0 0.2em; color: gray;">{{{21}}}</var> }}<nowiki>}}</nowiki>{{ #if: | </code> }}.
| |
|
| |
|
| == Maintenance == | | == Maintenance == |