Changes
Jump to navigation
Jump to search
Template:LNW colour/doc (view source)
Revision as of 12:50, 17 December 2022
, 12:50, 17 December 2022create in order to introduce contrast-compliant background colour option
{{Documentation subpage}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
This template can be used to call the colour of [[London Northwestern Railway]] routes.
In order to call the default colour, the code <code> #{{LNW colour}}</code> is used.
The "background" option is provided for use behind '''white''' text in infoboxes, etc, and is compliant with [[MOS:CONTRAST]] requirements for colour difference (587) and contrast ratio (7.16:1) at both small and large font sizes. Call this colour with the code <code> #{{LNW colour|background}}</code>.
{| class="wikitable"
{{color template doc|#default}}
{{color template doc|background}}
|}
<includeonly>{{Sandbox other||
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:United Kingdom rail transport color templates]]
}}</includeonly>
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
This template can be used to call the colour of [[London Northwestern Railway]] routes.
In order to call the default colour, the code <code> #{{LNW colour}}</code> is used.
The "background" option is provided for use behind '''white''' text in infoboxes, etc, and is compliant with [[MOS:CONTRAST]] requirements for colour difference (587) and contrast ratio (7.16:1) at both small and large font sizes. Call this colour with the code <code> #{{LNW colour|background}}</code>.
{| class="wikitable"
{{color template doc|#default}}
{{color template doc|background}}
|}
<includeonly>{{Sandbox other||
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:United Kingdom rail transport color templates]]
}}</includeonly>