Template:Card query

From Hearthstone Wiki
Jump to navigation Jump to search

This template is an alternate version of {{List cards}} with tons of new supports and different use of parameters.

Usage[edit source]

{{Card query
 |layout=
 |where=
 |orderBy=
 |collapsed=
 |limit=
 |offset=
}}

Parameters[edit source]

The following documentation is transcluded from Template:Card query/doc (edit):


Parameters used in Card query. When using multiple values, pageName, name, dbfId, dbfIdNot, id, and text are split by &&, others are split by a comma (,).

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
layoutlayout

Choose one of these layouts: table, image, or count. Default is table.

Stringoptional
footerfooter

Footer to be displayed under the card image.

Stringoptional
wherewhere

Where clauses, pretty much like SQL functions.

Stringoptional
formatformat

Formats from DerivedCard table (Standard, Wild, Twist, Duels, Arena, Classic, Boss)

Stringoptional
formatNotformatNot

Exclude formats

Stringoptional
collectiblecollectible

1 for collectible, 0 for no, leave blank for both

Booleanoptional
namename

Name of the card

Stringoptional
dbfIddbfId

dbfId of the card

Numberoptional
dbfIdNotdbfIdNot

Exclude dbfIds

Numberoptional
idid

id of the card

Stringoptional
texttext

Text on the card's textbox (if any apply)

Stringoptional
textAdvancedtextAdvanced

Text on the card's textbox (if ALL apply)

Stringoptional
costcost

no description

Unknownoptional
costNotcostNot

no description

Unknownoptional
costMorecostMore

no description

Unknownoptional
costLesscostLess

no description

Unknownoptional
costOddcostOdd

no description

Unknownoptional
costEvencostEven

no description

Unknownoptional
attackattack

no description

Unknownoptional
attackNotattackNot

no description

Unknownoptional
attackMoreattackMore

no description

Unknownoptional
attackLessattackLess

no description

Unknownoptional
healthhealth

no description

Unknownoptional
healthNothealthNot

no description

Unknownoptional
healthMorehealthMore

no description

Unknownoptional
healthLesshealthLess

no description

Unknownoptional
duradura

no description

Unknownoptional
duraNotduraNot

no description

Unknownoptional
duraMoreduraMore

no description

Unknownoptional
duraLessduraLess

no description

Unknownoptional
armorarmor

no description

Unknownoptional
armorNotarmorNot

no description

Unknownoptional
armorMorearmorMore

no description

Unknownoptional
armorLessarmorLess

no description

Unknownoptional
costVSattackcostVSattack

no description

Unknownoptional
costVShealthcostVShealth

no description

Unknownoptional
costVSduracostVSdura

no description

Unknownoptional
attackVShealthattackVShealth

no description

Unknownoptional
attackVSduraattackVSdura

no description

Unknownoptional
setssets

no description

Unknownoptional
setsNotsetsNot

no description

Unknownoptional
corecore

no description

Unknownoptional
classesclasses

no description

Unknownoptional
classesAllclassesAll

no description

Unknownoptional
classesNotclassesNot

no description

Unknownoptional
multiClassGroupsmultiClassGroups

no description

Unknownoptional
multiClassGroupsNotmultiClassGroupsNot

no description

Unknownoptional
typestypes

no description

Unknownoptional
typesNottypesNot

no description

Unknownoptional
racesraces

no description

Unknownoptional
racesNotracesNot

no description

Unknownoptional
spellSchoolsspellSchools

no description

Unknownoptional
spellSchoolsNotspellSchoolsNot

no description

Unknownoptional
raritiesrarities

no description

Unknownoptional
raritiesNotraritiesNot

no description

Unknownoptional
artistsartists

no description

Unknownoptional
artistsNotartistsNot

no description

Unknownoptional
signatureArtistssignatureArtists

no description

Unknownoptional
signatureArtistsNotsignatureArtistsNot

no description

Unknownoptional
vfxArtistsvfxArtists

no description

Unknownoptional
vfxArtistsNotvfxArtistsNot

no description

Unknownoptional
voiceActorsvoiceActors

no description

Unknownoptional
voiceActorsNotvoiceActorsNot

no description

Unknownoptional
keywordTagskeywordTags

no description

Unknownoptional
keywordTagsAllkeywordTagsAll

no description

Unknownoptional
keywordTagsNotkeywordTagsNot

no description

Unknownoptional
referencedTagsreferencedTags

no description

Unknownoptional
referencedTagsAllreferencedTagsAll

no description

Unknownoptional
referencedTagsNotreferencedTagsNot

no description

Unknownoptional
stringTagsstringTags

no description

Unknownoptional
stringTagsAllstringTagsAll

no description

Unknownoptional
stringTagsNotstringTagsNot

no description

Unknownoptional
customTagscustomTags

no description

Unknownoptional
customTagsAllcustomTagsAll

no description

Unknownoptional
customTagsNotcustomTagsNot

no description

Unknownoptional
customReferencedTagscustomReferencedTags

no description

Unknownoptional
customReferencedTagsAllcustomReferencedTagsAll

no description

Unknownoptional
customReferencedTagsNotcustomReferencedTagsNot

no description

Unknownoptional
customHiddenTagscustomHiddenTags

no description

Unknownoptional
customHiddenTagsAllcustomHiddenTagsAll

no description

Unknownoptional
customHiddenTagsNotcustomHiddenTagsNot

no description

Unknownoptional
customCyclescustomCycles

no description

Unknownoptional
customCyclesAllcustomCyclesAll

no description

Unknownoptional
customCyclesNotcustomCyclesNot

no description

Unknownoptional
customExclusionscustomExclusions

no description

Unknownoptional
customExclusionsAllcustomExclusionsAll

no description

Unknownoptional
customExclusionsNotcustomExclusionsNot

no description

Unknownoptional
custom_racescustom_races

no description

Unknownoptional
custom_racesAllcustom_racesAll

no description

Unknownoptional
custom_racesNotcustom_racesNot

no description

Unknownoptional
custom_racesInArtcustom_racesInArt

no description

Unknownoptional
custom_racesInArtNotcustom_racesInArtNot

no description

Unknownoptional
runeBloodruneBlood

no description

Unknownoptional
runeFrostruneFrost

no description

Unknownoptional
runeUnholyruneUnholy

no description

Unknownoptional
orderByorderBy

Order to sort the results. Default is CardTag.cost ASC, Card.name ASC

Stringoptional
limitlimit

Maximum number of cards to display. If the limit number and the results number are too high, it will display error: "The time allocated for running scripts has expired." Default is 500

Numberoptional
offsetoffset

the number of initial cards to skip. This combines with <code>limit</code> for separating lists whose the number of results are very high into individual pages/articles.

Numberoptional
introintro

Data to be presented before the query

Contentoptional
collapsedcollapsed

If true (default), the table/card image list will be collapsed after the page is reloaded, and vice versa if false.

Booleanoptional
titletitle

Title to be presented at the top of the query

Stringoptional
outrooutro

Data to be presented after the query

Contentoptional
defaultdefault

Content to be presented if no cards are found

Contentoptional


Examples[edit source]

NameClassTypeRarityCostAtkHP/Dur.ArmorDescription
 Aggramar, the AvengerHunterMinion Legendary637Titan Battlecry: Equip a 3/3 Taeshalach.
 Blast TortoiseWarriorMinion - BeastRare627Taunt Battlecry: Deal damage to all enemy minions equal to this minion's Attack.
 Blastmage MinerMageMinion Rare644Battlecry: Excavate a treasure. For each card in your hand, deal 1 damage to a random enemy.
 BlizzardMageSpell - FrostRare6Deal 2 damage to all enemy minions and Freeze them.
 Boulderfist OgreNeutralMinion Common667
 Chaos CreationMageSpell - FelCommon6Deal 6 damage. Summon a random 6-Cost minion. Destroy the bottom 6 cards of your deck.
 Cho'gall, Twilight ChieftainNeutralMinion Legendary667Taunt, Lifesteal Start of Game: 50% chance to corrupt the game with a random anomaly.
 Clay MatriarchPriestMinion - DragonRare637Miniaturize Taunt. Deathrattle: Summon a 4/4 Whelp with Elusive.
 Crystal ClusterDruidSpell Common6Gain three empty Mana Crystals. Any that can't fit summon a 3/7 Elemental with Taunt.
 Deepminer BrannWarriorMinion Legendary624Battlecry: If your deck has no duplicates, your Battlecries trigger twice for the rest of the game.
 Dirge of DespairWarlockSpell - ShadowRare6Deal 3 damage to a character. If that kills it, summon a Demon from your deck.
 DoomkinDruidMinion Rare634Battlecry: Take one of your opponent's empty Mana Crystals.
 Dr. StitchensewDeath KnightMinion - UndeadLegendary664Battlecry: Discover a 5, 3, and 1-Cost minion to stitch to this. Deathrattle: Summon the 5-Cost minion.
 Druid of the ClawDruidMinion Common646Choose One - Transform into a 7/6 with Rush; or a 4/9 with Taunt.
 Evasive WyrmNeutralMinion - DragonCommon653Rush Divine Shield Elusive
 Fire ElementalShamanMinion - ElementalCommon665Battlecry: Deal 4 damage.
 Flame BehemothNeutralMinion - MechLegendary645Battlecry: Get two random Magnetic Mechs. They cost (2) less.
 Flik SkyshivRogueMinion Legendary644Battlecry: Destroy a minion and all copies of it (wherever they are).
 FrostmourneDeath KnightWeapon Legendary643Deathrattle: Summon every minion killed by this weapon.
 Gnome MuncherDeath KnightMinion - UndeadCommon656Taunt, Lifesteal At the end of your turn, attack the lowest Health enemy.
 Gnomelia, S.A.F.E. PilotNeutralMinion Legendary642Rush. Also damages minions next to whomever this attacks. Deathrattle: Deal 2 damage to all enemies.
 Golganneth, the ThundererShamanMinion Legendary657Titan Your first spell each turn costs (3) less.
 Hammer of the NaaruPaladinWeapon Epic633Battlecry: Summon a 6/6 Holy Elemental with Taunt.
 Harmonic PopPriestSpell - HolyRare6Deal 3 damage to all minions. Summon a 6/6 Popstar. (Swaps each turn.)
 Harth StonebrewNeutralMinion Legendary655Battlecry: Replace your hand with an iconic one from Hearthstone's past. (Once per game)
 Hollow HoundDeath KnightMinion - Undead/BeastCommon634Lifesteal, Rush Also damages minions next to whomever this attacks.
 Horn of the WindlordPaladinWeapon Rare634Windfury Whenever your hero attacks a minion, set its stats to 3/3.
 Khaz'gorothWarriorMinion Legendary645Titan After this uses an ability, gain Immune this turn and attack a random enemy minion.
 Kingpin PudNeutralMinion Legendary667Battlecry: Resurrect your Ogre-Gang. Give them Windfury.
 Lead DancerPaladinMinion Rare642Deathrattle: Summon a minion from your deck with less Attack than this minion.
 Li'Na, Shop ManagerNeutralMinion Legendary633Whenever you cast a spell, fill your board with random minions of that Cost.
 LightbombPriestSpell - HolyEpic6Deal damage to each minion equal to its Attack.
 Loken, Jailer of Yogg-SaronWarlockMinion Legendary633Battlecry: Discover a minion from your deck. Summon a Tentacle with its stats and Taunt.
 Manufacturing ErrorMageSpell Rare6Draw 3 cards. If your deck has no minions, they cost (3) less.
 Marrow ManipulatorDeath KnightMinion - UndeadRare655Battlecry: Spend up to 5 Corpses. Deal 2 damage to a random enemy for each.
 Mes'Adune the FracturedMageMinion - ElementalLegendary665Battlecry: Draw an Elemental. Split it into two halves.
 Midnight WolfDemon HunterMinion - BeastCommon666Rush Outcast: Summon a copy of this.
 MinotaurenWarriorMinion Rare655Rush Whenever this minion deals damage, gain that much Armor.
 Mister MuklaHunterMinion - BeastLegendary61010Rush. Battlecry: Fill your opponent's hand with Bananas.
 NorgannonMageMinion Legendary638Titan After this uses an ability, double the power of the other abilities.
 Obsidian RevenantDeath KnightMinion - ElementalCommon646Taunt Deathrattle: Summon two random Deathrattle minions that cost (3) or less.
 Once Upon a Time...ShamanSpell - NatureEpic6Summon a random 3-Cost Beast, Dragon, Elemental, and Murloc.
 Origami DragonNeutralMinion - DragonEpic611Divine Shield, Lifesteal Battlecry: Swap stats with another minion.
 Puzzlemaster KhadgarMageMinion Legendary655Battlecry: Equip a 0/6 Wisdomball that casts helpful Mage spells!
 Ra-denPriestMinion Legendary655Taunt. Deathrattle: Summon each other minion you've played this game that didn't start in your deck.
 Savannah HighmaneHunterMinion - BeastRare675Deathrattle: Summon two 2/2 Hyenas.
 Shoplifter GoldbeardRogueMinion - PirateLegendary655After you summon a Pirate, summon a copy of it that attacks a random enemy, then dies.
 ShudderblockShamanMinion Legendary655Miniaturize Battlecry: Your next Battlecry triggers 3 times, but can't damage the enemy hero.
 SifMageMinion Legendary646Spell Damage +1 (Improved by each spell school you've cast this game!)
 Spikeridged SteedPaladinSpell Rare6Give a minion +2/+6 and Taunt. When it dies, summon a Stegodon.
 Starstrung BowHunterWeapon Epic652Costs (1) less for each friendly Secret that has triggered this game.
 Stone DrakeNeutralMinion - Dragon/ElementalCommon628Divine Shield, Taunt, Lifesteal Can't be targeted by spells or Hero Powers.
 Sunspot DragonNeutralMinion - DragonCommon666Tradeable, Lifesteal Quickdraw: Deal 6 damage.
 Sylvanas WindrunnerNeutralMinion - UndeadLegendary655Deathrattle: Take control of a random enemy minion.
 Testing DummyWarriorMinion - MechCommon648Taunt Deathrattle: Deal 8 damage randomly split among all enemies.
 The Badlands BanditsPaladinSpell Legendary6Get eight 3/2 Bandits with bonus effects. Any that can't fit in your hand are summoned instead.
 The Headless HorsemanDeath KnightHero Legendary6305Battlecry: Destroy the enemy minion with the most Attack! Shuffle my Head into your deck, you must get it back!
 Thing from BelowShamanMinion Rare655Taunt Costs (1) less for each Totem you've summoned this game.
 Thirsty DrifterPriestMinion Rare646Taunt Costs (1) less for each 1-Cost card you've played this game.
 Trial by FireWarriorSpell - FireEpic6Summon five 1/1 Val'kyr with Rush. When one dies, give the others +1/+1.
 TyrPaladinMinion Legendary645Battlecry: Resurrect a 2, 3, and 4-Attack Paladin minion.
 Unpopular Has-BeenNeutralMinion - UndeadEpic655Deathrattle: Summon a random 5-Cost minion from the past.
 V-07-TR-0N PrimeRogueMinion - MechLegendary635T1T4N This minion's abilities repeat on another random friendly minion.
 Wind-Up EnforcerPaladinMinion Rare635Tradeable Battlecry: Summon 1 copy of this minion. (Trade to upgrade!)
 Wind-Up MusicianNeutralMinion Rare655Tradeable Battlecry: Deal 1 damage to all enemy minions. (Trade to upgrade!)