Template:LastNameFirst

From ChoralWiki
Revision as of 18:40, 23 April 2013 by Carlos (talk | contribs) (adding exception for chants)
Jump to navigation Jump to search

Converts a text in the form "Name(s) Surname" to the form "Surname, Name(s)".

Syntax:

{{LastNameFirst}}

returns the contents of {{PAGENAME}} after processing it.

Syntax with an optional parameter:

{{LastNameFirst|Antonín Dvořák}}

returns "Dvořák, Antonín" (note that diacritics are not removed)

{{LastNameFirst|Gregorian chant}}

returns "Gregorian chant" (note that chant names are not inverted)