Difference between revisions of "Template:Color"

From GuildWiki
Jump to: navigation, search
(moved doc to /doc)
m (add cases for full profession names (no reason not to include them))
 
Line 1: Line 1:
 
{{#switch: {{lc:{{{1}}} }}
 
{{#switch: {{lc:{{{1}}} }}
|w = {{#switch: {{lc:{{{2}}} }}
+
|w | warrior = {{#switch: {{lc:{{{2}}} }}
 
|dark=<nowiki>#</nowiki>EA3
 
|dark=<nowiki>#</nowiki>EA3
 
|light=<nowiki>#</nowiki>FF8}}
 
|light=<nowiki>#</nowiki>FF8}}
|r = {{#switch: {{lc:{{{2}}} }}
+
|r | ranger = {{#switch: {{lc:{{{2}}} }}
 
|dark=<nowiki>#</nowiki>5A0
 
|dark=<nowiki>#</nowiki>5A0
 
|light=<nowiki>#</nowiki>CF9}}
 
|light=<nowiki>#</nowiki>CF9}}
|mo = {{#switch: {{lc:{{{2}}} }}
+
|mo | monk = {{#switch: {{lc:{{{2}}} }}
 
|dark=<nowiki>#</nowiki>44B
 
|dark=<nowiki>#</nowiki>44B
 
|light=<nowiki>#</nowiki>ACF}}
 
|light=<nowiki>#</nowiki>ACF}}
|n = {{#switch: {{lc:{{{2}}} }}
+
|n | necromancer = {{#switch: {{lc:{{{2}}} }}
 
|dark=<nowiki>#</nowiki>0A5
 
|dark=<nowiki>#</nowiki>0A5
 
|light=<nowiki>#</nowiki>9FC}}
 
|light=<nowiki>#</nowiki>9FC}}
|me= {{#switch: {{lc:{{{2}}} }}
+
|me | mesmer = {{#switch: {{lc:{{{2}}} }}
 
|dark=<nowiki>#</nowiki>80A
 
|dark=<nowiki>#</nowiki>80A
 
|light=<nowiki>#</nowiki>DAF}}
 
|light=<nowiki>#</nowiki>DAF}}
|e = {{#switch: {{lc:{{{2}}} }}
+
|e | elementalist = {{#switch: {{lc:{{{2}}} }}
 
|dark=<nowiki>#</nowiki>B33
 
|dark=<nowiki>#</nowiki>B33
 
|light=<nowiki>#</nowiki>FBB}}
 
|light=<nowiki>#</nowiki>FBB}}
|a = {{#switch: {{lc:{{{2}}} }}
+
|a | assassin = {{#switch: {{lc:{{{2}}} }}
 
|dark=<nowiki>#</nowiki>A08
 
|dark=<nowiki>#</nowiki>A08
 
|light=<nowiki>#</nowiki>FCE}}
 
|light=<nowiki>#</nowiki>FCE}}
|rt= {{#switch: {{lc:{{{2}}} }}
+
|rt | ritualist = {{#switch: {{lc:{{{2}}} }}
 
|dark=<nowiki>#</nowiki>0AA
 
|dark=<nowiki>#</nowiki>0AA
 
|light=<nowiki>#</nowiki>BFF}}
 
|light=<nowiki>#</nowiki>BFF}}
|p = {{#switch: {{lc:{{{2}}} }}
+
|p | paragon = {{#switch: {{lc:{{{2}}} }}
 
|dark=<nowiki>#</nowiki>960
 
|dark=<nowiki>#</nowiki>960
 
|light=<nowiki>#</nowiki>FC9}}
 
|light=<nowiki>#</nowiki>FC9}}
|d = {{#switch: {{lc:{{{2}}} }}
+
|d | dervish = {{#switch: {{lc:{{{2}}} }}
 
|dark=<nowiki>#</nowiki>77C
 
|dark=<nowiki>#</nowiki>77C
 
|light=<nowiki>#</nowiki>DDF}}
 
|light=<nowiki>#</nowiki>DDF}}

Latest revision as of 19:26, 2 October 2008

#FFF

Documentation

Inserts the 3-digit hex number for the profession colors preceded by a "#" symbol.

Input

  • parameter 1 = profession abbreviation (w, r, mo, n, me, e, a, rt, p, d or x for none)
  • parameter 2 = light or dark

Usage

  • For the Warrior light color, needed as a background color:
{{color|w|light}}
  • For the Monk dark color, needed as a border color:
{{color|mo|dark}}
  • For usage in a table (to avoid problems with IE and 3-digit color codes):
style="background: {{color|e|light}}"
style="border: {{color|e|dark}}"

Output

default is: #FFF

--w--Color-- --r--Color-- --mo--Color-- --n--Color-- --me--Color-- --e--Color--
--a--Color-- --rt--Color-- --p--Color-- --d--Color-- --x--Color--