Difference between revisions of "Template: Work color"

From A Wiki of Ice and Fire
Jump to: navigation, search
(Template defining standard colors for the separate works in the ASoIaF world.)
 
m (cat)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#switch: {{{book}}}
+
{{#switch: {{{1}}}
 
| A Game of Thrones
 
| A Game of Thrones
 
| AGoT = #027eb1
 
| AGoT = #027eb1
Line 12: Line 12:
 
}}<noinclude>
 
}}<noinclude>
  
 +
==Usage==
 
Template defining standard colors for the separate works in the ASoIaF world.
 
Template defining standard colors for the separate works in the ASoIaF world.
  
Line 20: Line 21:
 
Example: <tt><nowiki><span style="background-color:{{work color|AGoT}}">A Game of Thrones</span></nowiki></tt> &rarr; <span style="background-color:{{work color|AGoT}}">A Game of Thrones</span>
 
Example: <tt><nowiki><span style="background-color:{{work color|AGoT}}">A Game of Thrones</span></nowiki></tt> &rarr; <span style="background-color:{{work color|AGoT}}">A Game of Thrones</span>
  
Current ASoIaF book colors are picked from the current covers as seen in [[:en:File:WikiFullASoIaFSizeEdit.JPG]].
+
Current ASoIaF book colors are picked from the current covers as seen in [[:en:File:WikiFullASoIaFSizeEdit.JPG]]. Should probably me modified to be lighter, for better contrast with black font.
 
+
[[Category:Templates]]</noinclude>
</noinclude>
 

Latest revision as of 02:56, 14 September 2011


Usage

Template defining standard colors for the separate works in the ASoIaF world.

Colors are returned as hex triplets.

Usage: {{Work color | name of work}}

Example: <span style="background-color:{{work color|AGoT}}">A Game of Thrones</span>A Game of Thrones

Current ASoIaF book colors are picked from the current covers as seen in en:File:WikiFullASoIaFSizeEdit.JPG. Should probably me modified to be lighter, for better contrast with black font.