Template:SPW/doc

From wiki.jriver.com
Jump to navigation Jump to search

{{ #if: | | {{

 #ifeq: Template | Template 
 | {{
   #ifeq: {{ #if:  | {{{reusedemo}}} | Wiki.jriver.com }} | Wikia Templates
   | {{
     #ifeq: SPW | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | SPW | SPW/doc }}
     | 
     | :Error: {{{name}}} parameter is unused or incorrect! Please replace {{SPW{{ #if: is not on | |is not on }}{{ #ifeq: SPW | ¬ | | |name=SPW }}}} with {{SPW{{ #if: is not on | |is not on }}|name=SPW}}.
}}:{{ #switch: is not on | is on = This template or a similar one is on the Starter Pages Wikia, whence it is incorporated in every new Wikia site and can be copied to older ones. | is newer = This template is newer than a similar one on the Starter Pages Wikia. This template may therefore have bug fixes or improvements when compared to the older version.{{ #ifeq: {{ #titleparts: SPW/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | | }} }} | is not on = This template is not on the Starter Pages Wikia. It can be copied to other Wikia sites, but it is not included on any by default.{{ #ifeq: {{ #titleparts: SPW/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | | }} }} | #default = Editors have not checked whether this template is or is not on the Starter Pages Wikia.{{ #ifeq: {{ #titleparts: SPW/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | | }} }} }}

|

   {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc |  | }}
 }}

}} }} {{

 #ifeq: Wiki.jriver.com | 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 {{
 #ifeq: Template | Template 
 | {{
   #ifeq: {{ #if:  | {{{reusedemo}}} | Wiki.jriver.com }} | Wikia Templates
   | {{
     #ifeq: SPW | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | SPW | SPW/doc }}
     | 
     | :Error: {{{name}}} parameter is unused or incorrect! Please replace {{SPW{{ #if:  | |{{{1}}} }}{{ #ifeq: SPW | ¬ | | |name=SPW }}}} with {{SPW{{ #if:  | |{{{1}}} }}|name=SPW}}.
}}:{{ #switch: {{{1}}} | is on = This template or a similar one is on the Starter Pages Wikia, whence it is incorporated in every new Wikia site and can be copied to older ones. | is newer = This template is newer than a similar one on the Starter Pages Wikia. This template may therefore have bug fixes or improvements when compared to the older version.{{ #ifeq: {{ #titleparts: SPW/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | | }} }} | is not on = This template is not on the Starter Pages Wikia. It can be copied to other Wikia sites, but it is not included on any by default.{{ #ifeq: {{ #titleparts: SPW/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | | }} }} | #default = Editors have not checked whether this template is or is not on the Starter Pages Wikia.{{ #ifeq: {{ #titleparts: SPW/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | | }} }} }}

|

   {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc |  | }}
 }}

}}

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...
{{
 #ifeq: Template | Template 
 | {{
   #ifeq: {{ #if:  | {{{reusedemo}}} | Wiki.jriver.com }} | Wikia Templates
   | {{
     #ifeq: SPW | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | SPW | SPW/doc }}
     | 
     | :Error: {{{name}}} parameter is unused or incorrect! Please replace {{SPW{{ #if: is newer | |is newer }}{{ #ifeq: SPW | ¬ | | |name=SPW }}}} with {{SPW{{ #if: is newer | |is newer }}|name=SPW}}.
}}:{{ #switch: is newer | is on = This template or a similar one is on the Starter Pages Wikia, whence it is incorporated in every new Wikia site and can be copied to older ones. | is newer = This template is newer than a similar one on the Starter Pages Wikia. This template may therefore have bug fixes or improvements when compared to the older version.{{ #ifeq: {{ #titleparts: SPW/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | | }} }} | is not on = This template is not on the Starter Pages Wikia. It can be copied to other Wikia sites, but it is not included on any by default.{{ #ifeq: {{ #titleparts: SPW/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | | }} }} | #default = Editors have not checked whether this template is or is not on the Starter Pages Wikia.{{ #ifeq: {{ #titleparts: SPW/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | | }} }} }}

|

   {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc |  | }}
 }}

}}

{{SPW|is not on}} gives...
{{
 #ifeq: Template | Template 
 | {{
   #ifeq: {{ #if:  | {{{reusedemo}}} | Wiki.jriver.com }} | Wikia Templates
   | {{
     #ifeq: SPW | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | SPW | SPW/doc }}
     | 
     | :Error: {{{name}}} parameter is unused or incorrect! Please replace {{SPW{{ #if: is not on | |is not on }}{{ #ifeq: SPW | ¬ | | |name=SPW }}}} with {{SPW{{ #if: is not on | |is not on }}|name=SPW}}.
}}:{{ #switch: is not on | is on = This template or a similar one is on the Starter Pages Wikia, whence it is incorporated in every new Wikia site and can be copied to older ones. | is newer = This template is newer than a similar one on the Starter Pages Wikia. This template may therefore have bug fixes or improvements when compared to the older version.{{ #ifeq: {{ #titleparts: SPW/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | | }} }} | is not on = This template is not on the Starter Pages Wikia. It can be copied to other Wikia sites, but it is not included on any by default.{{ #ifeq: {{ #titleparts: SPW/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | | }} }} | #default = Editors have not checked whether this template is or is not on the Starter Pages Wikia.{{ #ifeq: {{ #titleparts: SPW/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | | }} }} }}

|

   {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc |  | }}
 }}

}}

{{SPW|is on}} gives...
{{
 #ifeq: Template | Template 
 | {{
   #ifeq: {{ #if:  | {{{reusedemo}}} | Wiki.jriver.com }} | Wikia Templates
   | {{
     #ifeq: SPW | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | SPW | SPW/doc }}
     | 
     | :Error: {{{name}}} parameter is unused or incorrect! Please replace {{SPW{{ #if: is on | |is on }}{{ #ifeq: SPW | ¬ | | |name=SPW }}}} with {{SPW{{ #if: is on | |is on }}|name=SPW}}.
}}:{{ #switch: is on | is on = This template or a similar one is on the Starter Pages Wikia, whence it is incorporated in every new Wikia site and can be copied to older ones. | is newer = This template is newer than a similar one on the Starter Pages Wikia. This template may therefore have bug fixes or improvements when compared to the older version.{{ #ifeq: {{ #titleparts: SPW/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | | }} }} | is not on = This template is not on the Starter Pages Wikia. It can be copied to other Wikia sites, but it is not included on any by default.{{ #ifeq: {{ #titleparts: SPW/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | | }} }} | #default = Editors have not checked whether this template is or is not on the Starter Pages Wikia.{{ #ifeq: {{ #titleparts: SPW/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | | }} }} }}

|

   {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc |  | }}
 }}

}}

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 {{#ifeq:|code|}}{{{{#if:|{{{prefix}}}:}}SPW{{#if:||<{{{2}}}>}}{{#if:||<{{{3}}}>}}{{#if:||<{{{4}}}>}}{{#if:||<{{{5}}}>}}{{#if:||<{{{6}}}>}}{{#if:||<{{{7}}}>}}{{#if:||<{{{8}}}>}}{{#if:||<{{{9}}}>}}{{#if:||<{{{10}}}>}}{{#if:||<{{{11}}}>}}{{#if:||<{{{12}}}>}}{{#if:||<{{{13}}}>}}{{#if:||<{{{14}}}>}}{{#if:||<{{{15}}}>}}{{#if:||<{{{16}}}>}}{{#if:||<{{{17}}}>}}{{#if:||<{{{18}}}>}}{{#if:||<{{{19}}}>}}{{#if:||<{{{20}}}>}}{{#if:||<{{{21}}}>}}}}{{#ifeq:|code|}}. 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.
Reuse
When this template is copied to other wikis, its behavior and appearance changes, and its documentation updates to reflect the changed behavior:

{{

 #ifeq: Template | Template 
 | {{
   #ifeq: {{ #if: yes | yes | Wiki.jriver.com }} | Wikia Templates
   | {{
     #ifeq: SPW | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | SPW | SPW/doc }}
     | 
     | :Error: {{{name}}} parameter is unused or incorrect! Please replace {{SPW{{ #if:  | |{{{1}}} }}{{ #ifeq: SPW | ¬ | | |name=SPW }}}} with {{SPW{{ #if:  | |{{{1}}} }}|name=SPW}}.
}}:{{ #switch: {{{1}}} | is on = This template or a similar one is on the Starter Pages Wikia, whence it is incorporated in every new Wikia site and can be copied to older ones. | is newer = This template is newer than a similar one on the Starter Pages Wikia. This template may therefore have bug fixes or improvements when compared to the older version.{{ #ifeq: {{ #titleparts: SPW/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | | }} }} | is not on = This template is not on the Starter Pages Wikia. It can be copied to other Wikia sites, but it is not included on any by default.{{ #ifeq: {{ #titleparts: SPW/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | | }} }} | #default = Editors have not checked whether this template is or is not on the Starter Pages Wikia.{{ #ifeq: {{ #titleparts: SPW/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc | | }} }} }}

|

   {{ #ifeq: {{ #titleparts: SPW/doc | 1 | -1 }} | doc |  | }}
 }}

}}

}}

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: Wiki.jriver.com | Wikia Templates

|

}}