Template:Post-nominals/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>HJ Mitchell
→‎postnoms field: add documentation for |sep=,
meta>RexxS
→‎Separator: update documentation to indicate that comma is only punctuation allowed between post-nominals
Line 13: Line 13:


==== Separator ====
==== Separator ====
To use a separator, e.g. a comma, between post-nominals, use
To use a comma separator between post-nominals, use
  {{para|sep|,}}
  {{para|sep|,}}
or any punctuation character desired.
Leave out the parameter completely or supply a blank value {{para|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.


====Automatic linking====
====Automatic linking====

Revision as of 17:07, 20 January 2014

Usage

postnoms field

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

The optional "size" field allows for the size of the text, as a percentage, to be changed from the template's default of 85%.

{{post-nominals|post-noms=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.

Automatic linking

{{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.

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: