Template:Achievement query
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 shortcutname
rewardTrackXp
rewardTrackXpNot
rewardTrackXpMore
rewardTrackXpLess
points
pointsNot
pointsMore
pointsLess
rewardsLists
orrewardListName
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
oror
: Achievement's description contains any of words in search context (separated by white space).all
orand
: Achievement's description contains all words in search context. This is the default option.
searchAdvancedName
:any
oror
: Achievement's name contains any of words in search context (separated by white space).all
orand
: 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:
Category | Name | Description | Rewards | |
---|---|---|---|---|
Gameplay - Darkmoon Faire - Hunter | Tonk Commander | Deal 50 damage with Darkmoon Tonk. | 10 | |
Gameplay - Darkmoon Faire - Hunter | Tonk Commander | Deal 150 damage with Darkmoon Tonk. | 10 | |
Gameplay - Darkmoon Faire - Hunter | Tonk Commander | Deal 500 damage with Darkmoon Tonk. | 20 |