Difference between revisions of "Template:Canadian party colour/name"

From blackwiki
Jump to navigation Jump to search
imported>Arctic.gnome
(never ran federally)
imported>Arctic.gnome
(PSG|Progressive Senate Group)
Line 14: Line 14:
 
|Canada Party=[[Canada Party]]
 
|Canada Party=[[Canada Party]]
 
|Canadian Action=[[Canadian Action Party|Canadian Action]]
 
|Canadian Action=[[Canadian Action Party|Canadian Action]]
−
|Canadian Senators Group=[[Canadian Senators Group|{{#if:{{{short|}}}|Cdn. Senators|Canadian Senators Group}}]]
 
 
|Christian Heritage=[[Christian Heritage Party of Canada|Christian {{#if:{{{short|}}}|Her.|Heritage}}]]
 
|Christian Heritage=[[Christian Heritage Party of Canada|Christian {{#if:{{{short|}}}|Her.|Heritage}}]]
 
|CCF=[[Co-operative Commonwealth Federation|{{#if:{{{short|}}}|CCF|Co-operative Commonwealth}}]]
 
|CCF=[[Co-operative Commonwealth Federation|{{#if:{{{short|}}}|CCF|Co-operative Commonwealth}}]]
Line 29: Line 28:
 
|Groupe parlementaire québécois|GPQ=[[Groupe parlementaire québécois|{{#if:{{{short|}}}|Groupe parl qué|Groupe parlementaire québécois}}]]
 
|Groupe parlementaire québécois|GPQ=[[Groupe parlementaire québécois|{{#if:{{{short|}}}|Groupe parl qué|Groupe parlementaire québécois}}]]
 
|Independent Labour=[[Labour candidates and parties in Canada|{{#if:{{{short|}}}|Ind.|Independent}} Labour]]
 
|Independent Labour=[[Labour candidates and parties in Canada|{{#if:{{{short|}}}|Ind.|Independent}} Labour]]
−
|Independent Senators Group=[[Independent Senators Group|{{#if:{{{short|}}}|Ind. Senators|Independent Senators Group}}]]
 
 
|Labour=[[Labour Party of Canada|Labour]]
 
|Labour=[[Labour Party of Canada|Labour]]
 
|Laurier Liberals=[[Laurier Liberals|{{#if:{{{short|}}}|Laurier Lib's|Opposition (Laurier Liberals)}}]]
 
|Laurier Liberals=[[Laurier Liberals|{{#if:{{{short|}}}|Laurier Lib's|Opposition (Laurier Liberals)}}]]
Line 35: Line 33:
 
|Liberal-Conservative=[[Liberal-Conservative Party|{{#if:{{{short|}}}|Lib-Con|Liberal–Conservative}}]]
 
|Liberal-Conservative=[[Liberal-Conservative Party|{{#if:{{{short|}}}|Lib-Con|Liberal–Conservative}}]]
 
|Liberal-Unionist=[[Liberal–Unionist|{{#if:{{{short|}}}|LiberalUnionist|Government (Liberal–Unionist)}}]]
 
|Liberal-Unionist=[[Liberal–Unionist|{{#if:{{{short|}}}|LiberalUnionist|Government (Liberal–Unionist)}}]]
−
|Senate Liberal=[[Senate Liberal Caucus|{{#if:{{{short|}}}|Senate Liberal|Senate Liberal Caucus}}]]
 
 
|Libertarian=[[Libertarian Party of Canada|Libertarian]]
 
|Libertarian=[[Libertarian Party of Canada|Libertarian]]
 
|Marijuana=[[Marijuana Party of Canada|Marijuana]]
 
|Marijuana=[[Marijuana Party of Canada|Marijuana]]
Line 54: Line 51:
 
|Progressive Canadian=[[Progressive Canadian Party|Progressive {{#if:{{{short|}}}|Cdn|Canadian}}]]
 
|Progressive Canadian=[[Progressive Canadian Party|Progressive {{#if:{{{short|}}}|Cdn|Canadian}}]]
 
|PC|Progressive Conservative|Progressive Conservatives=[[Progressive Conservative Party of Canada|{{#if:{{{short|}}}|PC|Progressive Conservative}}]]
 
|PC|Progressive Conservative|Progressive Conservatives=[[Progressive Conservative Party of Canada|{{#if:{{{short|}}}|PC|Progressive Conservative}}]]
−
|Senate PC={{#if:{{{short|}}}|Senate [[Progressive Conservative Party of Canada|PC]]|Senate [[Progressive Conservative Party of Canada|Progressive Conservative]] Caucus}}
 
 
|Ralliement créditiste=[[Ralliement créditiste|{{#if:{{{short|}}}|Ral. créditiste|Ralliement créditiste}}]]
 
|Ralliement créditiste=[[Ralliement créditiste|{{#if:{{{short|}}}|Ral. créditiste|Ralliement créditiste}}]]
 
|Reform=[[Reform Party of Canada|Reform]]
 
|Reform=[[Reform Party of Canada|Reform]]
Line 70: Line 66:
 
|ON United Farmers|United Farmers of Ontario=[[United Farmers of Ontario|{{#if:{{{short|}}}|UFO|United Farmers of Ontario}}]]
 
|ON United Farmers|United Farmers of Ontario=[[United Farmers of Ontario|{{#if:{{{short|}}}|UFO|United Farmers of Ontario}}]]
 
|Western Block=[[Western Block Party|Western Block]]
 
|Western Block=[[Western Block Party|Western Block]]
−
|WLP=[[Work Less Party|Work Less]]
+
|WLP=[[Work Less Party|Work Less]]<!--
 +
 
 +
SENATE-->
 +
|CSG|Canadian Senators Group|Canadian Senate Group=[[Canadian Senators Group|{{#if:{{{short|}}}|Cdn. Senators|Canadian Senators Group}}]]
 +
|ISG|Independent Senators Group|Independent Senate Group=[[Independent Senators Group|{{#if:{{{short|}}}|Ind. Senators|Independent Senators Group}}]]
 +
|PSG|Progressive Senate Group=[[Progressive Senate Group|{{#if:{{{short|}}}|Prog. Senate|Progressive Senate Group}}]]
 +
|Senate Liberal=[[Senate Liberal Caucus|{{#if:{{{short|}}}|Senate Liberal|Senate Liberal Caucus}}]]
 +
|Senate PC={{#if:{{{short|}}}|Senate [[Progressive Conservative Party of Canada|PC]]|Senate [[Progressive Conservative Party of Canada|Progressive Conservative]] Caucus}}
 
|#default={{Canadian party colour/name/default|{{{2|}}}|short={{{short|}}}}} }}<!--
 
|#default={{Canadian party colour/name/default|{{{2|}}}|short={{{short|}}}}} }}<!--
  

Revision as of 16:00, 15 November 2019

50px Template documentation[view] [edit] [history] [purge]

This template can be used to standardize the colours used to represent Canadian political parties in tables, lists, and templates. Enter the jurisdiction and party name, and this template will produce the hex colour code for that party. In tables, this template can start a new row with one cell containing the colour and the next cell containing a wikilink to the article about that party.

A full list of available party names is at Wikipedia:WikiProject Political parties and politicians in Canada/list of parties.

Usage

  • {{Canadian party colour|Jur.|Party}} to get just the hex code (for use inside other templates)
  • {{Canadian party colour|Jur.|Party|background}} to get bgcolor="colour"
  • {{Canadian party colour|Jur.|Party|nohash}} to get the colour without the leading #
  • {{Canadian party colour|Jur.|Party|name}} to get a wikilink to the party's article
  • {{Canadian party colour|Jur.|Party|name|short}} to get a shortened wikilink to party's article (for use in tables)
  • {{Canadian 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
  • {{Canadian 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
  • {{Canadian party colour|Jur.|Party|row}} to start a new row with party colour as the first cell
  • {{Canadian 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
  • {{Canadian 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"
{{Canadian party colour|BC|NDP|row-name}}
| This is the common row-name usage.
{{Canadian 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]].
{{Canadian party colour|BC|Liberal|row}}
| "row" allows custom text in the first cell.
| And, as usual, the second cell.
|-
| {{Canadian 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 |-
{{Canadian 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.
{{Canadian 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:

New Democratic This is the common row-name usage.
Conf of Regions Without the "short" parameter, this would have given the full name Confederation of Regions.
  "row" allows custom text in the first cell. And, as usual, the second cell.
1867 "background" allows text on the colour. Note that when using the "background" parameter you have to manually create new rows using |-
Liberal This row uses "XX" for jurisdiction. Invalid jurisdictions (or jurisdictions without a party by that name) will sometimes find a default colour.
Invalid text 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.

Replacement of old templates

This template is intended to supersede, and simplify, the existing methods of generating party colours, which use a series of at least 769 different templates (down to 18 as of October 11, 2026):

  1. Template:Canadian politics/party colours and /meta/color templates, including
    1. 453 federal and other province subtemplates (now down to 18)
    2. 34 Alberta subtemplates (now all replaced)
    3. 38 Edmonton subtemplates (now all replaced), and
    4. 8 Montreal subtemplates (now all replaced);
  2. political party election (or "row-name") templates, including
    1. 111 federal subtemplates (now all replaced) and
    2. 23 Ontario subtemplates (now all replaced);
  3. 102 /meta/shortname subtemplates (now all replaced).

fr:Modèle:Infobox Parti politique canadien/couleurs