Template:Colour style: Difference between revisions

From 'City of Adelaide' History and Genealogy Site
Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} <!-- Categories go at the bottom of this page. --> This template is for use with {{tl|Infobox individual biography/style}}. It should not be used d...")
 
No edit summary
 
(46 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{#switch:{{{1|}}}
<!-- Categories go at the bottom of this page. -->
| officer  = {{#switch:{{{2}}} |1=&#35;5CB8E6  |2=&#35;85D6FF |3=&#35;A3E0FF }}
 
| medical  = {{#switch:{{{2}}} |1=&#35;FF2400 |2=&#35;FF664D |3=&#35;FF9280 }}
This template is for use with {{tl|Infobox individual biography/style}}. It should not be used directly.
| technical = {{#switch:{{{2}}} |1=&#35;A378CF |2=&#35;B585E6 |3=&#35;C49DEB }}
 
  | deck      = {{#switch:{{{2}}} |1=Silver |2=LightGray |3=Gainsboro }}
== Usage ==
| victuals  = {{#switch:{{{2}}} |1=Gold |2=&#35;FFE34D |3=&#35;FFEB80 }}
* {{tld|Roleclass color|roleclass|1}} for the primary color
| first    = {{#switch:{{{2}}} |1=&#35;C96464 |2=&#35;D17A7A |3=&#35;E0A7A7 }}
* {{tld|Roleclass color|roleclass|2}} for the secondary color
| second    = {{#switch:{{{2}}} |1=&#35;5983D6 |2=&#35;7094DB |3=&#35;ADC2EB }}
* {{tld|Roleclass color|roleclass|3}} for the tertiary color (if different from the primary)
  | steerage = {{#switch:{{{2}}} |1=&#35;81A981 |2=&#35;9AC39A |3=&#35;BCD7BC }}
 
  | voyage    = {{#switch:{{{2}}} |1=&#35;9EB0C8 |2=&#35;B8CAE1 |3=&#35;C8D6E8 }}
Note, it is important that the primary and secondary color have sufficient contrast to be readable when used as the background and font color. This is especially important for readers with visual impairments. You can check the contrast using {{tl|color contrast ratio}}. A ratio of greater than 4.5 or less than 0.22 is sufficient, but the larger or smaller the better.
| family    = {{#switch:{{{2}}} |1=&#35;949470 |2=&#35;A9A98D |3=&#35;BFBFA9 }}
 
|#default  = {{#switch:{{{2}}} |1=&#35;94704D |2=&#35;B29980 |3=&#35;D1C2B2 |type=unknown }}
 
}}<noinclude>
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
{{documentation}}[[Category:Style templates]]
<!-- Categories go here. -->
</noinclude>
[[Category:Templates]]
}}</includeonly>

Latest revision as of 12:37, 4 October 2014

{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}