Template:Token list item: Difference between revisions
Jump to navigation
Jump to search
>Fenhl (added support for subtypeless tokens) |
>Yandere-sliver mNo edit summary |
||
(24 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>|- valign="top" | <includeonly>|- valign="top" | ||
{{#ifexpr:{{#if:{{{1|}}}|{{#ifeq:{{{1|}}}|{{{ | {{#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}}}|}} | ||
{{ | {{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:{{{15|}}}|{{Token list item/row|{{{15|}}}|{{{16|}}}|{{{17|}}}|{{{18|}}}|{{{19|}}}|{{{20|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{ | {{#if:{{{21|}}}|{{Token list item/row|{{{21|}}}|{{{22|}}}|{{{23|}}}|{{{24|}}}|{{{25|}}}|{{{26|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{ | {{#if:{{{27|}}}|{{Token list item/row|{{{27|}}}|{{{28|}}}|{{{29|}}}|{{{30|}}}|{{{31|}}}|{{{32|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{ | {{#if:{{{33|}}}|{{Token list item/row|{{{33|}}}|{{{34|}}}|{{{35|}}}|{{{36|}}}|{{{37|}}}|{{{38|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{#if:{{{39|}}}|{{Token list item/row|{{{39|}}}|{{{40|}}}|{{{41|}}}|{{{42|}}}|{{{43|}}}|{{{44|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | |||
{{ | {{#if:{{{45|}}}|{{Token list item/row|{{{45|}}}|{{{46|}}}|{{{47|}}}|{{{48|}}}|{{{49|}}}|{{{50|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{#if:{{{51|}}}|{{Token list item/row|{{{51|}}}|{{{52|}}}|{{{53|}}}|{{{54|}}}|{{{55|}}}|{{{56|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | |||
{{ | {{#if:{{{57|}}}|{{Token list item/row|{{{57|}}}|{{{58|}}}|{{{59|}}}|{{{60|}}}|{{{61|}}}|{{{62|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{ | {{#if:{{{63|}}}|{{Token list item/row|{{{63|}}}|{{{64|}}}|{{{65|}}}|{{{66|}}}|{{{67|}}}|{{{68|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{ | {{#if:{{{69|}}}|{{Token list item/row|{{{69|}}}|{{{70|}}}|{{{71|}}}|{{{72|}}}|{{{73|}}}|{{{74|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{ | {{#if:{{{75|}}}|{{Token list item/row|{{{75|}}}|{{{76|}}}|{{{77|}}}|{{{78|}}}|{{{79|}}}|{{{80|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{ | {{#if:{{{81|}}}|{{Token list item/row|{{{81|}}}|{{{82|}}}|{{{83|}}}|{{{84|}}}|{{{85|}}}|{{{86|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{ | {{#if:{{{87|}}}|{{Token list item/row|{{{87|}}}|{{{88|}}}|{{{89|}}}|{{{90|}}}|{{{91|}}}|{{{92|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{ | {{#if:{{{93|}}}|{{Token list item/row|{{{93|}}}|{{{94|}}}|{{{95|}}}|{{{96|}}}|{{{97|}}}|{{{98|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{ | {{#if:{{{99|}}}|{{Token list item/row|{{{99|}}}|{{{100|}}}|{{{101|}}}|{{{102|}}}|{{{103|}}}|{{{104|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{ | {{#if:{{{105|}}}|{{Token list item/row|{{{105|}}}|{{{106|}}}|{{{107|}}}|{{{108|}}}|{{{109|}}}|{{{110|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{ | {{#if:{{{111|}}}|{{Token list item/row|{{{111|}}}|{{{112|}}}|{{{113|}}}|{{{114|}}}|{{{115|}}}|{{{116|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{#if:{{{117|}}}|{{Token list item/row|{{{117|}}}|{{{118|}}}|{{{119|}}}|{{{120|}}}|{{{121|}}}|{{{122|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | |||
{{#if:{{{ | {{#if:{{{123|}}}|{{Token list item/row|{{{123|}}}|{{{124|}}}|{{{125|}}}|{{{126|}}}|{{{127|}}}|{{{128|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{ | {{#if:{{{129|}}}|{{Token list item/row|{{{129|}}}|{{{130|}}}|{{{131|}}}|{{{132|}}}|{{{133|}}}|{{{134|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{ | {{#if:{{{135|}}}|{{Token list item/row|{{{135|}}}|{{{136|}}}|{{{137|}}}|{{{138|}}}|{{{139|}}}|{{{140|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{ | {{#if:{{{141|}}}|{{Token list item/row|{{{141|}}}|{{{142|}}}|{{{143|}}}|{{{144|}}}|{{{145|}}}|{{{146|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{ | {{#if:{{{147|}}}|{{Token list item/row|{{{147|}}}|{{{148|}}}|{{{149|}}}|{{{150|}}}|{{{151|}}}|{{{152|}}}|type1={{{2|}}}|type2={{{extra|}}}|type3={{{extra2|}}}|}}}} | ||
{{ | }}</includeonly><noinclude>This template is used to write one of the [[:Category:Token templates|token templates]]. | ||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{#if:{{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{#if:{{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{#if:{{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{#if:{{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{#if:{{{ | |||
{{ | |||
{{ | |||
== Usage == | == Usage == | ||
Line 186: | Line 37: | ||
* Colors, e.g. <code>WUBRG</code> or <code>C</code>. | * Colors, e.g. <code>WUBRG</code> or <code>C</code>. | ||
* The token's supertypes and types. If left empty, defaults to <code>Creature</code>. | * The token's supertypes and types. If left empty, defaults to <code>Creature</code>. | ||
* The token's power and toughness. Leave empty for noncreature tokens. | * The token's power and toughness. Leave empty for noncreature tokens. A token with a [[characteristic-defining ability]] should use <code>*/*</code>, while a token whose power and toughness are set based on a variable when created should use <code>X/X</code>. | ||
* Rules text, if any. | * Rules text, if any. | ||
* Cards that create this token, as a bullet list. Use <code><nowiki><c></nowiki></code> tags. | * Cards that create this token, as a bullet list. Use <code><nowiki><c></nowiki></code> 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, <code>BNG,C15</code> if the token was printed in ''[[Born of the Gods]]'' and ''[[Commander 2015]]''. | ||
Up to 25 rows are currently supported. | Up to 25 rows are currently supported. | ||
Line 196: | Line 47: | ||
* <code><nowiki>{{{extra}}}</nowiki></code>: an additional creature type to list after <code><nowiki>{{{1}}}</nowiki></code>. | * <code><nowiki>{{{extra}}}</nowiki></code>: an additional creature type to list after <code><nowiki>{{{1}}}</nowiki></code>. | ||
* <code><nowiki>{{{extra2}}}</nowiki></code>: an additional creature type to list after <code><nowiki>{{{extra}}}</nowiki></code>. | |||
* <code><nowiki>{{{name}}}</nowiki></code>: for tokens whose names are different from their creature types. Optionally with a link to an article about the character. | * <code><nowiki>{{{name}}}</nowiki></code>: for tokens whose names are different from their creature types. Optionally with a link to an article about the character. | ||
* <code><nowiki>{{{ref}}}</nowiki></code>: for references to be displayed after the token name. | * <code><nowiki>{{{ref}}}</nowiki></code>: for references to be displayed after the token name. | ||
==Sub-Templates== | |||
{{tl|token list item/row}} | |||
[[Category:Token templates|*]] | [[Category:Token templates|*]] | ||
</noinclude> |
Latest revision as of 23:40, 13 January 2021
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. 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 useX/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.