From English Wikipedia @ Freddythechick
Template:Abbrev 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 full name without its disambiguation.
Parameters
Parameter
|
Description
|
|1=
|
The party's name.
|
|rowspan=
|
Optional; Spans the rows of the color and the party name by the amount entered.
|
Examples
Year
|
Party
|
2000
|
|
BJP
|
2005
|
|
C
|
2010
|
|
Lab
|
2015
|
2020
|
|
Foo Party
|
<syntaxhighlight lang="wikitext" style="display: inline-block;">{| class="wikitable"
! scope="col" | Year
! scope="col" colspan="2" | Party
|-
| 2000
| style="width: 2px; color:inherit; background-color: #FF9933;" data-sort-value="Bharatiya Janata Party" |
| scope="row" style="text-align: left;" | BJP
|-
| 2005
| style="width: 2px; color:inherit; background-color: #A356DE;" data-sort-value="Constitution Party (United States)" |
| scope="row" style="text-align: left;" | C
|-
| 2010
| rowspan="2" style="width: 2px; color:inherit; background-color: #E4003B;" data-sort-value="Labour Party (UK)" |
| scope="row" rowspan="2" style="text-align: left;" | Lab
|-
| 2015
|-
| 2020
| style="width: 2px; color:inherit; background-color: #F8F9FA;" data-sort-value="Foo Party" |
| scope="row" style="text-align: left;" | Foo Party
|}
</syntaxhighlight>
Template data
Template parameters This template prefers inline formatting of parameters. Parameter | Description | Type | Status |
---|
Party name | 1 | Name of the political party
| String | required |
---|
Rowspan | rowspan | number of rows that this party covers in the table (default is 1)
| Number | optional |
---|
|
See also