Template:Post-nominals/doc

From Zoophilia Wiki
Revision as of 17:28, 20 January 2014 by meta>RexxS (→‎Usage: expand documentation with more examples)
Jump to navigationJump to search

Usage

The default use provides post-nominals at 85% fontsize linked to the relevant article for the award. By default, the Canadian set of awards are used:

{{post-nominals|PC|CC|OBE}}: PC CC OBE

Suppress links with the postnoms parameter

The linking can be suppressed by using the |post-noms= parameter:

{{post-nominals|post-noms=PC CC OBE}}: PC CC OBE

Font size

The optional |size= parameter allows for the size of the text, as a percentage, to be changed from the template's default of 85%:

{{post-nominals|post-nominals|PC|CC|OBE|size=100%}}: PC CC OBE

Separator

To use a comma separator between post-nominals, use

|sep=,

Leave out the parameter completely or supply a blank value |sep= to have just non-breaking spaces between the post-nominals. Only a comma is supported as punctuation in this case and anything else supplied as a value will default to using a comma in the rendered text.

{{post-nominals|PC|CC|OBE|sep=,}}: PC, CC, OBE

Automatic linking to a country article

{{post-nominals|country=CAN|PC|CC|OBE}}: PC CC OBE

Countries are specified using ISO 3166-1 alpha-3 codes. The only countries currently supported are Australia (AUS), Canada (CAN), New Zealand (NZL), and the United Kingdom (GBR). If a country is not specified, the Canadian list will be used, as it duplicates most of the British list.

{{post-nominals|country=GBR|PC|CC|OBE}}: PC CC OBE

{{post-nominals|country=GBR|PC|CC|OBE|size=100%|sep=,}}: PC, CC, OBE

Note that this is case-sensitive; "country=GBR" will invoke the British list, but "Country=GBR" will default to the Canadian list.

Exceptions
'''Joseph Jacques Jean Chrétien''', {{Post-nominals|country=CAN|PC|OMt|CC|QC}} returns Joseph Jacques Jean Chrétien, PC OM CC QC
'''John Smith''' {{post-nominals|country=NZL|QFSM|QPM|QPSMd|QPMd}} returns John Smith QFSM QPM QFSM QPM
Data

Data templates for each supported country: