Template:Colour style/doc: Difference between revisions

From 'City of Adelaide' History and Genealogy Site
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
<!-- Categories go at the bottom of this page. -->
<!-- Categories go at the bottom of this page. -->


This template is for use with {{tl|Infobox individual style}}.  It should not be used directly.
This template is for use with {{tl|Individual infobox style}}.  It should not be used directly.


== Usage ==
== Usage ==

Revision as of 10:40, 28 September 2014

{{#invoke:Message box|mbox}}

This template is for use with {{Individual infobox style}}. It should not be used directly.

Usage

  • {{Roleclass colour|roleclass|1}} for the primary colour
  • {{Roleclass colour|roleclass|2}} for the secondary colour
  • {{Roleclass colour|roleclass|3}} for the tertiary colour (if different from the primary)

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 {{color contrast ratio}}. A ratio of greater than 4.5 or less than 0.22 is sufficient, but the larger or smaller the better.


Test table

roleclass Categories Primary Secondary Tertiary Comment
officer CaptainsFirst MatesSecond MatesThird Mates style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour
medical Surgeons style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour
technical CarpentersBoatswainsSailmakers style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour
deck SeamenDeckhandsMidshipmenApprentices style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour
victuals CooksBakersStewardsBoysStock-KeepersButchersStorekeepers style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour
first First Class Passengers style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour
second Second Class Passengers style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour
steerage Steerage Class Passengers style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour style="text-align: center; background-color: Template:Roleclass colour;" | Template:Roleclass colour