Template:Text

From Wowpedia
Jump to: navigation, search

Purpose

A template to create colored text. This template comes preloaded with coloring for NPC emotes, says, yells, and whispers. It can also handle the class colors.

Usage

{{Text|colorMode|text}}

-or-

{{Text|say/whisper/yell|NPC|text}}

Specific colorMode keywords:

  • say, emote, yell, whisper, blizz, bossemote
  • deathknight, demonhunter, druid, hunter, mage, monk, paladin, priest, rogue, shaman, warlock, warrior
  • poor, common, uncommon, rare, epic, legendary, artifact, heirloom, token

The three-parameter mode only works when using say, yell, or whisper.

Other colorMode options include any valid CSS, such as:

  • Html color names (black, white, purple, lightgreen, etc.)
  • Html hex color specifications of the form #RRGGBB, where RR, GG, and BB are hexadecimal numbers between 00 and FF. Not case-sensitive; #FFFFFF and #ffffff will work the same.
  • Html RGB color specifications in form of rgb(RR,GG,BB)


Be careful when using other color modes than the predefined options. The predefined options are designed to work on both light-colored and dark-colored (the default) skins. If you're not using one of them, test your colors on both a dark skin (e.g. DarkVector) and a light skin (say, Vector) to make sure it's readable.

Examples
2-parameter mode
* {{Text|Emote|The comedian impersonates an orc.}}
* {{Text|say|'''Perry Gatner says:''' One last impersonation. It's tough, but let's see if you can guess who it is...}}
* {{Text|yell|'''Illidan yells:''' YOU ARE NOT PREPARED!}}
* {{Text|whisper|'''An Unknown Voice whispers:''' Tell yourself again that these are not truly your friends.}}
* {{Text|bossemote|King Ymiron motions for silence.}}
* {{Text|blizz|This is the Blizz forum color.}}

3-parameter mode
* {{Text|say|Perry Gatner|One last impersonation. It's tough, but let's see if you can guess who it is...}}
* {{Text|bossemote|Varian|My son, a terrible darkness has returned to our world.}}
* {{Text|yell|Illidan|YOU ARE NOT PREPARED!}}
* {{Text|whisper|An Unknown Voice|Tell yourself again that these are not truly your friends.}}

Specials
* {{Text|purple|Something purple.}}
* {{Text|rgb(120,120,120)|Custom color of gray}}
* {{Text|#99FFFF|Something 99FFFF.}}
Yield

2-parameter mode

  • The comedian impersonates an orc.
  • Perry Gatner says: One last impersonation. It's tough, but let's see if you can guess who it is...
  • Illidan yells: YOU ARE NOT PREPARED!
  • An Unknown Voice whispers: Tell yourself again that these are not truly your friends.
  • King Ymiron motions for silence.
  • This is the Blizz forum color.

3-parameter mode

  • Perry Gatner says: One last impersonation. It's tough, but let's see if you can guess who it is...
  • Varian: My son, a terrible darkness has returned to our world.
  • Illidan yells: YOU ARE NOT PREPARED!
  • An Unknown Voice whispers: Tell yourself again that these are not truly your friends.

Specials

  • Something purple.
  • Custom color of gray
  • Something 99FFFF.

Hex codes for common colors

Classes

Class colors
  • deathknight (C41F3B)
  • demonhunter (A330C9)
  • druid (FF7D0A)
  • hunter (ABD473)
  • mage (69CCF0)
  • monk (00FF96)
  • paladin (F58CBA)
  • priest (FFFFFF)
  • rogue (FFF569)
  • shaman (0070DE)
  • warlock (9482C9)
  • warrior (C79C6E)

Item quality

Quality colors
  • poor (9D9D9D)
  • common (FFFFFF)
  • uncommon (1EFF00)
  • rare (0070DD)
  • epic (A335EE)
  • legendary (FF8000)
  • artifact (E6CC80)
  • heirloom (E6CC80)
  • token (00CCFF)

Profession skill-ups

Skill-up chance colors*
  • red (DD2222)
  • orange (FF8040)
  • yellow (FFFF00)
  • green (40BF40)
  • gray (808080)

* These colors are also used in-game to show the difficulty of mobs and quests compared to the player's level. On Wowpedia though, they'll mostly be used for professions.

Notes

This template may not show up properly through line breaks on browsers other than Internet Explorer (i.e. Firefox). Instead of using one template to encompass two or more of the same kind of line, each line requires its own template, even if it is the same kind in a row.

External links