Template:Text
{{#if:|{{{2}}}{{#switch:{{{1}}}|say= says|yell= yells|whisper= whispers}}: {{{3}}}|}}
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
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
- {{#if:|The comedian impersonates an orc.{{#switch:emote|say= says|yell= yells|whisper= whispers}}: {{{3}}}|The comedian impersonates an orc.}}
- {{#if:|'Perry Gatner says:' One last impersonation. It's tough, but let's see if you can guess who it is...{{#switch:say|say= says|yell= yells|whisper= whispers}}: {{{3}}}|Perry Gatner says: One last impersonation. It's tough, but let's see if you can guess who it is...}}
- {{#if:|'Illidan yells:' YOU ARE NOT PREPARED!{{#switch:yell|say= says|yell= yells|whisper= whispers}}: {{{3}}}|Illidan yells: YOU ARE NOT PREPARED!}}
- {{#if:|'An Unknown Voice whispers:' Tell yourself again that these are not truly your friends.{{#switch:whisper|say= says|yell= yells|whisper= whispers}}: {{{3}}}|An Unknown Voice whispers: Tell yourself again that these are not truly your friends.}}
- {{#if:|King Ymiron motions for silence.{{#switch:bossemote|say= says|yell= yells|whisper= whispers}}: {{{3}}}|King Ymiron motions for silence.}}
- {{#if:|This is the Blizz forum color.{{#switch:blizz|say= says|yell= yells|whisper= whispers}}: {{{3}}}|This is the Blizz forum color.}}
3-parameter mode
- {{#if:One last impersonation. It's tough, but let's see if you can guess who it is...|Perry Gatner{{#switch:say|say= says|yell= yells|whisper= whispers}}: One last impersonation. It's tough, but let's see if you can guess who it is...|Perry Gatner}}
- {{#if:My son, a terrible darkness has returned to our world.|Varian{{#switch:bossemote|say= says|yell= yells|whisper= whispers}}: My son, a terrible darkness has returned to our world.|Varian}}
- {{#if:YOU ARE NOT PREPARED!|Illidan{{#switch:yell|say= says|yell= yells|whisper= whispers}}: YOU ARE NOT PREPARED!|Illidan}}
- {{#if:Tell yourself again that these are not truly your friends.|An Unknown Voice{{#switch:whisper|say= says|yell= yells|whisper= whispers}}: Tell yourself again that these are not truly your friends.|An Unknown Voice}}
Specials
- {{#if:|Something purple.{{#switch:purple|say= says|yell= yells|whisper= whispers}}: {{{3}}}|Something purple.}}
- {{#if:|Custom color of gray{{#switch:rgb(120,120,120)|say= says|yell= yells|whisper= whispers}}: {{{3}}}|Custom color of gray}}
- {{#if:|Something 99FFFF.{{#switch:
- 99ffff|say= says|yell= yells|whisper= whispers}}: {{{3}}}|Something 99FFFF.}}
Hex codes for common colors
Classes
|
|
Item quality
|
|
Profession skill-ups
|
|
* 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.