Documentation: Difference between revisions

From SL Pro Wrestling Wiki
/>Henstepl
+ Template documentation
/>Henstepl
Rollback until Javascript is in place...
Line 37: Line 37:
}}''
}}''
{{#ifeq:{{{SPW}}}|is not relevant||
{{#ifeq:{{{SPW}}}|is not relevant||
:''To install it, [{{fullurl:Special:Export}}?link1=Template:{{PAGENAMEE}}&link2=Template:{{PAGENAMEE}}/doc{{#if:{{{dep1|}}}
:''To install it, copy [{{FULLURL:{{FULLPAGENAME}}}}?action=edit this template]<sup>[[Special:Export/{{FULLPAGENAME}}|export]]</sup> and [{{FULLURL:{{FULLPAGENAME}}/doc}}?action=edit its documentation]<sup>[[Special:Export/{{FULLPAGENAME}}/doc|export]]</sup> to '''Template:{{{SPW-link|{{PAGENAME}}}}}'''  and '''Template:{{{SPW-link|{{PAGENAME}}}}}/doc''' on your wiki. [[Help:How_to_copy_templates_to_your_wiki|Need help?]]''{{#if:{{{dep1|}}}|
|&link3=Template:{{{dep1}}}&link4=Template:{{{dep1}}}/doc}}{{#if:{{{dep2|}}}
:''Copy also'' <!--
|&link5=Template:{{{dep2}}}&link6=Template:{{{dep2}}}/doc}}{{#if:{{{dep3|}}}
|&link7=Template:{{{dep3}}}&link7=Template:{{{dep3}}}/doc}}{{#if:{{{dep4|}}}
|&link9=Template:{{{dep4}}}&link8=Template:{{{dep4}}}/doc}} export these templates] or copy [{{FULLURL:{{FULLPAGENAME}}}}?action=edit this template]<sup>[[Special:Export/{{FULLPAGENAME}}|export]]</sup> and [{{FULLURL:{{FULLPAGENAME}}/doc}}?action=edit its documentation]<sup>[[Special:Export/{{FULLPAGENAME}}/doc|export]]</sup> to '''Template:{{{SPW-link|{{PAGENAME}}}}}'''  and '''Template:{{{SPW-link|{{PAGENAME}}}}}/doc''' on your wiki. [[Help:How_to_copy_templates_to_your_wiki|Need help?]]''{{#if:{{{dep1|}}}|
:''Additional dependencies:'' <!--
-->[{{FULLURL:{{{dep1}}}}}?action=edit {{{dep1}}}]<sup>[[Special:Export/{{{dep1}}}|export]]</sup>{{#if:{{{dep2|}}}|, <!--
-->[{{FULLURL:{{{dep1}}}}}?action=edit {{{dep1}}}]<sup>[[Special:Export/{{{dep1}}}|export]]</sup>{{#if:{{{dep2|}}}|, <!--
-->[{{FULLURL:{{{dep2}}}}}?action=edit {{{dep2}}}]<sup>[[Special:Export/{{{dep2}}}|export]]</sup>}}{{#if:{{{dep3|}}}|, <!--
-->[{{FULLURL:{{{dep2}}}}}?action=edit {{{dep2}}}]<sup>[[Special:Export/{{{dep2}}}|export]]</sup>}}{{#if:{{{dep3|}}}|, <!--
-->[{{FULLURL:{{{dep3}}}}}?action=edit {{{dep3}}}]<sup>[[Special:Export/{{{dep3}}}|export]]</sup>}}.}}
-->[{{FULLURL:{{{dep3}}}}}?action=edit {{{dep3}}}]<sup>[[Special:Export/{{{dep3}}}|export]]</sup>}} to the same location{{#if:{{{dep2|}}}|(s) on your wiki.}}}}
:''Use edit summary: ''<code><nowiki>Copied from [[w:c:templates:</nowiki>{{FULLPAGENAME}}<nowiki>]]</nowiki></code>'' to properly attribute this template's editors.''{{#if:{{{vanilla|}}}|
:''Use edit summary: ''<code><nowiki>Copied from [[w:c:templates:</nowiki>{{FULLPAGENAME}}<nowiki>]]</nowiki></code>'' to properly attribute this template's editors.''{{#if:{{{vanilla|}}}|
:''This template is compatible with vanilla Mediawiki.''}}
:''This template is compatible with vanilla Mediawiki.''}}
Line 66: Line 62:


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.
* <code>content = </code> should the template have just a short blurb for documentation and not need a new page for it.
* <code>content = </code> should the template have just a short blurb for documenttion and not need a new page for it.
* <code>sandbox = yes</code> should the template have a /sandbox page.
* <code>sandbox = yes</code> should the template have a /sandbox page.
* <code>testcases = yes</code> should the template have a /testcases page.
* <code>testcases = yes</code> should the template have a /testcases page.
Line 78: Line 74:
** <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).
== 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.

Revision as of 13:22, 31 January 2018