Template:ClassIcon

From Warcraft Watch Secrets
Revision as of 03:04, 26 February 2025 by imported>Surafbrov (Undo revision 6248574 by Surafbrov (talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation

Humane syntax for specifying any class icon. Pass the class and, optionally, desired size to produce an icon.

See also {{class}} which produces the class icon and a link to the class, e.g: "Druid Druid"

Previews:

Dark theme Light theme

Death Knight Demon Hunter Druid Evoker
Hunter Mage Monk Paladin
Priest Rogue Shaman Warlock
Warrior

Death Knight Demon Hunter Druid Evoker
Hunter Mage Monk Paladin
Priest Rogue Shaman Warlock
Warrior

Concise syntax: {{ClassIcon|<Class>}}

Syntax: {{ClassIcon|<Class>|<Size>}}

Class (required)
Case-insensitive class name to show the icon of.
Size (optional, small assumed)
Size of the icon to display, pass Large for a larger icon.

Test Vectors

  • {{ClassIcon|<hunter>}}: Hunter (case insensitivity)
  • {{ClassIcon|<Warlock>|<large>}}: Warlock(size adjustment)
    • Default and small - 16px wide
    • large - 26px wide (goes to large really using any text but "small")