Changes

Jump to: navigation, search

Template:SPW/doc

3,208 bytes added, 07:49, 8 April 2016
copy-over from latest version on http://templates.wikia.com/wiki/Template:SPW/doc
{{ #if: {{{reusedemo|}}} | | {{SPW|is not on|name=SPW}} }}
{{
#ifeq: {{ns:4}} | Wikia Templates <!-- most of the documentation only gets displayed on Wikia Templates -->
| ;Description
:This template is used to show whether there is a matching template on the [[w:c:Starter|Starter]] Wikia, which is the wiki that is preloaded onto every new Wikia.
;Syntax
:Copy the code <code><nowiki>{{SPW|name={{subst:#titleparts:{{subst:PAGENAME}}|-1}}}}</nowiki></code> to the top of the "/doc" page (this code is part of the [[Template:Documentation/preload|template documentation preload]]). If that is all that it gets, it will display {{SPW|name=SPW}}
:Check the link to see whether there is a matching template. Next step is to add the appropriate switch before the <code><nowiki>|name=...</nowiki></code>, one of <code><nowiki>|is on</nowiki></code>, <code><nowiki>|is not on</nowiki></code>, or <code><nowiki>|is newer</nowiki></code>.
;Sample output
:<code><nowiki>{{SPW|is newer}}</nowiki></code> gives...
:{{SPW|is newer|name=SPW}}

:<code><nowiki>{{SPW|is not on}}</nowiki></code> gives...
:{{SPW|is not on|name=SPW}}

:<code><nowiki>{{SPW|is on}}</nowiki></code> gives...
:{{SPW|is on|name=SPW}}

;Maintenance
:Templates tagged as "is newer" will be listed in [[:Category:Newer than on Starter Pages Wikia]], which can be examined for templates that could be good to update on Starter.
:Templates tagged as "is not on" will be listed in [[:Category:Not on Starter Pages Wikia]], which can be examined for templates that could be good to copy to Starter.
:From time to time, someone can visually or programmatically compare [[:Category:Template documentation]] on this wiki with [[w:c:starter:Category:Template documentation|its equivalent on the Starter Pages Wikia]]. Check that each one here has the correct form of {{t|SPW}}. Every /doc page in the latter should have a match here.
:Where a page on Starter does not have a match here, then:
:*'''either''' the template is here but has no /doc page, in which case please give it one (ideally by copying from Starter, with any variation needed because of template differences) and add <code><nowiki>{{SPW|is not on}}</nowiki></code>;
:*'''or''' the template is not here and therefore should be: copy it and its /doc page (with <code><nowiki>{{SPW|is on}}</nowiki></code>) to here.

;Reuse
:When this template is copied to other wikis, its behavior and appearance changes, and its documentation updates to reflect the changed behavior:
{{SPW|name=SPW|reusedemo=yes}}
<blockquote>
}}
;Description
:This template is used to show that a template has been copied from Wikia Templates, and to remind editors to periodically check that wiki for a newer version of the template.
:There is generally no need to locally edit this template, its documentation, or any calls to it; any such edits should instead be done on Wikia Templates and the updated version then copied back to the local wiki.
{{
#ifeq: {{ns:4}} | Wikia Templates
| </blockquote>
}}
<includeonly>
{{{category|[[Category:Interwiki link templates]]}}}
[[ja:テンプレート:SPW]]
</includeonly><noinclude>
[[Category:Template documentation]]
[[ja:テンプレート:SPW/doc]]</noinclude>
1,071
edits

Navigation menu