Difference between revisions of "Template:CardTable2/doc"

From Yugipedia
Jump to: navigation, search
(Color schemes: fix yellow row)
m
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{Documentation subpage}}{{anchor|template-documentation}}
 
<templatestyles src="Template:CardTable2/doc/styles.css" /><!--
 
<templatestyles src="Template:CardTable2/doc/styles.css" /><!--
  
Line 19: Line 20:
 
| romaji_name              =  
 
| romaji_name              =  
 
| trans_name              =  
 
| trans_name              =  
 +
| base_romaji_name        =
 +
| base_trans_name          =
 
| zh_name                  =  
 
| zh_name                  =  
 
| zh_pinyin_name          =  
 
| zh_pinyin_name          =  
Line 32: Line 35:
 
| ja_alt_trans            =  
 
| ja_alt_trans            =  
 
| image                    =  
 
| image                    =  
| width                    =
 
 
| image2                  =  
 
| image2                  =  
 
| card_type                =  
 
| card_type                =  
Line 38: Line 40:
 
| attribute                =  
 
| attribute                =  
 
| character                =  
 
| character                =  
| type                    =
+
| types                   =  
| type2                    =
 
| type3                    =
 
| type4                   =  
 
 
| level                    =  
 
| level                    =  
 
| rank                    =  
 
| rank                    =  
 
| link_arrows              =  
 
| link_arrows              =  
 
| pendulum_scale          =  
 
| pendulum_scale          =  
 +
| maximum_atk              =
 
| atk                      =  
 
| atk                      =  
 
| def                      =  
 
| def                      =  
Line 52: Line 52:
 
| ritualcard              =  
 
| ritualcard              =  
 
| ritualmonster            =  
 
| ritualmonster            =  
| summon                  =  
+
| summoned_by              =  
 
| effect_types            =  
 
| effect_types            =  
 
| pendulum_effect_types    =  
 
| pendulum_effect_types    =  
Line 101: Line 101:
 
| ae_sets                  =  
 
| ae_sets                  =  
 
| tc_sets                  =  
 
| tc_sets                  =  
 +
| sc_sets                  =
 
| kr_sets                  =  
 
| kr_sets                  =  
 
| supports                =  
 
| supports                =  
 
| anti-supports            =  
 
| anti-supports            =  
 
| archseries              =  
 
| archseries              =  
| supports_archsetypes    =  
+
| supports_archetypes      =  
 
| anti-supports_archetypes =  
 
| anti-supports_archetypes =  
 
| related_to_archetypes    =  
 
| related_to_archetypes    =  
Line 130: Line 131:
 
* <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 pages using <code>width</code> are added to [[:Category:CardTable2 parameter tracking (width)]].
 
  
 
===Properties===
 
===Properties===
Line 139: Line 139:
 
* <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>types</code>: The card's [[Type]]s, as they are printed on the card. Each item should be separated by a forward slash. e.g. <code>types = Warrior / Synchro / Effect</code>
* <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>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>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>maximum_atk</code>: The card's [[MAXIMUM ATK]].
 
* <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]].
Line 154: Line 151:
 
* <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>summoned_by</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]]).
Line 161: Line 158:
 
* <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]].
* <code>database_id</code>: The ID number of the card in Konami's database. If the card is not included in Konami's database, this should be set to <code>none</code> (this will add the page to [[:Category:Cards without a Yugioh-Card database ID]]). If an invalid ID is given (if it is non-numeric), the page is added to [[:Category:Pages with an invalid Yugioh-Card database ID]]. If no ID is given, and <code>none</code> is not used, the page is added to [[:Category:Card pages needing a Yugioh-Card database ID]].
+
* <code>database_id</code>: The ID number of the card in Konami's database. If the card is not included in Konami's database, this should be set to <code>none</code> (this will add the page to [[:Category:Cards without a Yugioh-Card database ID]]). If an invalid ID is given (if it is non-numeric), the page is added to [[:Category:Pages with an invalid Yugioh-Card database ID]]. If no ID is given, and <code>none</code> is not used, the page is added to [[:Category:Card pages needing a Yugioh-Card database ID]]. If there is no redirect from the given ID, the page is added to [[:Category:Cards needing a database ID redirect]].
  
 
====Statuses====
 
====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]].
 
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 the card's status in the current ''OCG'' [[Forbidden & Limited List]]; this parameter should only be added if the card is [[not yet released]] or [[Not yet legal|legal]].
* <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]]. Defaults to the card's status in the current ''TCG'' Forbidden & Limited List; this parameter should only be added if the card is not yet released or legal.
* <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 Duel]]. This parameter should be used for all Speed Duel-legal cards.
  
 
===Search categories===
 
===Search categories===
Line 208: Line 205:
 
* <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.
 +
 +
Links should generally only be added to the English <code>lore</code>, <code>pendulum_effect</code>, and <code>skill_activation</code> parameters (name parameters should never contain links, in any language). Each term should only be linked once, when it first appears in the lore. Where the text is clear, brevity is preferred over avoiding redirects; e.g. <code><nowiki>[[monster]]</nowiki></code> instead of <code><nowiki>[[Monster Card|monster]]</nowiki></code>, <code><nowiki>[[sent]]</nowiki></code> instead of <code><nowiki>[[Send|sent]]</nowiki></code>, <code><nowiki>[[GY]]</nowiki></code> instead of <code><nowiki>[[Graveyard|GY]]</nowiki></code>, <code><nowiki>[[Life Points]]</nowiki></code> instead of <code><nowiki>[[LP|Life Points]]</nowiki></code>, etc (see also [[wikipedia:WP:NOPIPE]]). However, note cases where a full link is clearer: <code><nowiki>[[Add a card|add]]</nowiki></code> instead of <code><nowiki>[[add]]</nowiki></code>, <code><nowiki>[[Main Deck|Deck]]</nowiki></code> instead of <code><nowiki>[[Deck]]</nowiki></code>, etc. Piped links to redirects should always be avoided: <code><nowiki>[[field]]</nowiki></code> instead of <code><nowiki>[[Playing Field|field]]</nowiki></code>, etc. Note, though, that pages should not be edited only to change link targets to or from redirects; some other change must be made in the same edit (e.g. updating the search categories or adding a name).
  
 
===Sets===
 
===Sets===
Line 250: Line 249:
 
* <code>ja_sets</code>: [[Japanese-Asian]]
 
* <code>ja_sets</code>: [[Japanese-Asian]]
 
* <code>ae_sets</code>: [[Asian-English]]
 
* <code>ae_sets</code>: [[Asian-English]]
* <code>tc_sets</code>: Chinese
+
* <code>tc_sets</code>: Traditional Chinese
 +
* <code>sc_sets</code>: Simplified Chinese
 
* <code>kr_sets</code>: Korean
 
* <code>kr_sets</code>: Korean
  
Line 259: Line 259:
  
 
# 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 <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" at the end of 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 "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 the second item in the <code>types</code> parameter 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 a third item is used in the <code>types</code> parameter, 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 its <code>types</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, the <code>normal</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, the <code>normal</code> color scheme will be used. Cards will be added to the [[:Category:Colors assumed without using the Type string]] category, in this scenario.
 
# The <code>blank</code> color scheme is used by default.
 
# The <code>blank</code> color scheme is used by default.
  
The <code>pendulum</code> color scheme is used on top of one of the other color scheme, if any of the <code>pendulum_scale</code>, <code>pendulum_effect</code> or <code>pendulum_effect_types</code> parameters or any of their localized equivalents are used.  
+
The <code>pendulum</code> color scheme is used on top of one of the other color schemes, if the <code>pendulum_scale</code>, <code>pendulum_effect</code> or <code>pendulum_effect_types</code> parameters or any of their localized equivalents are used.  
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 307: Line 307:
 
|- class="synchro-card"
 
|- class="synchro-card"
 
! scope="row" | synchro
 
! scope="row" | synchro
| class="heading | Light grey
+
| class="heading | Light gray
 
| White
 
| White
 
| [[Synchro Monster]]
 
| [[Synchro Monster]]
Line 315: Line 315:
 
! scope="row" | xyz
 
! scope="row" | xyz
 
| class="heading" | Black, white text
 
| class="heading" | Black, white text
| Light grey
+
| Light gray
 
| [[Xyz Monster]]
 
| [[Xyz Monster]]
 
| "[[Number 39: Utopia]]"
 
| "[[Number 39: Utopia]]"
Line 321: Line 321:
 
|- class="link-card"
 
|- class="link-card"
 
! scope="row" | link
 
! scope="row" | link
| class="heading" | Blue, white text, with a honeycomb-pattern in the header
+
| class="heading" | Blue, white text, with a honeycomb-pattern
 
| Light blue
 
| Light blue
 
| [[Link Monster]]
 
| [[Link Monster]]
Line 348: Line 348:
 
|- class="token-card"
 
|- class="token-card"
 
! scope="row" rowspan="2" | token
 
! scope="row" rowspan="2" | token
| class="heading" rowspan="2" | Grey
+
| class="heading" rowspan="2" | Gray
| class="token-card" rowspan="2" | Grey
+
| class="token-card" rowspan="2" | Gray
 
| [[Monster Token]]
 
| [[Monster Token]]
 
| "[[Sheep Token]]"
 
| "[[Sheep Token]]"
Line 373: Line 373:
 
! scope="row" rowspan="2" | strategy
 
! scope="row" rowspan="2" | strategy
 
| class="heading" rowspan="2" | Blue, white text
 
| class="heading" rowspan="2" | Blue, white text
| class="strategy-card" rowspan="2" | Grey
+
| class="strategy-card" rowspan="2" | Gray
 
| [[Strategy Card]]
 
| [[Strategy Card]]
 
| "[[Ace in the hole]]"
 
| "[[Ace in the hole]]"
Line 395: Line 395:
  
 
|- class="yellow-card"
 
|- class="yellow-card"
! scope="row" rowspan="2" | Yellow
+
! scope="row" rowspan="2" | yellow
 
| class="heading" rowspan="2" | Dark yellow (same style as "normal")
 
| class="heading" rowspan="2" | Dark yellow (same style as "normal")
 
| class="yellow-card" rowspan="2" | Yellow (same style as "normal", but without italics)
 
| class="yellow-card" rowspan="2" | Yellow (same style as "normal", but without italics)
Line 420: Line 420:
 
|- class="blank-card"
 
|- class="blank-card"
 
! scope="row" | blank
 
! scope="row" | blank
| class="heading" | Light grey
+
| class="heading" | Light gray
| Light grey
+
| Light gray
 
| 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 440: Line 440:
 
* [[:Category:Cards with Pendulum parameters without a Pendulum card type]]: for cards which use any of the Pendulum-related parameters (e.g. <code>pendulum_scale</code> or <code>de_pendulum_effect</code>) without having <code>Pendulum</code> as any of the <code>type</code> parameters.
 
* [[:Category:Cards with Pendulum parameters without a Pendulum card type]]: for cards which use any of the Pendulum-related parameters (e.g. <code>pendulum_scale</code> or <code>de_pendulum_effect</code>) without having <code>Pendulum</code> as any of the <code>type</code> parameters.
 
* [[:Category:Cards that need an image]]: for card pages which have no listed image.
 
* [[:Category:Cards that need an image]]: for card pages which have no listed image.
* [[:Category:Cards that need a Card Gallery]]: for card pages which have no corresponding [[:Category:Card Gallery|gallery page]].
+
* [[:Category:Cards that need a gallery]]: for card pages which have no corresponding [[:Category:Card Gallery|gallery page]].
 
* Missing names, lores, and Skill Activations are tracked per-language:
 
* Missing names, lores, and Skill Activations are tracked per-language:
 
** English: [[:Category:Skill Cards with an English release needing an English Skill activation|Skill activations]]
 
** English: [[:Category:Skill Cards with an English release needing an English Skill activation|Skill activations]]
Line 450: Line 450:
 
** Portuguese: [[:Category:Cards with a Portuguese release needing a Portuguese name|names]] ([[:Category:Non-game cards with a Portuguese release needing a Portuguese name|non-game cards]]), [[:Category:Cards with a Portuguese release needing a Portuguese lore|lores]] ([[:Category:Non-game cards with a Portuguese release needing a Portuguese lore|non-game cards]]), [[:Category:Skill Cards with a Portuguese release needing a Portuguese Skill activation|Skill activations]]
 
** Portuguese: [[:Category:Cards with a Portuguese release needing a Portuguese name|names]] ([[:Category:Non-game cards with a Portuguese release needing a Portuguese name|non-game cards]]), [[:Category:Cards with a Portuguese release needing a Portuguese lore|lores]] ([[:Category:Non-game cards with a Portuguese release needing a Portuguese lore|non-game cards]]), [[:Category:Skill Cards with a Portuguese release needing a Portuguese Skill activation|Skill activations]]
 
** Spanish: [[:Category:Cards with a Spanish release needing a Spanish name|names]] ([[:Category:Non-game cards with a Spanish release needing a Spanish name|non-game cards]]), [[:Category:Cards with a Spanish release needing a Spanish lore|lores]] ([[:Category:Non-game cards with a Spanish release needing a Spanish lore|non-game cards]]), [[:Category:Skill Cards with a Spanish release needing a Spanish Skill activation|Skill activations]]
 
** Spanish: [[:Category:Cards with a Spanish release needing a Spanish name|names]] ([[:Category:Non-game cards with a Spanish release needing a Spanish name|non-game cards]]), [[:Category:Cards with a Spanish release needing a Spanish lore|lores]] ([[:Category:Non-game cards with a Spanish release needing a Spanish lore|non-game cards]]), [[:Category:Skill Cards with a Spanish release needing a Spanish Skill activation|Skill activations]]
** Chinese: [[:Category:Cards with a Chinese release needing a Chinese name|names]] ([[:Category:Non-game cards with a Chinese release needing a Chinese name|non-game cards]]), [[:Category:Cards with a Chinese release needing a Chinese lore|lores]] ([[:Category:Non-game cards with a Chinese release needing a Chinese lore|non-game cards]])
+
** Simplified Chinese: [[:Category:Cards with a Simplified Chinese release needing a Simplified Chinese name|names]] ([[:Category:Non-game cards with a Simplified Chinese release needing a Simplified Chinese name|non-game cards]]), [[:Category:Cards with a Simplified Chinese release needing a Simplified Chinese lore|lores]] ([[:Category:Non-game cards with a Simplified Chinese release needing a Simplified Chinese lore|non-game cards]])
* Cards without any sets listed for a given region are tracked per-region: [[:Category:OCG cards without a listed Japanese release|Japanese]], [[:Category:OCG cards without a listed Korean release|Korean]], [[:Category:TCG cards without a listed English release|English]], [[:Category:TCG cards without a listed French release|French]], [[:Category:TCG cards without a listed German release|German]], [[:Category:TCG cards without a listed Italian release|Italian]], [[:Category:TCG cards without a listed Portuguese release|Portuguese]], [[:Category:TCG cards without a listed Spanish release|Spanish]]
+
* Cards without any sets listed for a given region are tracked per-region: [[:Category:OCG cards without a listed Japanese release|Japanese]], [[:Category:OCG cards without a listed Korean release|Korean]], [[:Category:OCG cards without a listed Simplified Chinese release|Simplified Chinese]], [[:Category:OCG cards without a listed Traditional Chinese release|Traditional Chinese]], [[:Category:TCG cards without a listed English release|English]], [[:Category:TCG cards without a listed French release|French]], [[:Category:TCG cards without a listed German release|German]], [[:Category:TCG cards without a listed Italian release|Italian]], [[:Category:TCG cards without a listed Portuguese release|Portuguese]], [[:Category:TCG cards without a listed Spanish release|Spanish]]
  
 
==Deprecated parameters==
 
==Deprecated parameters==
 
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>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>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]]. In addition, any pages using a video game image are added to [[:Category:((CardTable2)) transclusions using video game images]].
+
{{See also|User:Dinoguy1000/CT2 vg}}
* 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>
+
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.
* 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>
+
 
* Numbers: <code>gx1_number</code>, <code>tfk_number</code>
+
Any page using video-game-specific parameters is added to [[:Category:((CardTable2)) transclusions with video game parameters]] and pages using a video game image are added to [[:Category:((CardTable2)) transclusions using video game images]]. Categories are also added for each video game the card has parameters or an image for:
* Costs: <code>gx1_dp</code>, <code>gx02_dp</code>, <code>gx03_dp</code>, <code>gx04_dp</code>, <code>ntr_dp</code>, <code>wc6_dp</code>, <code>wc07_dp</code>, <code>wc08_dp</code>
 
* Sets: <code>gx1_sets</code>, <code>gx02_sets</code>, <code>gx03_sets</code>, <code>gx04_sets</code>, <code>gx06_sets</code>, <code>ntr_sets</code>, <code>tf04_sets</code>, <code>tf05_sets</code>, <code>tf06_sets</code>, <code>wc6_sets</code>, <code>wc07_sets</code>, <code>wc08_sets</code>, <code>wc09_sets</code>, <code>wc10_sets</code>, <code>wc11_sets</code>, <code>ygo_sets</code>
 
* Statuses: <code>gx1_status</code>, <code>gx02_status</code>, <code>gx03_status</code>, <code>gx04_status</code>, <code>gx06_status</code>, <code>ntr_status</code>, <code>wc6_status</code>, <code>wc07_status</code>, <code>wc08_status</code>, <code>ygo_status</code>
 
  
 +
; ''[[:Category:((CardTable2)) transclusions with Duel Arena parameters|Duel Arena]]''
 +
: <code>dar_lore</code>, ''Duel Arena'' images.
 +
; ''[[:Category:((CardTable2)) transclusions with Nightmare Troubadour parameters|Nightmare Troubadour]]''
 +
: <code>ntr_name</code>.
 +
; ''[[:Category:((CardTable2)) transclusions with Online parameters|Online]]''
 +
: <code>ygo_lore</code>, <code>ygo_sets</code>.
 +
; ''[[:Category:((CardTable2)) transclusions with Spirit Caller parameters|Spirit Caller]]''
 +
: <code>gx03_name</code>, <code>gx03_sets</code>, <code>gx03_status</code>.
 
{{Card table templates}}
 
{{Card table templates}}
  
 
<includeonly>[[Category:Card table templates]]</includeonly>
 
<includeonly>[[Category:Card table templates]]</includeonly>

Latest revision as of 15:06, 23 May 2024

{{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[edit]

{{CardTable2
| cardclass                = 
| name                     = 
| fr_name                  = 
| de_name                  = 
| it_name                  = 
| es_name                  = 
| ja_name                  = 
| romaji_name              = 
| trans_name               = 
| base_romaji_name         = 
| base_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                    = 
| image2                   = 
| card_type                = 
| property                 = 
| attribute                = 
| character                = 
| types                    = 
| level                    = 
| rank                     = 
| link_arrows              = 
| pendulum_scale           = 
| maximum_atk              = 
| atk                      = 
| def                      = 
| password                 = 
| limitation_text          = 
| ritualcard               = 
| ritualmonster            = 
| summoned_by              = 
| 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                  = 
| sc_sets                  = 
| kr_sets                  = 
| supports                 = 
| anti-supports            = 
| archseries               = 
| supports_archetypes      = 
| 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[edit]

Display[edit]

Properties[edit]

Statuses[edit]

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 the card's status in the current OCG Forbidden & Limited List; this parameter should only be added if the card is not yet released or legal.
  • tcg_status: The card's status in the TCG Advanced Format. Defaults to the card's status in the current TCG Forbidden & Limited List; this parameter should only be added if the card is not yet released or legal.
  • tcg_speed_duel_status: The card's status in TCG Speed Duel. This parameter should be used for all Speed Duel-legal cards.

Search categories[edit]

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

Localization[edit]

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.

Links should generally only be added to the English lore, pendulum_effect, and skill_activation parameters (name parameters should never contain links, in any language). Each term should only be linked once, when it first appears in the lore. Where the text is clear, brevity is preferred over avoiding redirects; e.g. [[monster]] instead of [[Monster Card|monster]], [[sent]] instead of [[Send|sent]], [[GY]] instead of [[Graveyard|GY]], [[Life Points]] instead of [[LP|Life Points]], etc (see also wikipedia:WP:NOPIPE). However, note cases where a full link is clearer: [[Add a card|add]] instead of [[add]], [[Main Deck|Deck]] instead of [[Deck]], etc. Piped links to redirects should always be avoided: [[field]] instead of [[Playing Field|field]], etc. Note, though, that pages should not be edited only to change link targets to or from redirects; some other change must be made in the same edit (e.g. updating the search categories or adding a name).

Sets[edit]

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: Traditional Chinese
  • sc_sets: Simplified 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[edit]

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" at the end of 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 second item in the types parameter 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 a third item is used in the types parameter, 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 its types 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 schemes, if 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 gray White Synchro Monster "Stardust Dragon"
xyz Black, white text Light gray Xyz Monster "Number 39: Utopia"
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 Gray Gray 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 Gray 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 Dark 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 None 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 gray Light gray 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[edit]

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[edit]

{{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[edit]

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

Video game parameters[edit]

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.

Any page using video-game-specific parameters is added to Category:((CardTable2)) transclusions with video game parameters and pages using a video game image are added to Category:((CardTable2)) transclusions using video game images. Categories are also added for each video game the card has parameters or an image for:

Duel Arena
dar_lore, Duel Arena images.
Nightmare Troubadour
ntr_name.
Online
ygo_lore, ygo_sets.
Spirit Caller
gx03_name, gx03_sets, gx03_status.