Template:Party cell
style="background: linear-gradient(to right, parameter 1 should be a party name. 0.5em, transparent 0.5em); padding-left: 0.7em; "
Usage
[edit]Example: {{Party cell|Democratic Party (US)|left|top}}
See Module:Political party and its subpages for recognised party names. In context, the following wikitext renders to the table below:
{| class="wikitable"
| {{Party cell|Democratic Party (US)|left|top}} | Party name (left, top)
|-
| {{Party cell|Democratic Party (US)|right|top}} | Democratic party name (right, top)
|}
| Democratic party name (left, top) |
| Democratic party name (right, top) |
This template is used to format table cells with a sidebar of a political party color.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Party | 1 | Political party
| String | required |
| Side | 2 | Which side the color bar is placed on
| String | optional |
| Position | 3 | Used only for politicians who switch parties
| String | optional |