User:SBEyes/Card data/doc

From Hearthstone Wiki
Jump to navigation Jump to search

This template is used to set up an card data page.

Generally speaking, these will be set up as Data namespace pages by periodic automated imports of data extracted from the game client, so it isn't recommended that you set these up yourself. You may want to edit them to update outdated data from time to time, though. Note, though, if imports are consistently adding incorrect information to a data page, you should instead use the appropriate parameters on {{Card infobox}} on the content page instead.

This template shows the data in a display like the one below automatically when used on pages in the Landmark data namespace, but shows nothing when used elsewhere. This is because the data page is transcluded on its content page. The show_data parameter is provided if you want to test data pages in your userspace, though. Setting that to yes will cause it to display the data.

Usage:

{{Card data
  |show_data=yes or no
  |name=name of the card
  |link=link to the card's Hearthpwn page
  |image=filename of the normal card image
  |has_gold=True if there is a gold version, or False if there isn't
  |gold_image=filename of the gold card image, leave blank if there is none
  |type=the main type of the card, such as spell or minion
  |subtype=subtype of the card, such as beast
  |class=class that can use the card or class of the minion represented by the card
  |rarity=the card's rarity
  |cost=the card's mana cost, if any
  |attack=the card's attack power, if any
  |hp=the card's health, if any
  |abilities=the card's abilities or mechanics, separated by commas
  |desc=the card's description
  |flavor=the card's flavor text
}}