Template:Party name with color
Jump to navigation
Jump to search
This template is used on many 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. |
This template uses Lua: |
Template:Party name with color is used to produce two adjacent table cells - a colored table cell with a given political party's colors, and a political party's name.
Parameters[edit source]
Parameter | Description |
---|---|
|1=
|
The party's name. |
|full=
|
Optional; Set to "1", "y", "yes", or "true" to display the full name of the party without its disambiguation. |
|shortname=
|
Optional; Uses the value of |shortname= as the short name.
|
|color=
|
Optional; Uses the value of |color= as the party's color.
|
|rowspan=
|
Optional; Spans the rows of the color and the party name by the amount entered. |
|no_link=
|
Optional; Set to "1", "y", "yes", or "true" to disable linking to the party's article. |
|dab=
|
Optional; Set to "1", "y", "yes", or "true" to display the full value of |1= ; useful to display party's name with disambiguation.
|
|abbrev=
|
Optional; Set to "1", "y", "yes", or "true" to display the party abbreviation, when available. |
Example[edit source]
Template | Content |
---|---|
{{Party color|Bharatiya Janata Party}} | #F8F9FA |
{{Party shortname|Bharatiya Janata Party}} | Bharatiya Janata Party |
{{Party color|Constitution Party (United States)}} | #F8F9FA |
{{Party shortname|Constitution Party (United States)}} | Constitution Party (United States) |
{{Party color|Labour Party (UK)}} | #F8F9FA |
{{Party shortname|Labour Party (UK)}} | Labour Party (UK) |
{{Party abbrev|Labour Party (UK)}} | Template:Party abbrev |
Year | Party | |
---|---|---|
2000 | Bharatiya Janata Party | |
2005 | Bharatiya Janata Party | |
2010 | Constitution Party (United States) | |
2015 | Constitution Party | |
2020 | Labour Party (UK) | |
2025 | ||
2030 | Labour Party (UK) | |
2035 | Foo Party |
{| class="wikitable"
! scope="col" | Year
! scope="col" colspan="2" | Party
|-
| 2000
| {{Party name with color|Bharatiya Janata Party}}
|-
| 2005
| {{Party name with color|Bharatiya Janata Party|full=yes}}
|-
| 2010
| {{Party name with color|Constitution Party (United States)}}
|-
| 2015
| {{Party name with color|Constitution Party (United States)|full=true}}
|-
| 2020
| {{Party name with color|Labour Party (UK)|rowspan=2}}
|-
| 2025
|-
| 2030
| {{Party name with color|Labour Party (UK)|abbrev=y}}
|-
| 2035
| {{Party name with color|Foo Party}}
|}
See also[edit source]
- Template:Party name with color no link
- Template:Full party name with color
- Template:Abbrev party name with color