Template:Token list item: Difference between revisions

From MTG Wiki
Jump to navigation Jump to search
>Yandere-sliver
No edit summary
>Hanmac
mNo edit summary
Line 1: Line 1:
<includeonly>{{#ifeq:{{#if:{{{1|}}}|{{{1}}}|{{{extra|}}}}}|{{{extra|}}}|{{!}}- valign="top"
<includeonly>{{#if:{{#ifeq:{{{1|}}}|{{{extra|}}}|1}}{{#ifeq:{{{1|}}}|{{{2|}}}|1}}|{{!}}- valign="top"
{{!}}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}}}|}}
{{!}}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}}}}}

Revision as of 15:08, 4 September 2016

This template is used to write one of the token templates.

Usage

  1. The first parameter must always be {{{type|}}}, to pass that parameter through.
  2. 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 or C.
  • 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.