Template:Token list item: Difference between revisions
Jump to navigation
Jump to search
>Hanmac mNo edit summary |
>Hanmac mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>|- valign="top" | <includeonly>|- valign="top" | ||
{{#ifexpr:{{#ifeq:{{{1|}}}|{{{extra|}}}|1|0}}+{{#ifeq:{{{1|}}}|{{{2|}}}|1|0}}|{{!}}rowspan="{{#expr:1+{{#if:{{{9|}}}|1|0}}+{{#if:{{{15|}}}|1|0}}+{{#if:{{{21|}}}|1|0}}+{{#if:{{{27|}}}|1|0}}+{{#if:{{{33|}}}|1|0}}+{{#if:{{{39|}}}|1|0}}+{{#if:{{{45|}}}|1|0}}+{{#if:{{{51|}}}|1|0}}+{{#if:{{{57|}}}|1|0}}+{{#if:{{{63|}}}|1|0}}+{{#if:{{{69|}}}|1|0}}+{{#if:{{{75|}}}|1|0}}+{{#if:{{{81|}}}|1|0}}+{{#if:{{{87|}}}|1|0}}+{{#if:{{{93|}}}|1|0}}+{{#if:{{{99|}}}|1|0}}+{{#if:{{{105|}}}|1|0}}+{{#if:{{{111|}}}|1|0}}+{{#if:{{{117|}}}|1|0}}+{{#if:{{{123|}}}|1|0}}+{{#if:{{{129|}}}|1|0}}+{{#if:{{{135|}}}|1|0}}+{{#if:{{{141|}}}|1|0}}+{{#if:{{{147|}}}|1|0}}}}"{{!}} '''[[{{#if:y|{{{2}}}}}]]{{#if:{{{extra|}}}|<nowiki> </nowiki>[[{{#if:y|{{{extra}}}}}]]}}'''{{#if:{{{name|}}}|<br /><small>named '''{{#if:y|{{{name}}}}}'''</small>}}{{#if:{{{ref|}}}|{{{ref}}}|}} | {{#ifexpr:{{#if:{{{1|}}}|{{#ifeq:{{{1|}}}|{{{extra|}}}|1|0}}+{{#ifeq:{{{1|}}}|{{{2|}}}|1|0}}|1}}|{{!}}rowspan="{{#expr:1+{{#if:{{{9|}}}|1|0}}+{{#if:{{{15|}}}|1|0}}+{{#if:{{{21|}}}|1|0}}+{{#if:{{{27|}}}|1|0}}+{{#if:{{{33|}}}|1|0}}+{{#if:{{{39|}}}|1|0}}+{{#if:{{{45|}}}|1|0}}+{{#if:{{{51|}}}|1|0}}+{{#if:{{{57|}}}|1|0}}+{{#if:{{{63|}}}|1|0}}+{{#if:{{{69|}}}|1|0}}+{{#if:{{{75|}}}|1|0}}+{{#if:{{{81|}}}|1|0}}+{{#if:{{{87|}}}|1|0}}+{{#if:{{{93|}}}|1|0}}+{{#if:{{{99|}}}|1|0}}+{{#if:{{{105|}}}|1|0}}+{{#if:{{{111|}}}|1|0}}+{{#if:{{{117|}}}|1|0}}+{{#if:{{{123|}}}|1|0}}+{{#if:{{{129|}}}|1|0}}+{{#if:{{{135|}}}|1|0}}+{{#if:{{{141|}}}|1|0}}+{{#if:{{{147|}}}|1|0}}}}"{{!}} '''[[{{#if:y|{{{2}}}}}]]{{#if:{{{extra|}}}|<nowiki> </nowiki>[[{{#if:y|{{{extra}}}}}]]}}'''{{#if:{{{name|}}}|<br /><small>named '''{{#if:y|{{{name}}}}}'''</small>}}{{#if:{{{ref|}}}|{{{ref}}}|}} | ||
{{!}} {{Parse colors|{{{3}}}}} | {{!}} {{Parse colors|{{{3}}}}} | ||
{{!}} {{#if:{{{4|}}}|{{{4}}}|Creature}} — {{{2}}}{{#if:{{{extra|}}}|<nowiki> </nowiki>{{{extra}}}}} | {{!}} {{#if:{{{4|}}}|{{{4}}}|Creature}} — {{{2}}}{{#if:{{{extra|}}}|<nowiki> </nowiki>{{{extra}}}}} |
Revision as of 15:13, 4 September 2016
This template is used to write one of the token templates.
Usage
- The first parameter must always be
{{{type|}}}
, to pass that parameter through. - The second parameter is the main creature type. For example, on {{Angel tokens}}, this is
Angel
.
Then, write one row per distinct token, with 6 parameters each:
- Colors, e.g.
WUBRG
orC
. - The token's supertypes and types. If left empty, defaults to
Creature
. - The token's power and toughness. Leave empty for noncreature tokens.
- Rules text, if any.
- Cards that create this token, as a bullet list. Use
<c>
tags. - An empty parameter. In the future, this will include printings of the token. (TODO: specify format)
Up to 25 rows are currently supported.
Optional parameters are:
{{{extra}}}
: an additional creature type to list after{{{1}}}
.{{{name}}}
: for tokens whose names are different from their creature types. Optionally with a link to an article about the character.{{{ref}}}
: for references to be displayed after the token name.