Hearthstone Wiki

Our community portal has been updated. Be sure to check out the projects if you wish to become an editor and help contribute the Hearthstone Wiki!

READ MORE

Hearthstone Wiki
Advertisement

Usage

Shortcut
{{Card type returns|<renderName, name, or id of card type to return>|<returns renderName, name, or id of that card type (default is name)>|<template format to display return (default is Count layout)>}}
Full usage
{{Card type returns
|id/name/renderName/where=
|fields=id/name/renderName/battlegroundsRenderName/mercenariesRenderName
|layout=Count layout/Link layout
}}

Notes

  • If the card type does not have a custom definition yet, it will always return id and use {{Count layout}}.

Examples

  • {{Card type returns|where=CardsCardType.name="GAME"|fields=id}} returns: 1
  • {{Card type returns|3|renderName}} returns: Hero
  • {{Card type returns|HERO|name}} returns: HERO
  • {{Card type returns|Hero|id}} returns: 3
  • {{Card type returns|HERO|renderName|Link layout}} returns: Hero
Advertisement