Template:Election portrait placeholder text
Appearance
Ind
This template is used to generate three letter placeholder text to be used in place of an portrait on election pages. The text is drawn from {{Party abbrev}}
, and the colour comes from {{party color}}
.
Usage
[edit]{{Election portrait placeholder text
| width =
| height =
| color =
| party = <!-- 1 -->
| font-size =
| text = <!-- 2 -->
}}
Examples
[edit]Code | Result | Comment |
---|---|---|
{{eppt|Conservative Party (UK)}}
|
Con
|
Default use case where both colour and name are drawn from the part name |
{{eppt|Conservative Party (UK)|CONS.}}
|
CONS.
|
The automatic text has been overridden with a custom text. This is useful in cases where the default cliping of the text to three letters doesn't make sense. |
{{eppt|Conservative Party (UK)|color=Aquamarine}}
|
Con
|
The automatic colour can also be overridden |
{{eppt||Pnk|color=#FF00FF}}
|
Pnk
|
A custom colour and text can be used in cases where party data is missing |
This template is used to generate three letter placeholder text to be used in place of an portrait on election pages. The text is drawn from {{Tl2|Party abbrev}}, and the colour comes from {{Tl2|party color}}.
Parameter | Description | Type | Status | |
---|---|---|---|---|
party | party 1 | The name of the party referenced
| String | required |
text | text 2 | Text to override the automatic party abbreviation
| String | optional |
color | color | Optional Colour to override the automatic color given
| String | optional |
width | width | no description | Number | optional |
height | height | no description | Number | optional |
font-size | font-size | no description | Number | optional |