Template:Versions new/doc

From Hearthstone Wiki
Jump to navigation Jump to search

This template provides output table for cards that have multiple versions, usually Core or Classic format.

For the non-semantics version of this template, see {{Versions}}.

Usage[edit source]

{{Versions new|<data page without Data:Cards/ prefix>}}
{{Versions new|datapage=<data page without Data:Cards/ prefix>}}

TemplateData[edit source]

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Data pagedatapage

Data page of the card.

Stringrequired

Notes[edit source]

  • This template requires variables original_ver, core_ver, or classic_ver from the corresponding data page. If both of their values are empty, this template returns blank.

Examples[edit source]

Input Output
{{Versions new|Elven Archer(356)}}
Cargo Query Error: Error 1054: Unknown column 'original_ver' in 'field list'

Function: CargoSQLQuery::run Query: SELECT CONCAT(original_ver) AS `original_ver`,CONCAT(core_ver) AS `core_ver`,CONCAT(classic_ver) AS `classic_ver`,CONCAT(_pageName) AS `pageName`,CONCAT(bg_reg_ver) AS `bg_reg_ver`,TRIM(battlegroundsNormalDbfId) AS `battlegroundsNormalDbfId`,TRIM(battlegroundsPremiumDbfId) AS `battlegroundsPremiumDbfId`,CONCAT(bg_image) AS `bg_image`,CONCAT(image) AS `image`,`hiddentags__full` AS `hiddentags` FROM `cargo__Cards` WHERE data_page="Data:Cards/Elven Archer(356)" ORDER BY CONCAT(original_ver),CONCAT(core_ver),CONCAT(classic_ver),CONCAT(_pageName),CONCAT(bg_reg_ver) LIMIT 1

{{Versions new|Elven Archer(475173)}}
Cargo Query Error: Error 1054: Unknown column 'original_ver' in 'field list'

Function: CargoSQLQuery::run Query: SELECT CONCAT(original_ver) AS `original_ver`,CONCAT(core_ver) AS `core_ver`,CONCAT(classic_ver) AS `classic_ver`,CONCAT(_pageName) AS `pageName`,CONCAT(bg_reg_ver) AS `bg_reg_ver`,TRIM(battlegroundsNormalDbfId) AS `battlegroundsNormalDbfId`,TRIM(battlegroundsPremiumDbfId) AS `battlegroundsPremiumDbfId`,CONCAT(bg_image) AS `bg_image`,CONCAT(image) AS `image`,`hiddentags__full` AS `hiddentags` FROM `cargo__Cards` WHERE data_page="Data:Cards/Elven Archer(475173)" ORDER BY CONCAT(original_ver),CONCAT(core_ver),CONCAT(classic_ver),CONCAT(_pageName),CONCAT(bg_reg_ver) LIMIT 1

{{Versions new|Elven Archer(464749)}}
Cargo Query Error: Error 1054: Unknown column 'original_ver' in 'field list'

Function: CargoSQLQuery::run Query: SELECT CONCAT(original_ver) AS `original_ver`,CONCAT(core_ver) AS `core_ver`,CONCAT(classic_ver) AS `classic_ver`,CONCAT(_pageName) AS `pageName`,CONCAT(bg_reg_ver) AS `bg_reg_ver`,TRIM(battlegroundsNormalDbfId) AS `battlegroundsNormalDbfId`,TRIM(battlegroundsPremiumDbfId) AS `battlegroundsPremiumDbfId`,CONCAT(bg_image) AS `bg_image`,CONCAT(image) AS `image`,`hiddentags__full` AS `hiddentags` FROM `cargo__Cards` WHERE data_page="Data:Cards/Elven Archer(464749)" ORDER BY CONCAT(original_ver),CONCAT(core_ver),CONCAT(classic_ver),CONCAT(_pageName),CONCAT(bg_reg_ver) LIMIT 1