Edge Rewrite
Jump to content

Template:Party cell/doc

From Wikipedia, the free encyclopedia

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Party1

Political party

Example
Federalist
Stringrequired
Side2

Which side the color bar is placed on

Suggested values
left right
Default
left
Example
left
Stringoptional
Position3

Used only for politicians who switch parties

Suggested values
top middle bottom
Default
empty
Example
top
Stringoptional