Template:Card infobox/layout

From Hearthstone Wiki
Jump to navigation Jump to search
Card infobox/layout

This is the actual infobox used by {{Card infobox}}, as that template is actually responsible for finding data pages to acquire data from, automatic categorization, and setting of properties allowing the data to appear in automated lists throughout the wiki.

This basic template does none of that, simply displaying an infobox according the values given to its parameters. It can therefore be used directly whenever any of those side effects are not desirable.

Usage:

{{Card infobox/layout
  |name=the name of the card, uses the page name if not provided
  |link=Hearthpwn URL without the http://www.hearthpwn.com part
  |shows_playhs=true if there is an URL to http://playhearthstone.com/en-us/cards part and a dbfId, false otherwise
  |dbfId=DbfId of the card
  |id=Id of the card
  |original_ver=page name for the original version of the card, must have if this is being used on pages that depicts other versions like Core and Classic of cards
  |core_ver=page name for the Core version of the card, leave blank if this is being used on that page
  |classic_ver=page name for the Classic version of the card, leave blank if this is being used on that page
  |image=image filename for the regular card without the File: prefix
  |has_gold=true if there is a gold version, false otherwise
  |gold_image=image filename for the gold card without the File: prefix
  |reg_ver=page name for the non-Battlegrounds version of a card, leave blank if this is being used on that page
  |bg_reg_ver=page name for the regular Battlegrounds version of a card, leave blank if this is being used on that page
  |bg_gold_ver=page name for the gold Battlegrounds version of a card, leave blank if this is being used on that page
  |set=names of any sets this card is a part of, separated by commas
  |type=the type of the card, such as Equipment, Spell, or Minion
  |subtype=Minion type or Spell school of the card
  |class=the class of the card
  |rarity=the rarity of the card
  |costs_gold=true if it costs gold, false if it costs mana
  |cost=the mana/gold cost of the card, defaults to 0 if not provided
  |attack=the attack value of the card
  |hp=the health of the card
  |heroichp=the health of the heroic version
  |armor=the armor of the card
  |heroicarmor=the armor of the heroic version
  |abilities=the abilities of the card, separated by commas
  |tags=the card's tags, separated by commas
  |artist=the card's artist
  |voice actor=the card's voice actor
  |desc=the card's text description
  |flavor=the card's flavor text
}}