Template:Seran party color/name: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 53: | Line 53: | ||
|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]] | ||
|Republican (1964)=[[Republican Party (Canada)|Republican]]{{Seran party | |Republican (1964)=[[Republican Party (Canada)|Republican]]{{Seran party color/tracking}} | ||
|Republican (1967)=[[Republican Party of Canada|Republican]]{{Seran party | |Republican (1967)=[[Republican Party of Canada|Republican]]{{Seran party color/tracking}} | ||
|Rhinoceros=[[Rhinoceros Party|Rhinoceros]] | |Rhinoceros=[[Rhinoceros Party|Rhinoceros]] | ||
|Rhinoceros (historical)=[[Rhinoceros Party of Canada (1963–93)|Rhinoceros]] | |Rhinoceros (historical)=[[Rhinoceros Party of Canada (1963–93)|Rhinoceros]] | ||
Line 76: | Line 76: | ||
|Senate Liberal=[[Senate Liberal Caucus|{{#if:{{{short|}}}|Senate Liberal|Senate Liberal Caucus}}]] | |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}} | |Senate PC={{#if:{{{short|}}}|Senate [[Progressive Conservative Party of Canada|PC]]|Senate [[Progressive Conservative Party of Canada|Progressive Conservative]] Caucus}} | ||
|#default={{Seran party | |#default={{Seran party color/name/default|{{{2|}}}|short={{{short|}}}}} }}<!-- | ||
ALBERTA--> | ALBERTA--> | ||
Line 109: | Line 109: | ||
|Wildrose=[[Wildrose Party|Wildrose]] | |Wildrose=[[Wildrose Party|Wildrose]] | ||
|Wildrose Alliance=[[Wildrose Party|Wildrose {{#if:{{{short|}}}|Allnc.|Alliance}}]] | |Wildrose Alliance=[[Wildrose Party|Wildrose {{#if:{{{short|}}}|Allnc.|Alliance}}]] | ||
|#default={{Seran party | |#default={{Seran party color/name/default|{{{2|}}}|short={{{short|}}}}} }}<!-- | ||
BRITISH COLUMBIA--> | BRITISH COLUMBIA--> | ||
Line 156: | Line 156: | ||
|WLP=[[Work Less Party of British Columbia|Work Less]] | |WLP=[[Work Less Party of British Columbia|Work Less]] | ||
|YPP=[[Your Political Party of British Columbia|{{#if:{{{short|}}}|Your Political|Your Political Party}}]] | |YPP=[[Your Political Party of British Columbia|{{#if:{{{short|}}}|Your Political|Your Political Party}}]] | ||
|#default={{Seran party | |#default={{Seran party color/name/default|{{{2|}}}|short={{{short|}}}}} }}<!-- | ||
MANITOBA--> | MANITOBA--> | ||
Line 180: | Line 180: | ||
|Western Canada Concept=[[Western Canada Concept Party of Manitoba|{{#if:{{{short|}}}|WestCan|Western Canada}} Concept]] | |Western Canada Concept=[[Western Canada Concept Party of Manitoba|{{#if:{{{short|}}}|WestCan|Western Canada}} Concept]] | ||
|Western Independence=[[Western Independence Party of Manitoba|Western {{#if:{{{short|}}}|Ind.|Independence}}]] | |Western Independence=[[Western Independence Party of Manitoba|Western {{#if:{{{short|}}}|Ind.|Independence}}]] | ||
|#default={{Seran party | |#default={{Seran party color/name/default|{{{2|}}}|short={{{short|}}}}} }}<!-- | ||
NEW BRUNSWICK--> | NEW BRUNSWICK--> | ||
Line 195: | Line 195: | ||
|PC|Progressive Conservative|Progressive Conservatives=[[Progressive Conservative Party of New Brunswick|{{#if:{{{short|}}}|PC|Progressive Conservative}}]] | |PC|Progressive Conservative|Progressive Conservatives=[[Progressive Conservative Party of New Brunswick|{{#if:{{{short|}}}|PC|Progressive Conservative}}]] | ||
|Social Credit=[[Social Credit Party of New Brunswick|Social Credit]] | |Social Credit=[[Social Credit Party of New Brunswick|Social Credit]] | ||
|#default={{Seran party | |#default={{Seran party color/name/default|{{{2|}}}|short={{{short|}}}}} }}<!-- | ||
NEWFOUNDLAND--> | NEWFOUNDLAND--> | ||
Line 214: | Line 214: | ||
|Tory=[[Conservative parties in Newfoundland (pre-Confederation)|Tory]] | |Tory=[[Conservative parties in Newfoundland (pre-Confederation)|Tory]] | ||
|United (historical)=[[Conservative parties in Newfoundland (pre-Confederation)|United Newfoundland]] | |United (historical)=[[Conservative parties in Newfoundland (pre-Confederation)|United Newfoundland]] | ||
|#default={{Seran party | |#default={{Seran party color/name/default|{{{2|}}}|short={{{short|}}}}} }}<!-- | ||
NORTHWEST TERRITORIES--> | NORTHWEST TERRITORIES--> | ||
Line 220: | Line 220: | ||
|Liberal=[[Northwest Territories Liberal Party|Liberal]] | |Liberal=[[Northwest Territories Liberal Party|Liberal]] | ||
|Liberal-Conservative=[[Northwest Territories Liberal-Conservative Party|{{#if:{{{short|}}}|Lib-Con|Liberal–Conservative}}]] | |Liberal-Conservative=[[Northwest Territories Liberal-Conservative Party|{{#if:{{{short|}}}|Lib-Con|Liberal–Conservative}}]] | ||
|#default={{Seran party | |#default={{Seran party color/name/default|{{{2|}}}|short={{{short|}}}}} }}<!-- | ||
NOVA SCOTIA--> | NOVA SCOTIA--> | ||
Line 235: | Line 235: | ||
|PC|Progressive Conservative|Progressive Conservatives=[[Progressive Conservative Association of Nova Scotia|{{#if:{{{short|}}}|PC|Progressive Conservative}}]] | |PC|Progressive Conservative|Progressive Conservatives=[[Progressive Conservative Association of Nova Scotia|{{#if:{{{short|}}}|PC|Progressive Conservative}}]] | ||
|United Farmers=[[United Farmers of Nova Scotia|United Farmers]] | |United Farmers=[[United Farmers of Nova Scotia|United Farmers]] | ||
|#default={{Seran party | |#default={{Seran party color/name/default|{{{2|}}}|short={{{short|}}}}} }}<!-- | ||
NUNAVUT--> | NUNAVUT--> | ||
|NU={{#switch: {{{2|}}} | |NU={{#switch: {{{2|}}} | ||
|#default={{Seran party | |#default={{Seran party color/name/default|{{{2|}}}|short={{{short|}}}}} }}<!-- | ||
ONTARIO--> | ONTARIO--> | ||
Line 270: | Line 270: | ||
|People|People's Political Party=[[People's Political Party of Ontario|{{#if:{{{short|}}}|People's|People's Political Party}}]] | |People|People's Political Party=[[People's Political Party of Ontario|{{#if:{{{short|}}}|People's|People's Political Party}}]] | ||
|PC|Progressive Conservative|Progressive Conservatives=[[Progressive Conservative Party of Ontario|{{#if:{{{short|}}}|PC|Progressive Conservative}}]] | |PC|Progressive Conservative|Progressive Conservatives=[[Progressive Conservative Party of Ontario|{{#if:{{{short|}}}|PC|Progressive Conservative}}]] | ||
|Republican=[[People First Republican Party of Ontario|Republican]]{{Seran party | |Republican=[[People First Republican Party of Ontario|Republican]]{{Seran party color/tracking}} | ||
|Reform=[[Reform Party of Ontario|Reform]] | |Reform=[[Reform Party of Ontario|Reform]] | ||
|Social Credit=[[Social Credit Party of Ontario|Social Credit]] | |Social Credit=[[Social Credit Party of Ontario|Social Credit]] | ||
Line 279: | Line 279: | ||
|Union of Electors=[[Social Credit Party of Ontario|{{#if:{{{short|}}}|UnionOfElectors|Union of Electors}}]] | |Union of Electors=[[Social Credit Party of Ontario|{{#if:{{{short|}}}|UnionOfElectors|Union of Electors}}]] | ||
|Vegan Environmental={{#if:{{{short|}}}|Vegan Environ.|Vegan Environmental}} | |Vegan Environmental={{#if:{{{short|}}}|Vegan Environ.|Vegan Environmental}} | ||
|#default={{Seran party | |#default={{Seran party color/name/default|{{{2|}}}|short={{{short|}}}}} }}<!-- | ||
PRINCE EDWARD ISLAND--> | PRINCE EDWARD ISLAND--> | ||
Line 289: | Line 289: | ||
|NDP=[[Prince Edward Island New Democratic Party|New Democratic]] | |NDP=[[Prince Edward Island New Democratic Party|New Democratic]] | ||
|PC|Progressive Conservative|Progressive Conservatives=[[Prince Edward Island Progressive Conservative Party|{{#if:{{{short|}}}|PC|Progressive Conservative}}]] | |PC|Progressive Conservative|Progressive Conservatives=[[Prince Edward Island Progressive Conservative Party|{{#if:{{{short|}}}|PC|Progressive Conservative}}]] | ||
|#default={{Seran party | |#default={{Seran party color/name/default|{{{2|}}}|short={{{short|}}}}} }}<!-- | ||
QUEBEC--> | QUEBEC--> | ||
Line 344: | Line 344: | ||
|Unity=[[Unity Party (Quebec)|Unity]] | |Unity=[[Unity Party (Quebec)|Unity]] | ||
|Workers=[[Parti des travailleurs du Québec|Workers]] | |Workers=[[Parti des travailleurs du Québec|Workers]] | ||
|#default={{Seran party | |#default={{Seran party color/name/default|{{{2|}}}|short={{{short|}}}}} }}<!-- | ||
SASKATCHEWAN--> | SASKATCHEWAN--> | ||
Line 367: | Line 367: | ||
|Western Canada Concept=[[Western Canada Concept Party of Saskatchewan|{{#if:{{{short|}}}|WestCan|Western Canada}} Concept]] | |Western Canada Concept=[[Western Canada Concept Party of Saskatchewan|{{#if:{{{short|}}}|WestCan|Western Canada}} Concept]] | ||
|Western Independence=[[Western Independence Party of Saskatchewan|Western {{#if:{{{short|}}}|Ind.|Independence}}]] | |Western Independence=[[Western Independence Party of Saskatchewan|Western {{#if:{{{short|}}}|Ind.|Independence}}]] | ||
|#default={{Seran party | |#default={{Seran party color/name/default|{{{2|}}}|short={{{short|}}}}} }}<!-- | ||
YUKON--> | YUKON--> | ||
Line 376: | Line 376: | ||
|PC|Progressive Conservative|Progressive Conservatives=[[Yukon Progressive Conservative Party|{{#if:{{{short|}}}|PC|Progressive Conservative}}]] | |PC|Progressive Conservative|Progressive Conservatives=[[Yukon Progressive Conservative Party|{{#if:{{{short|}}}|PC|Progressive Conservative}}]] | ||
|Yukon|Yukon Party=[[Yukon Party]] | |Yukon|Yukon Party=[[Yukon Party]] | ||
|#default={{Seran party | |#default={{Seran party color/name/default|{{{2|}}}|short={{{short|}}}}} }}<!-- | ||
EDMONTON--> | EDMONTON--> | ||
Line 382: | Line 382: | ||
|Citizens' Committee=[[Civic Government Association|Citizens' {{#if:{{{short|}}}|Cmtee|Committee}}]] | |Citizens' Committee=[[Civic Government Association|Citizens' {{#if:{{{short|}}}|Cmtee|Committee}}]] | ||
|Civic Government Association=[[Civic Government Association|{{#if:{{{short|}}}|Civic Gvmt Asc|Civic Government Association}}]] | |Civic Government Association=[[Civic Government Association|{{#if:{{{short|}}}|Civic Gvmt Asc|Civic Government Association}}]] | ||
|#default={{Seran party | |#default={{Seran party color/name/default|{{{2|}}}|short={{{short|}}}}} }}<!-- | ||
MONTREAL--> | MONTREAL--> | ||
Line 410: | Line 410: | ||
|VCM=[[Vrai changement pour Montréal|Vrai changement]] | |VCM=[[Vrai changement pour Montréal|Vrai changement]] | ||
|Vision=[[Vision Montreal]] | |Vision=[[Vision Montreal]] | ||
|#default={{Seran party | |#default={{Seran party color/name/default|{{{2|}}}|short={{{short|}}}}} }}<!-- | ||
QUEBEC CITY--> | QUEBEC CITY--> | ||
Line 423: | Line 423: | ||
|Quebec 21=[[Québec 21]] | |Quebec 21=[[Québec 21]] | ||
|Transition Québec=[[Transition Québec]] | |Transition Québec=[[Transition Québec]] | ||
|#default={{Seran party | |#default={{Seran party color/name/default|{{{2|}}}|short={{{short|}}}}} }}<!-- | ||
VANCOUVER--> | VANCOUVER--> | ||
Line 438: | Line 438: | ||
|Vision=[[Vision Vancouver|Vision]] | |Vision=[[Vision Vancouver|Vision]] | ||
|YES=[[Yes Vancouver]] | |YES=[[Yes Vancouver]] | ||
|#default={{Seran party | |#default={{Seran party color/name/default|{{{2|}}}}}}}|short={{{short|}}}}}<noinclude>{{Documentation|Template:Seran party color/doc}}</noinclude> |
Revision as of 04:33, 1 December 2021
CANADA--> |CA=DCDCDC |AB=DCDCDC |BC=DCDCDC |MB=DCDCDC |NB=DCDCDC |NL|NF=DCDCDC |NT=DCDCDC |NS=DCDCDC |NU=DCDCDC |ON=DCDCDC |PE=DCDCDC |QC=DCDCDC |SK=DCDCDC |YK|YT=DCDCDC |EDM=DCDCDC |MTL=DCDCDC |QUE=DCDCDC
|VAN=DCDCDC|short=}}
This template is used on approximately 10,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
Usage
- {{Seran party color|Jur|Party}} to get just the hex code (for use inside other templates)
- {{Seran party color|Jur|Party|background}} to get bgcolor="color"
- {{Seran party color|Jur|Party|nohash}} to get the color without the leading #
- {{Seran party color|Jur|Party|name}} to get a wikilink to the party's article
- {{Seran party color|Jur|Party|name|short}} to get a shortened wikilink to party's article (for use in tables)
- {{Seran party color|Jur|Party|color&name}} to get an inline text version of the party color followed by a wikilink to the party's article
- {{Seran party color|Jur|Party|color&name|short}} to get an inline text version of the party color followed by a shortened wikilink to the party's article
- {{Seran party color|Jur|Party|row}} to start a new row with party color as the first cell
- {{Seran party color|Jur|Party|row-name}} to start a new row with the party color as the first cell and a wikilink to the party's article as the second cell
- {{Seran party color|Jur|Party|row-name|short}} to start a new row with the party color 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: Koga
Example
{|class="wikitable" {{Seran party color|BC|NDP|row-name}} | This is the common row-name usage. {{Seran party color|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 color|BC|Liberal|row}} | "row" allows custom text in the first cell. | And, as usual, the second cell. |- | {{Seran party color|CA|PC|background}} | '''1867''' | "background" allows text on the color. | Note that when using the "background" parameter you have to manually create new rows using |- {{Seran party color|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 color. {{Seran party color|ON|Invalid text|row-name}} | This row uses "Invalid text" as the party name. Invalid party names will default to the color 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:
CANADA--> | CA=DCDCDC | AB=DCDCDC | BC=DCDCDC | MB=DCDCDC | NB=DCDCDC | NF=DCDCDC | NT=DCDCDC | NS=DCDCDC | NU=DCDCDC | ON=DCDCDC | PE=DCDCDC | QC=DCDCDC | SK=DCDCDC | YT=DCDCDC | EDM=DCDCDC | MTL=DCDCDC | QUE=DCDCDC | short=}} | This is the common row-name usage. | |
CANADA--> | CA=Conf of Regions | AB=Conf of Regions | BC=66CC66 | MB=Conf of Regions | NB=Conf of Regions | NF=66CC66 | NT=66CC66 | NS=66CC66 | NU=66CC66 | ON=Conf of Regions | PE=66CC66 | QC=66CC66 | SK=66CC66 | YT=66CC66 | EDM=66CC66 | MTL=66CC66 | QUE=66CC66 | short=y}} | 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 color. | Note that when using the "background" parameter you have to manually create new rows using |- | ||||||||||||||||||
CANADA--> | CA=Liberal | AB=Liberal | BC=Liberal | MB=Liberal | NB=Liberal | NF=Liberal | NT=Liberal | NS=Liberal | NU=EA6D6A | ON=Liberal | PE=Liberal | QC=Liberal | SK=Liberal | YT=Liberal | EDM=EA6D6A | MTL=EA6D6A | QUE=EA6D6A | short=}} | This row uses "XX" for jurisdiction. Invalid jurisdictions (or jurisdictions without a party by that name) will sometimes find a default color. | |
CANADA--> | CA=DCDCDC | AB=DCDCDC | BC=DCDCDC | MB=DCDCDC | NB=DCDCDC | NF=DCDCDC | NT=DCDCDC | NS=DCDCDC | NU=DCDCDC | ON=DCDCDC | PE=DCDCDC | QC=DCDCDC | SK=DCDCDC | YT=DCDCDC | EDM=DCDCDC | MTL=DCDCDC | QUE=DCDCDC | short=}} | This row uses "Invalid text" as the party name. Invalid party names will default to the color 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. |