Template:Canadian party colour/doc

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 WikiProject Political parties and politicians in Canada/list of parties.

Usage

 * to get just the hex code (for use inside other templates)
 * to get bgcolor="colour"
 * to get the colour without the leading #
 * to get a wikilink to the party's article
 * to get a shortened wikilink to party's article (for use in tables)
 * to get an inline text version of the party colour followed by a wikilink to the party's article
 * to get an inline text version of the party colour followed by a shortened wikilink to the party's article
 * to start a new row with party colour as the first cell
 * 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
 * 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
Will produce:

TemplateData
{ "description": "This template produces the name and standardized colour for Canadian political parties.", "params": { "1": {     "label": "Jurisdiction", "description": "Which province, territory, city, or the federal level", "type": "line", "required": true, "suggestedvalues": [ "CA", "AB", "BC", "MB", "NS", "NL", "NT", "NU", "ON", "PE", "QC", "SK", "YT", "EDM", "MTL", "VAN" ]   },    "2": {      "label": "Party", "description": "Name of the political party, based on the list at Wikipedia:WikiProject Political parties and politicians in Canada/list of parties", "type": "line", "required": true },   "3": {      "label": "Format", "description": "How the content should be displayed", "type": "line", "suggestedvalues": [ "background", "nohash", "name", "colour&name", "row", "row-name" ]   },    "4": {      "label": "Short name", "description": "Whether to use a form of the name with 15 or fewer characters", "type": "line", "suggestedvalues": [ "short" ]   }  } }