Template:SPW/doc: Difference between revisions

From Project Gorgon
Jump to navigation Jump to search
Trimoon (talk | contribs)
m Removing unused foreign-language links
Trimoon (talk | contribs)
m typo in safesubst
Line 5: Line 5:
: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.
: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
;Syntax
:Copy the code <code><nowiki>{{SPW|name={{safesubstsubst:#titleparts:{{safesubstsubst: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}}
:Copy the code <code><nowiki>{{SPW|name={{safesubst:#titleparts:{{safesubst: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>.  
: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
;Sample output

Revision as of 11:45, 16 April 2016

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.