Template:Infobox Card/doc: Difference between revisions

From Descent-Community Wiki 1.2
Jump to navigation Jump to search
(Allow text to be optional)
(Document template usage for overlord relics)
Line 118: Line 118:
</pre>
</pre>


;Usage for relics:
;Usage for Hero relics:
<pre>
<pre>
{{Infobox card
{{Infobox card
|archetype        = <optional, set for Overlord, leave empty for player>
  |cardtype        = Item
  |cardtype        = Item
  |dice            = <optional, if applicable>
  |dice            = <optional, if applicable>
Line 134: Line 133:
  |trait2          = <optional, if applicable>
  |trait2          = <optional, if applicable>
  |worn            = <optional, if applicable>
  |worn            = <optional, if applicable>
}}
</pre>
;Usage for Overlord relics:
<pre>
{{Infobox card
|archetype        = <required> Overlord
|cardtype        = Overlord Relic
|expansion        = <required>
|image            = <optional, only used when image to show has a different name than <nowiki>{{{name|}}}.png</nowiki>
|name            = <required>
|questreward      = <required, link to the quest where the relic can be gained>
|reliccounterpart = <required>
|text            = <optional, but highly recommended>
}}
}}
</pre>
</pre>

Revision as of 09:20, 17 May 2016

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
 |name          = <required>
 |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
 |name           = <required>
 |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
 |name       = <required>
 |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
 |name       = <required>
 |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
 |name       = <required>
 |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
 |name             = <required>
 |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
 |name             = <required>
 |questreward      = <required, link to the quest where the relic can be gained>
 |reliccounterpart = <required>
 |text             = <optional, but highly recommended>
}}