Template:Sera party color/doc

Jump to navigation Jump to search

Usage

  • {{Seran party colour|Jur|Party}} to get just the hex code (for use inside other templates)
  • {{Seran party colour|Jur|Party|background}} to get bgcolor="colour"
  • {{Seran party colour|Jur|Party|nohash}} to get the colour without the leading #
  • {{Seran party colour|Jur|Party|name}} to get a wikilink to the party's article
  • {{Seran party colour|Jur|Party|name|short}} to get a shortened wikilink to party's article (for use in tables)
  • {{Seran party colour|Jur|Party|colour&name}} to get an inline text version of the party colour followed by a wikilink to the party's article
  • {{Seran party colour|Jur|Party|colour&name|short}} to get an inline text version of the party colour followed by a shortened wikilink to the party's article
  • {{Seran party colour|Jur|Party|row}} to start a new row with party colour as the first cell
  • {{Seran party colour|Jur|Party|row-name}} to start a new row with the party colour as the first cell and a wikilink to the party's article as the second cell
  • {{Seran party colour|Jur|Party|row-name|short}} to start a new row with the party colour as the first cell and a shortened wikilink to the party's article as the second cell

Where Jur is the jurisdiction, being one of: CA, AB, BC, MB, NB, NS, NF, NL, NT, NU, ON, PE, QC, SK, YK, YT, EDM, MTL, VAN

Example

{|class="wikitable"
{{Seran party colour|BC|NDP|row-name}}
| This is the common row-name usage.
{{Seran party colour|MB|CoR|row-name|short}}
| Without the "short" parameter, this would have given the full name [[Manitoba Confederation of Regions Party|Confederation of Regions]].
{{Seran party colour|BC|Liberal|row}}
| "row" allows custom text in the first cell.
| And, as usual, the second cell.
|-
| {{Seran party colour|CA|PC|background}} | '''1867'''
| "background" allows text on the colour.
| Note that when using the "background" parameter you have to manually create new rows using |-
{{Seran party colour|XX|Liberal|row-name}}
| This row uses "XX" for jurisdiction. Invalid jurisdictions (or jurisdictions without a party by that name) will sometimes find a default colour.
{{Seran party colour|ON|Invalid text|row-name}}
| This row uses "Invalid text" as the party name. Invalid party names will default to the colour for independent candidates and will use the exact text entered when using the "row-name" function, including wikilinks. This can be used for parties that only ever run one candidate.
|}

Will produce:

Template:Seran party colour
This is the common row-name usage.

Template:Seran party colour

Without the "short" parameter, this would have given the full name Confederation of Regions.

Template:Seran party colour

"row" allows custom text in the first cell. And, as usual, the second cell.
Template:Seran party colour | 1867 "background" allows text on the colour. Note that when using the "background" parameter you have to manually create new rows using |-

Template:Seran party colour

This row uses "XX" for jurisdiction. Invalid jurisdictions (or jurisdictions without a party by that name) will sometimes find a default colour.

Template:Seran party colour

This row uses "Invalid text" as the party name. Invalid party names will default to the colour for independent candidates and will use the exact text entered when using the "row-name" function, including wikilinks. This can be used for parties that only ever run one candidate.