Template:Achievement query

From Hearthstone Wiki
Jump to navigation Jump to search

This template returns achievements searched by keywords. Mainly used in Cards articles/pages. Avoid using Magic words if possible. You can also use searchAdvanced to change options, collapsed to set the table collapsed by default or not.

Simple search[edit source]

Below are the parameters users can choose to insert search context. The more parameters used, the more accurate the results will give.

  • category
  • subCategory
  • section
  • description. Can be used as a shortcut
  • name
  • rewardTrackXp
  • rewardTrackXpNot
  • rewardTrackXpMore
  • rewardTrackXpLess
  • points
  • pointsNot
  • pointsMore
  • pointsLess
  • rewardsLists or rewardListName

Advanced search[edit source]

Below are the extra parameters.

  • display: Format to display. Available: table, statistics.
  • collapsed: If true, the table will be collapsed after the page is done loading. False is default.
  • searchAdvanced:
    • any or or: Achievement's description contains any of words in search context (separated by white space).
    • all or and: Achievement's description contains all words in search context. This is the default option.
  • searchAdvancedName:
    • any or or: Achievement's name contains any of words in search context (separated by white space).
    • all or and: Achievement's name contains all words in search context. This is the default option.
SQL stuffs

These parameters can be used with SQL codes. Beware that where will override ALL parameters in the Simple search section above. For all related tables and their parameters, see table Achievements, table AchievementsSections, table AchievementsSectionItems, table AchievementsSubCategories, table AchievementsCategories, table RewardList.

  • where
  • groupBy
  • orderBy
  • limit
  • offset

Examples[edit source]

{{Card article achievement table|description=Darkmoon Tonk}} or {{Card article achievement table|Darkmoon Tonk}} returns:

CategoryNameDescriptionRewards
Achievement Category 2Achievement SubCategory 3 logoGameplay - Darkmoon Faire - HunterTonk CommanderDeal 50 damage with Darkmoon Tonk.10 Achievement Point.png
Achievement Category 2Achievement SubCategory 3 logoGameplay - Darkmoon Faire - HunterTonk CommanderDeal 150 damage with Darkmoon Tonk.10 Achievement Point.png
Achievement Category 2Achievement SubCategory 3 logoGameplay - Darkmoon Faire - HunterTonk CommanderDeal 500 damage with Darkmoon Tonk.20 Achievement Point.png

See also[edit source]