Template:Seran party color/name
Jump to navigation
Jump to search
DCDCDC
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:
DCDCDC | This is the common row-name usage. | |
66CC66 | 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 |- |
EA6D6A | This row uses "XX" for jurisdiction. Invalid jurisdictions (or jurisdictions without a party by that name) will sometimes find a default color. | |
DCDCDC | 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. |