Template:Colour style/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
! style="text-align: center; width:10em" | Secondary | ! style="text-align: center; width:10em" | Secondary | ||
! style="text-align: center; width:10em" | Tertiary | ! style="text-align: center; width:10em" | Tertiary | ||
|- | |- | ||
| style="text-align: center; width:10em" | '''''officer''''' | | style="text-align: center; width:10em" | '''''officer''''' | ||
Line 26: | Line 25: | ||
| style="text-align: center; background-color: {{Roleclass colour|officer|2}};" | '''{{Roleclass colour|officer|2}}''' | | style="text-align: center; background-color: {{Roleclass colour|officer|2}};" | '''{{Roleclass colour|officer|2}}''' | ||
| style="text-align: center; background-color: {{Roleclass colour|officer|3}};" | '''{{Roleclass colour|officer|3}}''' | | style="text-align: center; background-color: {{Roleclass colour|officer|3}};" | '''{{Roleclass colour|officer|3}}''' | ||
|- | |- | ||
| style="text-align: center; width:10em" | '''''medical''''' | | style="text-align: center; width:10em" | '''''medical''''' | ||
Line 33: | Line 31: | ||
| style="text-align: center; background-color: {{Roleclass colour|medical|2}};" | '''{{Roleclass colour|medical|2}}''' | | style="text-align: center; background-color: {{Roleclass colour|medical|2}};" | '''{{Roleclass colour|medical|2}}''' | ||
| style="text-align: center; background-color: {{Roleclass colour|medical|3}};" | '''{{Roleclass colour|medical|3}}''' | | style="text-align: center; background-color: {{Roleclass colour|medical|3}};" | '''{{Roleclass colour|medical|3}}''' | ||
|- | |- | ||
| style="text-align: center; width:10em" | '''''technical''''' | | style="text-align: center; width:10em" | '''''technical''''' | ||
Line 40: | Line 37: | ||
| style="text-align: center; background-color: {{Roleclass colour|technical|2}};" | '''{{Roleclass colour|technical|2}}''' | | style="text-align: center; background-color: {{Roleclass colour|technical|2}};" | '''{{Roleclass colour|technical|2}}''' | ||
| style="text-align: center; background-color: {{Roleclass colour|technical|3}};" | '''{{Roleclass colour|technical|3}}''' | | style="text-align: center; background-color: {{Roleclass colour|technical|3}};" | '''{{Roleclass colour|technical|3}}''' | ||
|- | |- | ||
| style="text-align: center; width:10em" | '''''deck''''' | | style="text-align: center; width:10em" | '''''deck''''' | ||
Line 47: | Line 43: | ||
| style="text-align: center; background-color: {{Roleclass colour|deck|2}};" | '''{{Roleclass colour|deck|2}}''' | | style="text-align: center; background-color: {{Roleclass colour|deck|2}};" | '''{{Roleclass colour|deck|2}}''' | ||
| style="text-align: center; background-color: {{Roleclass colour|deck|3}};" | '''{{Roleclass colour|deck|3}}''' | | style="text-align: center; background-color: {{Roleclass colour|deck|3}};" | '''{{Roleclass colour|deck|3}}''' | ||
|- | |- | ||
| style="text-align: center; width:10em" | '''''victuals''''' | | style="text-align: center; width:10em" | '''''victuals''''' | ||
Line 54: | Line 49: | ||
| style="text-align: center; background-color: {{Roleclass colour|victuals|2}};" | '''{{Roleclass colour|victuals|2}}''' | | style="text-align: center; background-color: {{Roleclass colour|victuals|2}};" | '''{{Roleclass colour|victuals|2}}''' | ||
| style="text-align: center; background-color: {{Roleclass colour|victuals|3}};" | '''{{Roleclass colour|victuals|3}}''' | | style="text-align: center; background-color: {{Roleclass colour|victuals|3}};" | '''{{Roleclass colour|victuals|3}}''' | ||
|- | |- | ||
| style="text-align: center; width:10em" | '''''first''''' | | style="text-align: center; width:10em" | '''''first''''' | ||
Line 61: | Line 55: | ||
| style="text-align: center; background-color: {{Roleclass colour|first|2}};" | '''{{Roleclass colour|first|2}}''' | | style="text-align: center; background-color: {{Roleclass colour|first|2}};" | '''{{Roleclass colour|first|2}}''' | ||
| style="text-align: center; background-color: {{Roleclass colour|first|3}};" | '''{{Roleclass colour|first|3}}''' | | style="text-align: center; background-color: {{Roleclass colour|first|3}};" | '''{{Roleclass colour|first|3}}''' | ||
|- | |- | ||
| style="text-align: center; width:10em" | '''''second''''' | | style="text-align: center; width:10em" | '''''second''''' | ||
Line 68: | Line 61: | ||
| style="text-align: center; background-color: {{Roleclass colour|second|2}};" | '''{{Roleclass colour|second|2}}''' | | style="text-align: center; background-color: {{Roleclass colour|second|2}};" | '''{{Roleclass colour|second|2}}''' | ||
| style="text-align: center; background-color: {{Roleclass colour|second|3}};" | '''{{Roleclass colour|second|3}}''' | | style="text-align: center; background-color: {{Roleclass colour|second|3}};" | '''{{Roleclass colour|second|3}}''' | ||
|- | |- | ||
| style="text-align: center; width:10em" | '''''steerage''''' | | style="text-align: center; width:10em" | '''''steerage''''' | ||
Line 75: | Line 67: | ||
| style="text-align: center; background-color: {{Roleclass colour|steerage|2}};" | '''{{Roleclass colour|steerage|2}}''' | | style="text-align: center; background-color: {{Roleclass colour|steerage|2}};" | '''{{Roleclass colour|steerage|2}}''' | ||
| style="text-align: center; background-color: {{Roleclass colour|steerage|3}};" | '''{{Roleclass colour|steerage|3}}''' | | style="text-align: center; background-color: {{Roleclass colour|steerage|3}};" | '''{{Roleclass colour|steerage|3}}''' | ||
|} | |} | ||
Revision as of 10:53, 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