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.)
 
(fix)
Line 1: Line 1:
{{#switch: {{{book}}}
+
{{#switch: {{{1}}}
 
| A Game of Thrones
 
| A Game of Thrones
 
| AGoT = #027eb1
 
| AGoT = #027eb1
Line 20: Line 20:
 
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.
  
 
</noinclude>
 
</noinclude>

Revision as of 23:02, 18 June 2011


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.