Template:NameSorter

From ChoralWiki
Revision as of 05:12, 16 May 2009 by Carlos (talk | contribs) (added documentation)
Jump to navigation Jump to search

Converts a text in the form "Name(s) Surname" to the form "Surname, Name(s)", removing all diacritics in the process.

Syntax:

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

Syntax with an optional parameter:


This template is meant to be used in conjunction with the magic word DEFAULTSORT in Composer and User pages, delivering to it an appropriate sort key.

Example:

  • {{DEFAULTSORT:{{LastName}}}}