Template:T2/doc
Jump to navigation
Jump to search
{{
#ifeq: Template | Template | {{ #ifeq: {{ #if: | {{{reusedemo}}} | Wiki.jriver.com }} | Wikia Templates | {{ #ifeq: T2 | {{ #ifeq: {{ #titleparts: T2/doc | 1 | -1 }} | doc | T2 | T2/doc }} | | :Error: {{{name}}} parameter is unused or incorrect! Please replace{{SPW{{ #if: is not on | |is not on }}{{ #ifeq: T2 | ¬ | | |name=T2 }}}}
with{{SPW{{ #if: is not on | |is not on }}|name=T2}}
.
}}:{{ #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: T2/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: T2/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: T2/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: T2/doc | 1 | -1 }} | doc | | }} }} | #default = Editors have not checked whether this template is or is not on the Starter Pages Wikia.{{ #ifeq: {{ #titleparts: T2/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: T2/doc | 1 | -1 }} | doc | | }} }} }}
|
Error creating thumbnail: File missing | This template was copied from Template:T2 on Wikia Templates. That wiki should periodically be checked for a new version of this template. |
{{ #ifeq: {{ #titleparts: T2/doc | 1 | -1 }} | doc | | }} }}
}}
- Description
- A template link with a variable number of example parameters (0-20), which can be used to show example inputs, but not italicized or surrounded by angle brackets (<>).
- Dependencies
- None.
- Syntax
{{{{#if:|{{{prefix}}}:}}t2{{#if:parameter1||parameter1}}{{#if:parameter2||parameter2}}{{#if:parameter3||parameter3}}{{#if:parameter4||parameter4}}{{#if:...||...}}{{#if:parameter20||parameter20}}{{#if:prefix=...||prefix=...}}{{#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}}}}}}}
- Sample code
{{t2|welcome}}
gives...{{{{#if:|{{{prefix}}}:}}welcome{{#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}}}}}}}
{{t2|welcome|Item1|Item2|Item3|Item4|Item5|...}}
gives...{{{{#if:|{{{prefix}}}:}}welcome{{#if:Item1||Item1}}{{#if:Item2||Item2}}{{#if:Item3||Item3}}{{#if:Item4||Item4}}{{#if:Item5||Item5}}{{#if:...||...}}{{#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}}}}}}}
{{t2|welcome|2=param1=Item1}}
gives...{{{{#if:|{{{prefix}}}:}}welcome{{#if:param1=Item1||param1=Item1}}{{#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}}}}}}}
{{t2|welcome|prefix=subst}}
gives...{{{{#if:subst|subst:}}welcome{{#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}}}}}}}
- See also
{{{{#if:|{{{prefix}}}:}}t{{#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}}}}}}}
{{{{#if:|{{{prefix}}}:}}s{{#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}}}}}}}