Template:Sera party color/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Sera party color. It contains usage information, categories and other content that is not part of the original template page. |
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 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 colourThis is the common row-name usage. | 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. | |
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 |- | This row uses "XX" for jurisdiction. Invalid jurisdictions (or jurisdictions without a party by that name) will sometimes find a default 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. |