Template:PartyColour
From Lolitics Wiki
Jump to navigationJump to searchA parser that takes a party name and returns the fainter party colour for use in table cells, etc.
Template Usage[edit source]
PartyColour takes a single parameter, a party name, and returns the html colour code for that party's colour.
For instance,
{{PartColour|Labour}}
gives you
#FD9494
This is pretty useless on its own, but handy for setting backgrounds on table cells:
{| class="paddedcell bumpytable" |- style="background:{{PartyColour|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