Template:Party color cell: Difference between revisions
(add color:inherit) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 22:45, 21 December 2024
style="background-color:Lua error in package.lua at line 80: module 'Module:Political party/1' not found.; color:inherit; width:0.3em;" |
![]() | This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
![]() | This template uses Lua: |
Template:Party color cell is used to produce a colored table cell with a given political party's colors.
Usage
{{Party color cell|name}}
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 | ||
... | ||
... | ||
... |