Template:SPW/doc
From TF Library
{{ #if: | | Template:SPW }} {{
#ifeq: TF Library | Wikia Templates | ;Description
- This template is used to show whether there is a matching template on the Starter Wikia, which is the wiki that is preloaded onto every new Wikia.
- Syntax
- Copy the code
{{SPW|name={{subst:#titleparts:{{subst:PAGENAME}}|-1}}}}
to the top of the "/doc" page (this code is part of the template documentation preload). If that is all that it gets, it will display Template:SPW - Check the link to see whether there is a matching template. Next step is to add the appropriate switch before the
|name=...
, one of|is on
,|is not on
, or|is newer
. - Sample output
{{SPW|is newer}}
gives...- Template:SPW
{{SPW|is not on}}
gives...- Template:SPW
{{SPW|is on}}
gives...- Template: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 its equivalent on the Starter Pages Wikia. Check that each one here has the correct form of
- REDIRECT Delete 19. 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
{{SPW|is not on}}
; - or the template is not here and therefore should be: copy it and its /doc page (with
{{SPW|is on}}
) to here.
- 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
- Reuse
- When this template is copied to other wikis, its behavior and appearance changes, and its documentation updates to reflect the changed behavior:
}}{{ #ifeq: TF Library | Wikia Templates |
- 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.
}}