Jump to content

Template:Election portrait placeholder text/doc

From Wikipedia, the free encyclopedia

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