Template:Colour style/doc

From 'City of Adelaide' History and Genealogy Site
Jump to navigation Jump to search

{{#invoke:Message box|mbox}}

This template is for use with {{Infobox individual biography/style}}. It should not be used directly.

Usage

  • {{Roleclass color|roleclass|1}} for the primary color
  • {{Roleclass color|roleclass|2}} for the secondary color
  • {{Roleclass color|roleclass|3}} for the tertiary color (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

Role/Class Categories Primary Secondary Tertiary Comment
officers CaptainsFirst MatesSecond MatesThird Mates tng_person_id
medical Surgeons tng_person_id
technical CarpentersBoatswainsSailmakers tng_person_id
deck SeamenDeckhandsMidshipmenApprentices tng_person_id
victuals CooksBakersStewardsBoys

Stock-KeepersButchersStorekeepers

tng_person_id
passenger First Class PassengersSecond Class PassengersSteerage Class Passengers tng_person_id