Template:Party color/doc
Jump to navigation
Jump to search
| This is a documentation subpage for Template:Party color. It may contain usage information, categories and other content that is not part of the original template page. |
__EXPECTED_UNCONNECTED_PAGE__
| This template uses Lua: |
Template:Party 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
| 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
| Template | Content | |
|---|---|---|
{{Party color|Bharatiya Janata Party}}
|
Lua error in package.lua at line 80: module 'Module:Political party/B' not found. | |
{{Party shortname|Bharatiya Janata Party}}
|
Template:Party shortname | |
{{Party color|Constitution Party (United States)}}
|
Constitution | |
{{Party shortname|Constitution Party (United States)}}
|
Template:Party shortname | |
{{Party color|Labour Party (UK)}}
|
Labour | |
{{Party shortname|Labour Party (UK)}}
|
Template:Party shortname | |
{{Party abbrev|Labour Party (UK)}}
|
Template:Party abbrev |
| Year | Party | |
|---|---|---|
| 2000 | Lua error in package.lua at line 80: module 'Module:Political party/B' not found. | |
| 2005 | Lua error in package.lua at line 80: module 'Module:Political party/B' not found. | |
| 2010 | Constitution | |
| 2015 | Constitution Party | |
| 2020 | Labour | |
| 2025 | ||
| 2030 | Lab | |
| 2035 | Lua error in package.lua at line 80: module 'Module:Political party/F' not found. | |
{| class="wikitable"
! scope="col" | Year
! scope="col" colspan="2" | Party
|-
| 2000
| {{Party color|Bharatiya Janata Party}}
|-
| 2005
| {{Party color|Bharatiya Janata Party|full=yes}}
|-
| 2010
| {{Party color|Constitution Party (United States)}}
|-
| 2015
| {{Party color|Constitution Party (United States)|full=true}}
|-
| 2020
| {{Party color|Labour Party (UK)|rowspan=2}}
|-
| 2025
|-
| 2030
| {{Party color|Labour Party (UK)|abbrev=y}}
|-
| 2035
| {{Party color|Foo Party}}
|}