Template:PartyColourH
From Lolitics Wiki
Jump to navigationJump to searchA parser that takes a party name and returns the brighter party colour for use in table headers.
Template Usage[edit source]
PartyColourH takes a single parameter, a party name, and returns the html colour code for that party's colour.
For instance,
{{PartColourH|Labour}}
gives you
#FD4747
This is pretty useless on its own, but handy for setting backgrounds on table cells:
{| class="paddedcell bumpytable" |- style="background:{{PartyColourH|Labour}};" ! Labour |}
Labour |
---|
Parameter values must be taken from this arbitrary list with absolute precision, otherwise the parser will return the colour code for grey.
- Labour
- Conservative
- Liberal Democrat
- Green
- Ukip
- SNP
- Plaid Cymru
- Sinn Fein
- DUP
- Liberal
- SDP