Difference between revisions of "Template:CardTable2/doc"

From Yugipedia
Jump to: navigation, search
(Deprecated parameters: forgot to document the non-vg deprecations)
(split style descriptions in the color table into header and body columns, and add previews/demos of the styles (I'm sure the descriptions could use some work); other stuff)
Line 130: Line 130:
 
* <code>image</code>: The page name of the image to be displayed (without the "File:" prefix). If an image is given which has not been uploaded yet, a default [[card backing]] will be displayed (See the [[#Default image|default image]] section for more information) with a link to the upload form for the given image name; these pages are also added to [[:Category:Card table transclusions using non-uploaded images]]. If a card backing image is specified, the page is added to [[:Category:((CardTable2)) transclusions using card backings]]. Any value given is checked for certain things (mainly embedded image or link syntax, or URLs), and these cases are added to [[:Category:CardTable2 bad image values]].
 
* <code>image</code>: The page name of the image to be displayed (without the "File:" prefix). If an image is given which has not been uploaded yet, a default [[card backing]] will be displayed (See the [[#Default image|default image]] section for more information) with a link to the upload form for the given image name; these pages are also added to [[:Category:Card table transclusions using non-uploaded images]]. If a card backing image is specified, the page is added to [[:Category:((CardTable2)) transclusions using card backings]]. Any value given is checked for certain things (mainly embedded image or link syntax, or URLs), and these cases are added to [[:Category:CardTable2 bad image values]].
 
* <code>image2</code>: The page name of an image containing the back of the card. Used for [[Skill Card|Skill]] and [[Tip Card]]s.
 
* <code>image2</code>: The page name of an image containing the back of the card. Used for [[Skill Card|Skill]] and [[Tip Card]]s.
* <code>width</code>: The width of the image, defaults to 300 px (which is also the maximum allowed). If a larger width is specified, or a non-numeric value is given, the page is added to [[:Category:CardTable2 transclusions with bad width values]]. All uses of <code>width</code> cause the page to be added to [[:Category:CardTable2 parameter tracking (width)]].
+
* <code>width</code>: The width of the image, defaults to 300 px (which is also the maximum allowed). If a larger width is specified, or a non-numeric value is given, the page is added to [[:Category:CardTable2 transclusions with bad width values]]. All pages using <code>width</code> are added to [[:Category:CardTable2 parameter tracking (width)]].
  
 
===Properties===
 
===Properties===
Line 136: Line 136:
 
* <code>alt_name</code>, <code>alt_name2</code>, <code>alt_name3</code>: Other English names of the card. All uses add the page to [[:Category:Card pages with an alt name]].
 
* <code>alt_name</code>, <code>alt_name2</code>, <code>alt_name3</code>: Other English names of the card. All uses add the page to [[:Category:Card pages with an alt name]].
 
* <code>card_type</code>: The type of card, used for non-Monster Cards ("[[Spell Card|Spell]]", "[[Trap Card|Trap]]", "[[FAQ card|FAQ]]", "[[Skill Card|Skill]]", "[[Strategy Card|Strategy]]", "[[Ticket Card|Ticket]]", "[[Tip Card|Tip]]").
 
* <code>card_type</code>: The type of card, used for non-Monster Cards ("[[Spell Card|Spell]]", "[[Trap Card|Trap]]", "[[FAQ card|FAQ]]", "[[Skill Card|Skill]]", "[[Strategy Card|Strategy]]", "[[Ticket Card|Ticket]]", "[[Tip Card|Tip]]").
* <code>property</code>: The [[Property]], for Spell and Trap Cards
+
* <code>property</code>: The [[Property]], for Spell and Trap Cards.
* <code>attribute</code>: The card's [[Attribute]]
+
* <code>attribute</code>: The card's [[Attribute]].
 
* <code>character</code>: The page name of the corresponding character, if a [[Skill Card]].
 
* <code>character</code>: The page name of the corresponding character, if a [[Skill Card]].
* <code>type</code>: The first item in the card's Types string, usually the [[Type]]
+
* <code>type</code>: The first item in the card's Types string, usually the [[Type]].
* <code>type2</code>: The second item in the card's Types string
+
* <code>type2</code>: The second item in the card's Types string.
* <code>type3</code>: The third item in the card's Types string
+
* <code>type3</code>: The third item in the card's Types string.
* <code>type4</code>: The fourth item in the card's Types string
+
* <code>type4</code>: The fourth item in the card's Types string.
 
* <code>types</code>: An alternative to the above four parameters, where all Types are specified at once and separated with forward slashes. This parameter is still being developed and should not be used.
 
* <code>types</code>: An alternative to the above four parameters, where all Types are specified at once and separated with forward slashes. This parameter is still being developed and should not be used.
 
* <code>level</code>: The card's [[Level]]. Using this for [[Xyz Monster]]s will add the page to [[:Category:Xyz Monsters using (((level)))]].
 
* <code>level</code>: The card's [[Level]]. Using this for [[Xyz Monster]]s will add the page to [[:Category:Xyz Monsters using (((level)))]].
 
* <code>rank</code>: The card's [[Rank]]. Using this for non-Xyz Monsters will add the page to [[:Category:Non-Xyz Monsters using (((rank)))]].
 
* <code>rank</code>: The card's [[Rank]]. Using this for non-Xyz Monsters will add the page to [[:Category:Non-Xyz Monsters using (((rank)))]].
 
* <code>link_arrows</code>: Comma-separated list of positions of the card's [[Link Arrow]]s. The amount of items listed will also dictate the card's [[Link Rating]].
 
* <code>link_arrows</code>: Comma-separated list of positions of the card's [[Link Arrow]]s. The amount of items listed will also dictate the card's [[Link Rating]].
* <code>pendulum_scale</code>: The card's [[Pendulum Scale]]
+
* <code>pendulum_scale</code>: The card's [[Pendulum Scale]].
* <code>atk</code>: The card's [[ATK]]
+
* <code>atk</code>: The card's [[ATK]].
* <code>def</code>: The card's [[DEF]]
+
* <code>def</code>: The card's [[DEF]].
 
* <code>password</code>: The card's [[password]]. If the card has never been printed with a password, this should be set to <code>none</code> (this will add the page to [[:Category:Cards printed without a password]]). If no password is given, or the given password is invalid (if it is not exactly 8 digits long, or has any non-numeric characters), the page is added to [[:Category:Cards needing a password]]. If there is no redirect from the given password, the page is added to [[:Category:Cards needing a password redirect]].
 
* <code>password</code>: The card's [[password]]. If the card has never been printed with a password, this should be set to <code>none</code> (this will add the page to [[:Category:Cards printed without a password]]). If no password is given, or the given password is invalid (if it is not exactly 8 digits long, or has any non-numeric characters), the page is added to [[:Category:Cards needing a password]]. If there is no redirect from the given password, the page is added to [[:Category:Cards needing a password redirect]].
* <code>limitation_text</code>: The card's [[limitation text]]
+
* <code>limitation_text</code>: The card's [[limitation text]].
* <code>ritualcard</code>: The [[Ritual Spell Card]] needed to Summon the card
+
* <code>ritualcard</code>: The [[Ritual Spell Card]] needed to Summon the card.
* <code>ritualmonster</code>: The [[Ritual Monster]] Summoned by the card
+
* <code>ritualmonster</code>: The [[Ritual Monster]] Summoned by the card.
* <code>summon</code>: Card used to Summon the monster, if a [[Monster Token]]
+
* <code>summon</code>: Card used to Summon the monster, if a [[Monster Token]].
* <code>source_card</code>: The non-Skill Card that the Skill Card is based on
+
* <code>source_card</code>: The non-Skill Card that the Skill Card is based on.
 
* <code>lore</code>: The text printed on the card, either a card description or effect text. If the card was printed without any lore, this should be set to <code>none</code> (which will add the page to [[:Category:Cards printed without a lore]]).
 
* <code>lore</code>: The text printed on the card, either a card description or effect text. If the card was printed without any lore, this should be set to <code>none</code> (which will add the page to [[:Category:Cards printed without a lore]]).
* <code>pendulum_effect</code>: The text printed on the card, describing its [[Pendulum Monster]] effect
+
* <code>pendulum_effect</code>: The text printed on the card, describing its [[Pendulum Monster]] effect.
* <code>skill_activation</code>: The activation requirement, printed on Skill Cards
+
* <code>skill_activation</code>: The activation requirement, printed on Skill Cards.
 
* <code>use</code>: The purpose of the card, if a non-game card whose purpose is not otherwise clear. All pages using this parameter are added to [[:Category:Card table parameter tracking (use)]].
 
* <code>use</code>: The purpose of the card, if a non-game card whose purpose is not otherwise clear. All pages using this parameter are added to [[:Category:Card table parameter tracking (use)]].
 
* <code>effect_types</code>: A comma-separated list of the card's [[effect]] types. Pages which should have this parameter ([[Effect Monster]]s, Spell/Trap Cards, etc.), but do not, are added to [[:Category:Cards needing effect_types]].
 
* <code>effect_types</code>: A comma-separated list of the card's [[effect]] types. Pages which should have this parameter ([[Effect Monster]]s, Spell/Trap Cards, etc.), but do not, are added to [[:Category:Cards needing effect_types]].
Line 166: Line 166:
 
Using any of these will add the page to [[:Category:Cards with a manual status]]. If one of these is used without a value, the page will be added to [[:Category:((CardTable2)) transclusions with an unnecessary status parameter]].
 
Using any of these will add the page to [[:Category:Cards with a manual status]]. If one of these is used without a value, the page will be added to [[:Category:((CardTable2)) transclusions with an unnecessary status parameter]].
 
* <code>ocg_status</code>: The card's [[status]] in the ''OCG''. Defaults to [[Unlimited]]; this parameter should only be added if the card is [[not yet released]] or [[Not yet legal|legal]], or if it has a status other than Unlimited.
 
* <code>ocg_status</code>: The card's [[status]] in the ''OCG''. Defaults to [[Unlimited]]; this parameter should only be added if the card is [[not yet released]] or [[Not yet legal|legal]], or if it has a status other than Unlimited.
* <code>tcg_status</code>: The card's status in the ''TCG'' [[Advanced Format]] (If the card is [[Forbidden]], its [[Traditional Format]] status will be automatically assumed to be [[Limited]].) Defaults to Unlimited; this parameter should only be added if the card is not yet released or legal, or if it has a status other than Unlimited.
+
* <code>tcg_status</code>: The card's status in the ''TCG'' [[Advanced Format]] (if the card is [[Forbidden]], its [[Traditional Format]] status will be automatically assumed to be [[Limited]].) Defaults to Unlimited; this parameter should only be added if the card is not yet released or legal, or if it has a status other than Unlimited.
 
* <code>tcg_speed_duel_status</code>: The card's status in ''TCG'' [[Speed Duel (format)|Speed Duels]]. This parameter should be used for all Speed Duel-legal cards.
 
* <code>tcg_speed_duel_status</code>: The card's status in ''TCG'' [[Speed Duel (format)|Speed Duels]]. This parameter should be used for all Speed Duel-legal cards.
  
 
===Search categories===
 
===Search categories===
 
Each of these should be a bulleted list of page names:
 
Each of these should be a bulleted list of page names:
* <code>archseries</code>: [[archetype]]s or [[series]] that the card is a member of
+
* <code>archseries</code>: [[archetype]]s or [[series]] that the card is a member of.
* <code>supports_archetypes</code>: archetypes that the card directly [[support]]s
+
* <code>supports_archetypes</code>: archetypes that the card directly [[support]]s.
* <code>anti-supports_archetypes</code>: archetypes that the card directly [[Anti-support|works against]]
+
* <code>anti-supports_archetypes</code>: archetypes that the card directly [[Anti-support|works against]].
* <code>related_to_archseries</code>: archetypes that the card is connected to without being a member or directly supporting. e.g. it supports an individual member of the archetype<!-- we need to list the exact conditions that qualify a card as related to an archseries here -->
+
* <code>related_to_archseries</code>: archetypes that the card is connected to without being a member or directly supporting. e.g. it supports an individual member of the archetype.<!-- we need to list the exact conditions that qualify a card as related to an archseries here -->
 
* <code>supports</code>
 
* <code>supports</code>
 
* <code>anti-supports</code>
 
* <code>anti-supports</code>
Line 180: Line 180:
 
* <code>attack</code>: possible values are listed in [[:Category:"Attack" search category entry pages]].
 
* <code>attack</code>: possible values are listed in [[:Category:"Attack" search category entry pages]].
 
* <code>banished</code>: possible values are listed in [[:Category:"Banishing" search category entry pages]].
 
* <code>banished</code>: possible values are listed in [[:Category:"Banishing" search category entry pages]].
* <code>counter</code>: possible values are listed in [[:Category:"Counters" search category entry pages]].
+
* <code>counter</code>
* <code>fm_for</code>: cards that list this card by name as [[Fusion Material]]
+
* <code>fm_for</code>: cards that list this card by name as [[Fusion Material]].
* <code>sm_for</code>: cards that list this card by name as [[Synchro Material]]
+
* <code>sm_for</code>: cards that list this card by name as [[Synchro Material]].
 
* <code>life_points</code>: possible values are listed in [[:Category:"LP" search category entry pages]].
 
* <code>life_points</code>: possible values are listed in [[:Category:"LP" search category entry pages]].
 
* <code>m/s/t</code>: possible values are listed in [[:Category:"MonsterSpellTrap" search category entry pages]].
 
* <code>m/s/t</code>: possible values are listed in [[:Category:"MonsterSpellTrap" search category entry pages]].
Line 204: Line 204:
 
* <code>zh_pinyin_</code>: Chinese romanized, using [[wikipedia:Pinyin|Pinyin]].
 
* <code>zh_pinyin_</code>: Chinese romanized, using [[wikipedia:Pinyin|Pinyin]].
  
Other localisation parameters (using any of these will add the page to [[:Category:Card pages with an alt name]]).
+
Other localization parameters (using any of these will add the page to [[:Category:Card pages with an alt name]]).
* <code>ja_alt_name</code>: A second Japanese name for the card
+
* <code>ja_alt_name</code>: A second Japanese name for the card.
* <code>ja_alt_romaji</code>: Romanization of the second Japanese name
+
* <code>ja_alt_romaji</code>: Romanization of the second Japanese name.
* <code>ja_alt_trans</code>: English translation of the second Japanese name
+
* <code>ja_alt_trans</code>: English translation of the second Japanese name.
  
 
===Sets===
 
===Sets===
 
The values for all sets are to be entered using the following syntax and ordered by release date, from oldest to newest.
 
The values for all sets are to be entered using the following syntax and ordered by release date, from oldest to newest.
 
<pre>
 
<pre>
Set number 1; Set page name 1; Rarity 1
+
Card number 1; Set page name 1; Rarity 1
Set number 2; Set page name 2; Rarity 2
+
Card number 2; Set page name 2; Rarity 2
 
</pre>
 
</pre>
 
For example:
 
For example:
Line 221: Line 221:
 
DDS-001; Yu-Gi-Oh! Dark Duel Stories promotional cards; Prismatic Secret Rare
 
DDS-001; Yu-Gi-Oh! Dark Duel Stories promotional cards; Prismatic Secret Rare
 
SDK-001; Starter Deck: Kaiba; Ultra Rare
 
SDK-001; Starter Deck: Kaiba; Ultra Rare
 +
</pre>
 +
If a card was printed in multiple rarities, all in the same set and with the same card number, the rarities should be included on the same line, separated with commas. For example:
 +
<pre>
 +
| ja_sets =
 +
CHIM-JP010; Chaos Impact; Super Rare, Secret Rare, 20th Secret Rare
 +
</pre>
 +
If a card's rarity is unknown, or if a card has no card number, the value should be left blank, but the semicolon should be included. Similarly, if the card number is unknown, the known portion of the card number may be included, with unknown portions represented with question marks. For example:
 +
<pre>
 +
| na_sets =
 +
; Legend of Blue Eyes White Dragon; Common
 +
SDK-001; Starter Deck: Kaiba;
 +
CHIM-EN0??; Chaos Impact;
 +
????-EN???; Eternity Code;
 
</pre>
 
</pre>
  
Line 240: Line 253:
 
* <code>kr_sets</code>: Korean
 
* <code>kr_sets</code>: Korean
  
For convenience, <code>ko_sets</code> is supported as an alternative to <code>kr_sets</code>, but this is considered an error and the page will be added to [[:Category:Card table transclusions using ko_sets]].
+
For convenience, <code>ko_sets</code> is supported as an alternative to <code>kr_sets</code>, and <code>es_sets</code> as an alternative to <code>sp_sets</code>, but these are considered errors, and the page will be added to [[:Category:Card table transclusions using ko_sets]] or [[:Category:Card table transclusions using es_sets]], respectively.
  
 
==Color schemes==
 
==Color schemes==
 
The logic for determining the color scheme is as follows. If a condition is met, that color scheme is used. If not, the next condition is checked.
 
The logic for determining the color scheme is as follows. If a condition is met, that color scheme is used. If not, the next condition is checked.
  
# If the <code>cardclass</code> parameter is used, it will dictate the color scheme. Any value from the "Name" column in the table below card be used for this parameter. Cards using this parameter are tracked in [[:Category:CardTable2 parameter tracking (cardclass)]].
+
# If the <code>cardclass</code> parameter is used, it will dictate the color scheme. Any value from the "Name" column in the table below can be used for this parameter. Cards using this parameter are tracked in [[:Category:CardTable2 parameter tracking (cardclass)]].
 
# If the card is a [[Monster Card]] with "Token" in its name, the <code>token</code> color scheme will be used.
 
# If the card is a [[Monster Card]] with "Token" in its name, the <code>token</code> color scheme will be used.
 
# If the <code>card_type</code> parameter is used, the color scheme associated with the card type will be used. (See the "Use" column in the table below to find the card type.)
 
# If the <code>card_type</code> parameter is used, the color scheme associated with the card type will be used. (See the "Use" column in the table below to find the card type.)
# If the value of <code>type2</code> is any of the following "Normal", "Effect", "Fusion", "Link", "Ritual", "Synchro", "Token", "Xyz", the color scheme associated with the monster type will be used. (See the "Use" column.)
+
# If the value of <code>type2</code> is any of "Normal", "Effect", "Fusion", "Link", "Ritual", "Synchro", "Token", or "Xyz", the color scheme associated with the monster type will be used. (See the "Use" column.)
 
# If <code>type3</code> is used, the color scheme associated with its value is used. (See the "Use" column.)
 
# If <code>type3</code> is used, the color scheme associated with its value is used. (See the "Use" column.)
 
# If the template identifies the card as a Monster Card and the <code>effect_types</code> parameter is used or the card has an [[Ability]] in one of its <code>type</code> parameters, the <code>effect</code> color scheme will be used. Cards will be added to the [[:Category:Colors assumed without using the Type string]] category, in this scenario.
 
# If the template identifies the card as a Monster Card and the <code>effect_types</code> parameter is used or the card has an [[Ability]] in one of its <code>type</code> parameters, the <code>effect</code> color scheme will be used. Cards will be added to the [[:Category:Colors assumed without using the Type string]] category, in this scenario.
Line 259: Line 272:
 
|-
 
|-
 
! scope="col" | Name
 
! scope="col" | Name
! scope="col" | Style
+
! scope="col" | Header style
 +
! scope="col" | Body style
 
! scope="col" | Use
 
! scope="col" | Use
 
! scope="col" | Example page
 
! scope="col" | Example page
 
|-
 
|-
 
! scope="row" | normal
 
! scope="row" | normal
| Yellow, with italicized lore
+
| class="normal-card" | <div class="heading">Dark yellow</div>
 +
| class="normal-card" | Yellow, with italicized lore
 
| [[Normal Monster]]
 
| [[Normal Monster]]
 
| "[[Blue-Eyes White Dragon]]"
 
| "[[Blue-Eyes White Dragon]]"
 
|-
 
|-
 
! scope="row" | effect
 
! scope="row" | effect
| Orange
+
| class="effect-card" | <div class="heading">Orange</div>
 +
| class="effect-card" | Orange
 
| [[Effect Monster]]
 
| [[Effect Monster]]
 
| "[[Dark Magician Girl]]"
 
| "[[Dark Magician Girl]]"
 
|-
 
|-
 
! scope="row" | fusion
 
! scope="row" | fusion
| Violet
+
| class="fusion-card" | <div class="heading">Violet</div>
 +
| class="fusion-card" | Light purple
 
| [[Fusion Monster]]
 
| [[Fusion Monster]]
 
| "[[Gaia the Dragon Champion]]"
 
| "[[Gaia the Dragon Champion]]"
 
|-
 
|-
 
! scope="row" | ritual
 
! scope="row" | ritual
| Blue
+
| class="ritual-card" | <div class="heading">Blue</div>
 +
| class="ritual-card" | Light blue
 
| [[Ritual Monster]]
 
| [[Ritual Monster]]
 
| "[[Black Luster Soldier]]"
 
| "[[Black Luster Soldier]]"
 
|-
 
|-
 
! scope="row" | synchro
 
! scope="row" | synchro
| White
+
| class="synchro-card" | <div class="heading">Light grey</div>
 +
| class="synchro-card" | White
 
| [[Synchro Monster]]
 
| [[Synchro Monster]]
 
| "[[Stardust Dragon]]"
 
| "[[Stardust Dragon]]"
 
|-
 
|-
 
! scope="row" | xyz
 
! scope="row" | xyz
| Black
+
| class="xyz-card" | <div class="heading">Black, white text</div>
 +
| class="xyz-card" | Light grey
 
| [[Xyz Monster]]
 
| [[Xyz Monster]]
 
| "[[Number 39: Utopia]]"
 
| "[[Number 39: Utopia]]"
 
|-
 
|-
 
! scope="row" | link
 
! scope="row" | link
| Blue, with a honeycomb-pattern in the header
+
| class="link-card" | <div class="heading">Blue, white text, with a honeycomb-pattern in the header</div>
 +
| class="link-card" | Light blue
 
| [[Link Monster]]
 
| [[Link Monster]]
 
| "[[Link Spider]]"
 
| "[[Link Spider]]"
 
|-
 
|-
 
! scope="row" rowspan="3" | spell
 
! scope="row" rowspan="3" | spell
| rowspan="3" | Green
+
| class="spell-card" rowspan="3" | <div class="heading">Green, white text</div>
 +
| class="spell-card" rowspan="3" | Green
 
| [[Spell Card]]
 
| [[Spell Card]]
 
| "[[Monster Reborn]]"
 
| "[[Monster Reborn]]"
Line 310: Line 332:
 
|-
 
|-
 
! scope="row" | trap
 
! scope="row" | trap
| Purple
+
| class="trap-card" | <div class="heading">Purple, white text</div>
 +
| class="trap-card" | Purple
 
| [[Trap Card]]
 
| [[Trap Card]]
 
| "[[Trap Hole]]"
 
| "[[Trap Hole]]"
 
|-
 
|-
 
! scope="row" rowspan="2" | token
 
! scope="row" rowspan="2" | token
| rowspan="2" | Gray
+
| class="token-card" rowspan="2" | <div class="heading">Grey</div>
 +
| class="token-card" rowspan="2" | Grey
 
| [[Monster Token]]
 
| [[Monster Token]]
 
| "[[Sheep Token]]"
 
| "[[Sheep Token]]"
Line 323: Line 347:
 
|-
 
|-
 
! scope="row" | skill
 
! scope="row" | skill
| Blue, with gradient, border and text shadow effects in the header
+
| class="skill-card" | <div class="heading">Blue, white text, with gradient, border and text shadow effects</div>
 +
| class="skill-card" | Light blue
 
| [[Skill Card]]
 
| [[Skill Card]]
 
| "[[It's a Toon World!]]"
 
| "[[It's a Toon World!]]"
 
|-
 
|-
 
! scope="row" | faq
 
! scope="row" | faq
 +
| ''Not currently developed''
 
| ''Not currently developed''
 
| ''Not currently developed''
 
| [[FAQ card]]
 
| [[FAQ card]]
Line 333: Line 359:
 
|-
 
|-
 
! scope="row" rowspan="2" | strategy
 
! scope="row" rowspan="2" | strategy
| rowspan="2" | Blue header, grey background
+
| class="strategy-card" rowspan="2" | <div class="heading">Blue, white text</div>
 +
| class="strategy-card" rowspan="2" | Grey
 
| [[Strategy Card]]
 
| [[Strategy Card]]
 
| "[[Ace in the hole]]"
 
| "[[Ace in the hole]]"
Line 341: Line 368:
 
|-
 
|-
 
! scope="row" | tip
 
! scope="row" | tip
| Purple header, pale yellow background
+
| class="tip-card" | <div class="heading">Purple, white text</div>
 +
| class="tip-card" | Pale yellow
 
| [[Tip Card]]
 
| [[Tip Card]]
 
| "[[Be polite!]]"
 
| "[[Be polite!]]"
 
|-
 
|-
 
! scope="row" | red
 
! scope="row" | red
| Red
+
| class="red-card" | <div class="heading">Red</div>
 +
| class="red-card" | Red
 
| Certain cards, not adhering to a standard color scheme
 
| Certain cards, not adhering to a standard color scheme
 
| "[[Slifer the Sky Dragon (original)]]"
 
| "[[Slifer the Sky Dragon (original)]]"
 
|-
 
|-
 
! scope="row" rowspan="2" | yellow
 
! scope="row" rowspan="2" | yellow
| rowspan="2" | Yellow (same style as "normal", but without italics)
+
| class="yellow-card" rowspan="2" | <div class="heading">Yellow (same style as "normal")</div>
 +
| class="yellow-card" rowspan="2" | Yellow (same style as "normal", but without italics)
 
| [[Ticket Card]]
 
| [[Ticket Card]]
 
| "[[Glory of the King's Hand]]"
 
| "[[Glory of the King's Hand]]"
Line 359: Line 389:
 
|-
 
|-
 
! scope="row" | blue
 
! scope="row" | blue
| Blue (same style as "ritual")
+
| class="blue-card" | <div class="heading">Blue (same style as "ritual")</div>
 +
| class="blue-card" | Blue (same style as "ritual")
 
| Certain cards, not adhering to a standard color scheme
 
| Certain cards, not adhering to a standard color scheme
 
| "[[Obelisk the Tormentor (original)]]"
 
| "[[Obelisk the Tormentor (original)]]"
 
|-
 
|-
 
! scope="row" | pendulum
 
! scope="row" | pendulum
| Adds a green gradient on top of another color scheme. This scheme is not to be used by itself.
+
| Header style of the other color scheme
 +
| class="pendulum-card" | Adds a green gradient on top of another color scheme. This scheme is not to be used by itself.
 
| [[Pendulum Monster]]
 
| [[Pendulum Monster]]
 
| "[[Odd-Eyes Pendulum Dragon]]"
 
| "[[Odd-Eyes Pendulum Dragon]]"
 
|-
 
|-
 
! scope="row" | blank
 
! scope="row" | blank
| Light gray
+
| class="blank-card" | <div class="heading">Light grey</div>
 +
| class="blank-card" | Light grey
 
| Default. Used when the card has not been identified as belonging to any other color scheme.
 
| Default. Used when the card has not been identified as belonging to any other color scheme.
 
| Ideally, no cards should use this. If there are any, they will be listed at [[:Category:Card pages with no color class]].
 
| Ideally, no cards should use this. If there are any, they will be listed at [[:Category:Card pages with no color class]].
Line 375: Line 408:
  
 
==Default image==
 
==Default image==
If the <code>image</code> parameter is unused, empty or contains a non-existent image, the following logic determines, which image is shown:
+
If the <code>image</code> parameter is unused, empty or contains a non-existent image, the following logic determines which image is shown:
 
# If the value of <code>card_type</code> is "Checklist", "FAQ", "Strategy" or "Tip", [[:File:StrategyCard-EN-Back.png]] is used.
 
# If the value of <code>card_type</code> is "Checklist", "FAQ", "Strategy" or "Tip", [[:File:StrategyCard-EN-Back.png]] is used.
 
# If the card uses a [[#Sets|sets]] parameter for any of the ''TCG'' regions, [[:File:Back-EN.png]] is used.
 
# If the card uses a [[#Sets|sets]] parameter for any of the ''TCG'' regions, [[:File:Back-EN.png]] is used.
 
# If the card uses a Japanese or Chinese sets parameter, [[:File:Back-JP.png]] is used.
 
# If the card uses a Japanese or Chinese sets parameter, [[:File:Back-JP.png]] is used.
 
# If the card uses the <code>kr_sets</code> parameter, [[:File:Back-KR.png]] is used.
 
# If the card uses the <code>kr_sets</code> parameter, [[:File:Back-KR.png]] is used.
# If the card uses the <code>ae_sets</code> parameter, [[:File:Back-AE.png]] is used.
+
# Otherwise, [[:File:Back-EN.png]] is used.
# If the card has any video game parameters, [[:File:Back-TF-EN-VG.png]] is used (deprecated).
 
# By default [[:File:Back-EN.png]] is used.
 
  
 
==Tracking categories==
 
==Tracking categories==
Line 406: Line 437:
 
Parameters still in use, but should be removed in the near future.
 
Parameters still in use, but should be removed in the near future.
 
* <code>cardgame</code>: The page name of the corresponding ''OCG''/''TCG'' card, if the current card is not part of the ''OCG''/''TCG''. Tracked in [[:Category:Card table parameter tracking (cardgame)]].
 
* <code>cardgame</code>: The page name of the corresponding ''OCG''/''TCG'' card, if the current card is not part of the ''OCG''/''TCG''. Tracked in [[:Category:Card table parameter tracking (cardgame)]].
* <code>ar_name</code>, <code>bg_name</code>, <code>hr_name</code>, <code>cs_name</code>, <code>da_name</code>, <code>fil_name</code>, <code>fi_name</code>, <code>el_name</code>, <code>hu_name</code>, <code>ga_name</code>, <code>lv_name</code>, <code>pl_name</code>, <code>ru_name</code>, <code>sr_name</code>, <code>sv_name</code>, <code>th_name</code>, <code>tr_name</code>, <code>vi_name</code>, <code>ar_lore</code>, <code>bg_lore</code>, <code>hr_lore</code>, <code>cs_lore</code>, <code>da_lore</code>, <code>fil_lore</code>, <code>fi_lore</code>, <code>el_lore</code>, <code>hu_lore</code>, <code>ga_lore</code>, <code>lv_lore</code>, <code>pl_lore</code>, <code>ru_lore</code>, <code>sr_lore</code>, <code>sv_lore</code>, <code>th_lore</code>, <code>tr_lore</code>, <code>vi_lore</code>: Localisation parameters for unofficial languages
+
* <code>ar_name</code>, <code>bg_name</code>, <code>hr_name</code>, <code>cs_name</code>, <code>da_name</code>, <code>fil_name</code>, <code>fi_name</code>, <code>el_name</code>, <code>hu_name</code>, <code>ga_name</code>, <code>lv_name</code>, <code>pl_name</code>, <code>ru_name</code>, <code>sr_name</code>, <code>sv_name</code>, <code>th_name</code>, <code>tr_name</code>, <code>vi_name</code>, <code>ar_lore</code>, <code>bg_lore</code>, <code>hr_lore</code>, <code>cs_lore</code>, <code>da_lore</code>, <code>fil_lore</code>, <code>fi_lore</code>, <code>el_lore</code>, <code>hu_lore</code>, <code>ga_lore</code>, <code>lv_lore</code>, <code>pl_lore</code>, <code>ru_lore</code>, <code>sr_lore</code>, <code>sv_lore</code>, <code>th_lore</code>, <code>tr_lore</code>, <code>vi_lore</code>: Localization parameters for unofficial languages
 
* <code>fm1</code>, <code>fm2</code>, <code>fm3</code>, <code>fm4</code>, <code>fm5</code>: Replaced by <code>fusion_material</code>. Tracked in [[:Category:((CardTable2)) transclusions needing updated Fusion Material parameter]].
 
* <code>fm1</code>, <code>fm2</code>, <code>fm3</code>, <code>fm4</code>, <code>fm5</code>: Replaced by <code>fusion_material</code>. Tracked in [[:Category:((CardTable2)) transclusions needing updated Fusion Material parameter]].
 
* <code>sm1</code>, <code>sm2</code>, <code>sm3</code>, <code>sm4</code>, <code>sm5</code>: Replaced by <code>synchro_material</code>. Tracked in [[:Category:((CardTable2)) transclusions needing updated Synchro Material parameter]].
 
* <code>sm1</code>, <code>sm2</code>, <code>sm3</code>, <code>sm4</code>, <code>sm5</code>: Replaced by <code>synchro_material</code>. Tracked in [[:Category:((CardTable2)) transclusions needing updated Synchro Material parameter]].
  
 
===Video game parameters===
 
===Video game parameters===
A number of parameters for video game data remain; these will be gradually removed as the games get dedicated card templates and card pages are split. All pages using any of these parameters are added to [[:Category:((CardTable2)) transclusions with video game parameters]].
+
A number of parameters for video game data remain; these will be gradually removed as the games get dedicated card templates and card pages are split. All pages using any of these parameters are added to [[:Category:((CardTable2)) transclusions with video game parameters]]. In addition, any pages using a video game image are added to [[:Category:((CardTable2)) transclusions using video game images]].
 
* Names: <code>gx1_name</code>, <code>gx02_name</code>, <code>gx03_name</code>, <code>gx04_name</code>, <code>gx06_name</code>, <code>ntr_name</code>, <code>tf04_name</code>, <code>tf05_name</code>, <code>tf06_name</code>, <code>wc6_name</code>, <code>wc07_name</code>, <code>wc08_name</code>, <code>wc09_name</code>, <code>wc10_name</code>, <code>wc11_name</code>, <code>ygo_name</code>
 
* Names: <code>gx1_name</code>, <code>gx02_name</code>, <code>gx03_name</code>, <code>gx04_name</code>, <code>gx06_name</code>, <code>ntr_name</code>, <code>tf04_name</code>, <code>tf05_name</code>, <code>tf06_name</code>, <code>wc6_name</code>, <code>wc07_name</code>, <code>wc08_name</code>, <code>wc09_name</code>, <code>wc10_name</code>, <code>wc11_name</code>, <code>ygo_name</code>
 
* Lores: <code>dar_lore</code>, <code>gx1_lore</code>, <code>gx02_lore</code>, <code>gx03_lore</code>, <code>gx04_lore</code>, <code>gx06_lore</code>, <code>ntr_lore</code>, <code>tf04_lore</code>, <code>tf05_lore</code>, <code>tf06_lore</code>, <code>wc6_lore</code>, <code>wc07_lore</code>, <code>wc08_lore</code>, <code>wc09_lore</code>, <code>wc10_lore</code>, <code>wc11_lore</code>, <code>ygo_lore</code>
 
* Lores: <code>dar_lore</code>, <code>gx1_lore</code>, <code>gx02_lore</code>, <code>gx03_lore</code>, <code>gx04_lore</code>, <code>gx06_lore</code>, <code>ntr_lore</code>, <code>tf04_lore</code>, <code>tf05_lore</code>, <code>tf06_lore</code>, <code>wc6_lore</code>, <code>wc07_lore</code>, <code>wc08_lore</code>, <code>wc09_lore</code>, <code>wc10_lore</code>, <code>wc11_lore</code>, <code>ygo_lore</code>

Revision as of 04:09, 4 December 2019

{{CardTable2}} is used for pages for cards from the Yu-Gi-Oh! Official Card Game (OCG) and Yu-Gi-Oh! Trading Card Game (TCG).

Historically, the template has been used for cards from all Yu-Gi-Oh! games and still contains support for a number of video games, which need to be given their own dedicated template.

Usage

{{CardTable2
| cardclass                = 
| name                     = 
| fr_name                  = 
| de_name                  = 
| it_name                  = 
| es_name                  = 
| ja_name                  = 
| romaji_name              = 
| trans_name               = 
| zh_name                  = 
| zh_pinyin_name           = 
| zh_trans_name            = 
| ko_name                  = 
| ko_rr_name               = 
| ko_trans_name            = 
| alt_name                 = 
| alt_name2                = 
| alt_name3                = 
| ja_alt_name              = 
| ja_alt_romaji            = 
| ja_alt_trans             = 
| image                    = 
| width                    = 
| image2                   = 
| card_type                = 
| property                 = 
| attribute                = 
| character                = 
| type                     = 
| type2                    = 
| type3                    = 
| type4                    = 
| level                    = 
| rank                     = 
| link_arrows              = 
| pendulum_scale           = 
| atk                      = 
| def                      = 
| password                 = 
| limitation_text          = 
| ritualcard               = 
| ritualmonster            = 
| summon                   = 
| effect_types             = 
| pendulum_effect_types    = 
| ocg_status               = 
| tcg_status               = 
| tcg_speed_duel_status    = 
| source_card              = 
| skill_activation         = 
| fr_skill_activation      = 
| de_skill_activation      = 
| it_skill_activation      = 
| pt_skill_activation      = 
| es_skill_activation      = 
| pendulum_effect          = 
| fr_pendulum_effect       = 
| de_pendulum_effect       = 
| it_pendulum_effect       = 
| pt_pendulum_effect       = 
| es_pendulum_effect       = 
| ja_pendulum_effect       = 
| trans_pendulum_effect    = 
| zh_pendulum_effect       = 
| ko_pendulum_effect       = 
| lore                     = 
| fr_lore                  = 
| de_lore                  = 
| it_lore                  = 
| pt_lore                  = 
| es_lore                  = 
| ja_lore                  = 
| trans_lore               = 
| zh_lore                  = 
| ko_lore                  = 
| use                      = 
| database_id              = 
| en_sets                  = 
| na_sets                  = 
| eu_sets                  = 
| au_sets                  = 
| fr_sets                  = 
| fc_sets                  = 
| de_sets                  = 
| it_sets                  = 
| pt_sets                  = 
| sp_sets                  = 
| jp_sets                  = 
| ja_sets                  = 
| ae_sets                  = 
| tc_sets                  = 
| kr_sets                  = 
| supports                 = 
| anti-supports            = 
| archseries               = 
| supports_archsetypes     = 
| anti-supports_archetypes = 
| related_to_archetypes    = 
| counter                  = 
| action                   = 
| stat_change              = 
| m/s/t                    = 
| summoning                = 
| attack                   = 
| banished                 = 
| life_points              = 
| fm_for                   = 
| sm_for                   = 
| misc                     = 
| fusion_material          = 
| synchro_material         = 
| material                 = 
}}

Parameters

Display

Properties

Statuses

Using any of these will add the page to Category:Cards with a manual status. If one of these is used without a value, the page will be added to Category:((CardTable2)) transclusions with an unnecessary status parameter.

  • ocg_status: The card's status in the OCG. Defaults to Unlimited; this parameter should only be added if the card is not yet released or legal, or if it has a status other than Unlimited.
  • tcg_status: The card's status in the TCG Advanced Format (if the card is Forbidden, its Traditional Format status will be automatically assumed to be Limited.) Defaults to Unlimited; this parameter should only be added if the card is not yet released or legal, or if it has a status other than Unlimited.
  • tcg_speed_duel_status: The card's status in TCG Speed Duels. This parameter should be used for all Speed Duel-legal cards.

Search categories

Each of these should be a bulleted list of page names:

Localization

name, lore, pendulum_effect, skill_activation can be prefixed with a language code to specify its text in other languages. e.g. ja_lore for the Japanese lore. If lore is set to none, none of the other lore parameters should be used. Applicable prefixes are as follows ("romanized" prefixes only work for the "name" parameter):

  • fr_: French
  • de_: German
  • it_: Italian
  • pt_: Portuguese
  • es_: Spanish
  • ja_: Japanese
  • romaji_: Japanese romanized, using revised Hepburn
  • trans_: Japanese translated into English. These should only be used if they differ non-trivially from the English name or lore. Using trans_lore adds the page to Category:Card table transclusions using trans_lore.
  • ko_: Korean
  • ko_rr_: Korean romanized, using Revised Romanization.
  • zh_: Chinese
  • zh_pinyin_: Chinese romanized, using Pinyin.

Other localization parameters (using any of these will add the page to Category:Card pages with an alt name).

  • ja_alt_name: A second Japanese name for the card.
  • ja_alt_romaji: Romanization of the second Japanese name.
  • ja_alt_trans: English translation of the second Japanese name.

Sets

The values for all sets are to be entered using the following syntax and ordered by release date, from oldest to newest.

Card number 1; Set page name 1; Rarity 1
Card number 2; Set page name 2; Rarity 2

For example:

| na_sets = 
LOB-001; Legend of Blue Eyes White Dragon; Ultra Rare
DDS-001; Yu-Gi-Oh! Dark Duel Stories promotional cards; Prismatic Secret Rare
SDK-001; Starter Deck: Kaiba; Ultra Rare

If a card was printed in multiple rarities, all in the same set and with the same card number, the rarities should be included on the same line, separated with commas. For example:

| ja_sets = 
CHIM-JP010; Chaos Impact; Super Rare, Secret Rare, 20th Secret Rare

If a card's rarity is unknown, or if a card has no card number, the value should be left blank, but the semicolon should be included. Similarly, if the card number is unknown, the known portion of the card number may be included, with unknown portions represented with question marks. For example:

| na_sets = 
; Legend of Blue Eyes White Dragon; Common
SDK-001; Starter Deck: Kaiba; 
CHIM-EN0??; Chaos Impact; 
????-EN???; Eternity Code; 

There are different parameters for different languages/regions:

  • en_sets: English
  • na_sets: North American English
  • eu_sets: European English
  • au_sets: Australian English
  • fr_sets: French
  • fc_sets: French-Canadian
  • de_sets: German
  • it_sets: Italian
  • pt_sets: Portuguese
  • sp_sets: Spanish
  • jp_sets: Japanese
  • ja_sets: Japanese-Asian
  • ae_sets: Asian-English
  • tc_sets: Chinese
  • kr_sets: Korean

For convenience, ko_sets is supported as an alternative to kr_sets, and es_sets as an alternative to sp_sets, but these are considered errors, and the page will be added to Category:Card table transclusions using ko_sets or Category:Card table transclusions using es_sets, respectively.

Color schemes

The logic for determining the color scheme is as follows. If a condition is met, that color scheme is used. If not, the next condition is checked.

  1. If the cardclass parameter is used, it will dictate the color scheme. Any value from the "Name" column in the table below can be used for this parameter. Cards using this parameter are tracked in Category:CardTable2 parameter tracking (cardclass).
  2. If the card is a Monster Card with "Token" in its name, the token color scheme will be used.
  3. If the card_type parameter is used, the color scheme associated with the card type will be used. (See the "Use" column in the table below to find the card type.)
  4. If the value of type2 is any of "Normal", "Effect", "Fusion", "Link", "Ritual", "Synchro", "Token", or "Xyz", the color scheme associated with the monster type will be used. (See the "Use" column.)
  5. If type3 is used, the color scheme associated with its value is used. (See the "Use" column.)
  6. If the template identifies the card as a Monster Card and the effect_types parameter is used or the card has an Ability in one of its type parameters, the effect color scheme will be used. Cards will be added to the Category:Colors assumed without using the Type string category, in this scenario.
  7. If the template identifies the card as a Monster Card, the normal color scheme will be used. Cards will be added to the Category:Colors assumed without using the Type string category, in this scenario.
  8. The blank color scheme is used by default.

The pendulum color scheme is used on top of one of the other color scheme, if any of the pendulum_scale, pendulum_effect or pendulum_effect_types parameters or any of their localized equivalents are used.

Name Header style Body style Use Example page
normal
Dark yellow
Yellow, with italicized lore Normal Monster "Blue-Eyes White Dragon"
effect
Orange
Orange Effect Monster "Dark Magician Girl"
fusion
Violet
Light purple Fusion Monster "Gaia the Dragon Champion"
ritual
Blue
Light blue Ritual Monster "Black Luster Soldier"
synchro
Light grey
White Synchro Monster "Stardust Dragon"
xyz
Black, white text
Light grey Xyz Monster "Number 39: Utopia"
link Link Monster "Link Spider"
spell
Green, white text
Green Spell Card "Monster Reborn"
Speed Spell Card (deprecated) "Speed Spell - Accelerator Draw"
Command Card "Command Duel-Use Card"
trap
Purple, white text
Purple Trap Card "Trap Hole"
token
Grey
Grey Monster Token "Sheep Token"
Counter "Spell Counter (card)"
skill
Blue, white text, with gradient, border and text shadow effects
Light blue Skill Card "It's a Toon World!"
faq Not currently developed Not currently developed FAQ card
strategy
Blue, white text
Grey Strategy Card "Ace in the hole"
Card Checklist "Duelist Pack -Yusei- Checklist"
tip
Purple, white text
Pale yellow Tip Card "Be polite!"
red
Red
Red Certain cards, not adhering to a standard color scheme "Slifer the Sky Dragon (original)"
yellow
Yellow (same style as "normal")
Yellow (same style as "normal", but without italics) Ticket Card "Glory of the King's Hand"
Certain cards, not adhering to a standard color scheme "The Winged Dragon of Ra (original)"
blue
Blue (same style as "ritual")
Blue (same style as "ritual") Certain cards, not adhering to a standard color scheme "Obelisk the Tormentor (original)"
pendulum Header style of the other color scheme Adds a green gradient on top of another color scheme. This scheme is not to be used by itself. Pendulum Monster "Odd-Eyes Pendulum Dragon"
blank
Light grey
Light grey Default. Used when the card has not been identified as belonging to any other color scheme. Ideally, no cards should use this. If there are any, they will be listed at Category:Card pages with no color class.

Default image

If the image parameter is unused, empty or contains a non-existent image, the following logic determines which image is shown:

  1. If the value of card_type is "Checklist", "FAQ", "Strategy" or "Tip", File:StrategyCard-EN-Back.png is used.
  2. If the card uses a sets parameter for any of the TCG regions, File:Back-EN.png is used.
  3. If the card uses a Japanese or Chinese sets parameter, File:Back-JP.png is used.
  4. If the card uses the kr_sets parameter, File:Back-KR.png is used.
  5. Otherwise, File:Back-EN.png is used.

Tracking categories

{{CardTable2}} tracks a number of possible error states and edge cases with categories; many are listed above, and the following are also used.

Deprecated parameters

Parameters still in use, but should be removed in the near future.

Video game parameters

A number of parameters for video game data remain; these will be gradually removed as the games get dedicated card templates and card pages are split. All pages using any of these parameters are added to Category:((CardTable2)) transclusions with video game parameters. In addition, any pages using a video game image are added to Category:((CardTable2)) transclusions using video game images.

  • Names: gx1_name, gx02_name, gx03_name, gx04_name, gx06_name, ntr_name, tf04_name, tf05_name, tf06_name, wc6_name, wc07_name, wc08_name, wc09_name, wc10_name, wc11_name, ygo_name
  • Lores: dar_lore, gx1_lore, gx02_lore, gx03_lore, gx04_lore, gx06_lore, ntr_lore, tf04_lore, tf05_lore, tf06_lore, wc6_lore, wc07_lore, wc08_lore, wc09_lore, wc10_lore, wc11_lore, ygo_lore
  • Numbers: gx1_number, tfk_number
  • Costs: gx1_dp, gx02_dp, gx03_dp, gx04_dp, ntr_dp, wc6_dp, wc07_dp, wc08_dp
  • Sets: gx1_sets, gx02_sets, gx03_sets, gx04_sets, gx06_sets, ntr_sets, tf04_sets, tf05_sets, tf06_sets, wc6_sets, wc07_sets, wc08_sets, wc09_sets, wc10_sets, wc11_sets, ygo_sets
  • Statuses: gx1_status, gx02_status, gx03_status, gx04_status, gx06_status, ntr_status, wc6_status, wc07_status, wc08_status, ygo_status