From ChoralWiki
Revision as of 20:08, 26 May 2018 by Carlos (talk | contribs) (added Josquin des Prez as an exception)
Jump to navigation Jump to search

Exceptions list:

|Jose Mauricio Nunes Garcia
|José Maurício Nunes Garcia = Nunes Garcia, José Maurício
|Pierre de la Rue
|Pierre de La Rue = La Rue, Pierre de
|Josquin des Prés
|Josquin des Prez
|Josquin Des Prez = Des Prez, Josquin


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



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" (chant names are not inverted)

{{LastNameFirst|José Maurício Nunes Garcia}}

returns "Nunes Garcia, José Maurício" (it is one of the names on the Exceptions list)

Usage by other templates

LastNameFirst is used inside template NameSorter, which generates sort keys. NameSorter does remove diacritics:

{{NameSorter|José Maurício Nunes Garcia}}

returns "Nunes Garcia, Jose Mauricio "