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

{{Rarity returns|<renderName, name, or id of rarity to return>|<returns renderName, name, id, regularCraft, regularDisenchant, goldenCraft, or goldenDisenchant of that rarity (default is name)>|<template format to display return (default is Count layout)>}}
Full usage
{{Rarity returns
|id/name/renderName/where=
|fields=id/name/renderName/id/sortOrder/regularCraft/regularDisenchant/goldenCraft/goldenDisenchant/mercenariesCraft
|layout=Count layout/Link layout
}}

Notes

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

Examples

  • {{Rarity returns|0|renderName}} returns: 0
  • {{Rarity returns|Free|name}} returns: FREE
  • {{Rarity returns|COMMON|id}} returns: 1
  • {{Rarity returns|3|renderName|File layout}} returns: Rare
  • {{Rarity returns|4|name|Link layout}} returns: EPIC
  • {{Rarity returns|FREE|renderName|File and link layout}} returns: Free
  • {{Rarity returns|5|renderName|File and link layout}} returns: LegendaryLegendary
Advertisement