Hearthstone Wiki:Data imports

'''This is currently just a draft and will need to be reviewed and accepted by all parties. Changes may be forthcoming.'''

This article lays out the procedures for bot imports of card data from http://www.hearthpwn.com into the Hearthpwn. The roles of the Hearthpwn team, Gamepedia team, and wiki community are all documented here.

Import definitions
For the purposes of bot imports:


 * Cards
 * This refers to all cards, Hero Powers, enchantments, heroes, and other content, which are treated as actual cards by the data system.


 * Data pages
 * This refers to any page with a title starting with  that uses the Card data template.


 * Content pages
 * This refers to any pages in the main namespace, meaning they do not have any valid namespace prefix such as,  ,  , etc, that uses the Card infobox template.


 * Card images
 * This refers to both the non-animated standard and gold card images. The wiki does not use the animated gold card images.


 * New cards only
 * When "new cards only" is requested, this should be assumed to mean new cards from the perspective of the wiki. This should be assumed to be the default procedure unless specifically requested otherwise.
 * Specifically, new cards only means employing the following import procedure, running through all cards:
 * For data pages:
 * Check if a page with the correct title already exists on the wiki.
 * The naming convention for data pages is.
 * If a page with that title already exists, do not create a data page for that card and do not edit the existing data page. Otherwise, do create a new data page for the card.
 * For content pages, the procedure is the same as for data pages except for the naming convention, which is simply.
 * For images, all card images may be uploaded without regard as to whether or not they are already on the wiki, but at a minimum, all images that do not already exist on the wiki should be uploaded. The naming convention is.

Timing of imports
Whenever a new patch becomes available that includes new cards, a "new card only" bot import should be performed by the Hearthpwn team as soon as possible. This includes new cards not directly featuring in normal play, such as debug, Boss and Tavern Brawl cards.

Bot imports may also be requested on Hearthstone Wiki:Data import requests by the wiki community. The assigned Gamepedia wiki manager will be responsible for passing the request along to the Hearthpwn team in a timely manner. See that page for more information.

Data formatting

 * Any instances of  or line breaks in any field should be changed to
 * Any instances of  in any field should be changed to
 * Any instances of  or   in any field should be changed to
 * Any instances of " " in the  field should be changed to
 * Any instances of " " in the  field should be changed to
 * Any instances of " " in the  field should be changed to
 * Any instances of " " in the  field should be changed to
 * If  is missing, set   to " "
 * If  is missing, and   = " " or " ", set   to " "

Community procedures
Leaving this area blank for the wiki community to fill in for any post-bot import steps.