Template:Party color cell/doc

From MOASSpedia
< Template:Party color cell
Revision as of 14:13, 8 January 2022 by Wikipedia>PrimeBOT (→‎Examples: Task 30: improve template logic following a discussion)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Party color cell is used to produce a colored table cell with a given political party's colors.

Usage

Parameters

Parameter Description
1 The political party's name.
2 Optional; The cell width. Defaults to 0.3em.
rowspan Optional; The number of rows to span.
colspan Optional; The number of columns to span.

Examples

{| class="wikitable"
|-
| {{party color cell|Aontú}}
| Candidate
|
|-
|
|...
|}
Candidate
...

or to override the default width of 10px,

{| class="wikitable"
|-
| {{party color cell|Aontú|10px}}
| Candidate
|
|-
|
|...
|}
Candidate
...

or to override the default rowspan of 1,

{| class="wikitable"
|-
| {{party color cell|Aontú|rowspan=3}}
| Candidate
|
|-
|...
|-
|...
|-
|
|...
|}
Candidate
...
...
...