Difference between revisions of "Template:Token list item"

From MTG Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<includeonly>|- valign="top"
 
<includeonly>|- valign="top"
{{#ifexpr:{{#if:{{{1|}}}|{{#ifeq:{{{1|}}}|{{{2|}}}|1|{{#ifeq:{{{1|}}}|{{{extra|}}}|1|{{#ifeq:{{{1|}}}|{{{extra2|}}}|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:{{{name|}}}|{{{name}}}|{{#if:{{{2|}}}|[[{{#if:y|{{{2}}}}}]]{{#if:{{{extra|}}}|<nowiki> </nowiki>[[{{#if:y|{{{extra}}}}}]]}}{{#if:{{{extra2|}}}|<nowiki> </nowiki>[[{{#if:y|{{{extra2}}}}}]]}}|''Subtypeless''}}}}'''{{#if:{{{ref|}}}|{{{ref}}}|}}
+
{{#ifexpr:{{#if:{{{1|}}}|{{#ifeq:{{{1|}}}|{{{2|}}}|1|{{#ifeq:{{{1|}}}|{{{extra|}}}|1|{{#ifeq:{{{1|}}}|{{{extra2|}}}|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:{{{name|}}}|{{{name}}}|{{#if:{{{2|}}}|[[{{{2}}}|{{#explode:{{{2}}}| (}}]]{{#if:{{{extra|}}}|<nowiki> </nowiki>[[{{#if:y|{{{extra}}}}}]]}}{{#if:{{{extra2|}}}|<nowiki> </nowiki>[[{{#if:y|{{{extra2}}}}}]]}}|''Subtypeless''}}}}'''{{#if:{{{ref|}}}|{{{ref}}}|}}
 
{{Token list item/row|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}}}
 
{{Token list item/row|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}}}
 
{{#if:{{{9|}}}|{{Token list item/row|{{{9|}}}|{{{10|}}}|{{{11|}}}|{{{12|}}}|{{{13|}}}|{{{14|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}}
 
{{#if:{{{9|}}}|{{Token list item/row|{{{9|}}}|{{{10|}}}|{{{11|}}}|{{{12|}}}|{{{13|}}}|{{{14|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}}

Revision as of 14:41, 13 January 2021

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. A token with a characteristic-defining ability should use */*, while a token whose power and toughness are set based on a variable when created should use X/X.
  • Rules text, if any.
  • Cards that create this token, as a bullet list. Use <c> tags.
  • The set codes of the sets where a physical token card of this token was printed, chronologically by release date and separated with commas. For example, BNG,C15 if the token was printed in Born of the Gods and Commander 2015.

Up to 25 rows are currently supported.

Optional parameters are:

  • {{{extra}}}: an additional creature type to list after {{{1}}}.
  • {{{extra2}}}: an additional creature type to list after {{{extra}}}.
  • {{{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.

Sub-Templates

{{token list item/row}}