Template:Election portrait placeholder text/doc
Appearance
This is a documentation subpage for Template:Election portrait placeholder text. It may contain usage information, categories and other content that is not part of the original template page. |
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 |