Hearthstone Wiki

Hearthstone Wiki's database has been fully updated to Patch 23.4.3.141643!

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