Template:Infobox Card/doc

From Descent-Community Wiki 1.2
Revision as of 15:12, 31 May 2016 by Psymia (talk | contribs) (Document the now optional name argument)
Jump to navigation Jump to search
Description
This template is display an infobox about a game card.
Currently the template supports the following cards:
  • Skills
  • Items (Starting Gear, Shop, Relic)
  • Overlord Cards
  • Plot Cards
Not supported yet are:
  • Monster Cards
  • Lieutenant Cards
  • Search Cards
  • Travel Cards
  • ?
Syntax, all possible arguments in alphabetical order
{{Infobox card
 |act =
 |archetype =
 |buy =
 |cardtype =
 |dice =
 |expansion =
 |heroclass =
 |image =
 |name =
 |overlordclass =
 |playcost =
 |plotcardnumber =
 |plotdeck =
 |questreward =
 |range =
 |reliccounterpart =
 |text =
 |threatcost =
 |trait =
 |trait2 =
 |worn =
 |xpcost =
}}
Usage for an overlord card
{{Infobox card
 |archetype     = Overlord
 |cardtype      = Overlord Card
 |expansion     = <required>
 |image         = <optional, only used when image to show has a different name than {{{name|}}}.png or {{PAGENAME}}.png
 |name          = <optional, used to override the name if it is different than what {{PAGENAME}} returns>
 |overlordclass = <required>
 |text          = <optional, but highly recommended>
 |xpcost        = <required>
}}
Usage for a plot card
{{Infobox card
 |archetype      = Overlord
 |cardtype       = Plot Card
 |expansion      = <required>
 |image          = <optional, only used when image to show has a different name than {{{name|}}}.png or {{PAGENAME}}.png
 |name           = <optional, used to override the name if it is different than what {{PAGENAME}} returns>
 |playcost       = <required>
 |plotcardnumber = <required>
 |plotdeck       = <required>
 |text           = <optional, but highly recommended>
 |threatcost     = <required>
}}
Usage for a skill
{{Infobox card
 |archetype  = <required: Healer, Mage, Warrior, Scout>
 |cardtype   = Skill
 |expansion  = <required>
 |heroclass  = <required>
 |image      = <optional, only used when image to show has a different name than {{{name|}}}.png or {{PAGENAME}}.png
 |name       = <optional, used to override the name if it is different than what {{PAGENAME}} returns>
 |playcost   = <required>
 |text       = <optional, but highly recommended>
 |xpcost     = <required>
}}
Usage for starting gear
{{Infobox card
 |archetype  = <required, Healer, Mage, Warrior, Scout>
 |cardtype   = Item
 |dice       = <required>
 |expansion  = <required>
 |heroclass  = <required>
 |image      = <optional, only used when image to show has a different name than {{{name|}}}.png or {{PAGENAME}}.png
 |name       = <optional, used to override the name if it is different than what {{PAGENAME}} returns>
 |range      = <optional, if applicable>
 |text       = <optional, but highly recommended>
 |trait      = <optional, if applicable>
 |trait2     = <optional, if applicable>
 |worn       = <required>
}}
Usage for shop gear
{{Infobox card
 |act        = <required>
 |buy        = <required>
 |cardtype   = Item
 |dice       = <optional, if applicable>
 |expansion  = <required>
 |image      = <optional, only used when image to show has a different name than {{{name|}}}.png or {{PAGENAME}}.png
 |name       = <optional, used to override the name if it is different than what {{PAGENAME}} returns>
 |range      = <optional, if applicable>
 |text       = <optional, but highly recommended>
 |trait      = <optional, if applicable>
 |trait2     = <optional, if applicable>
 |worn       = <required>
}}
Usage for Hero relics
{{Infobox card
 |cardtype         = Item
 |dice             = <optional, if applicable>
 |expansion        = <required>
 |image            = <optional, only used when image to show has a different name than {{{name|}}}.png or {{PAGENAME}}.png
 |name             = <optional, used to override the name if it is different than what {{PAGENAME}} returns>
 |questreward      = <required, link to the quest where the relic can be gained>
 |range            = <optional, if applicable>
 |reliccounterpart = <required>
 |text             = <optional, but highly recommended>
 |trait            = <optional, if applicable>
 |trait2           = <optional, if applicable>
 |worn             = <optional, if applicable>
}}
Usage for Overlord relics
{{Infobox card
 |archetype        = <required> Overlord
 |cardtype         = Overlord Relic
 |expansion        = <required>
 |image            = <optional, only used when image to show has a different name than {{{name|}}}.png or {{PAGENAME}}.png
 |name             = <optional, used to override the name if it is different than what {{PAGENAME}} returns>
 |questreward      = <required, link to the quest where the relic can be gained>
 |reliccounterpart = <required>
 |text             = <optional, but highly recommended>
}}