Template:WorkSorter

From ChoralWiki
Revision as of 19:55, 17 August 2012 by Carlos (talk | contribs) (more articles)
Jump to navigation Jump to search

A simple template that removes initial numerals and articles from the work title.

Syntax:

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

Syntax with an optional parameter:

{{WorkSorter|2 Tantum Ergo (Franz Schöpf)}} returns "Tantum Ergo (Franz Schöpf)"


This template can be used in conjunction with the magic word DEFAULTSORT inside Works pages, to produce an appropriate sort key.

{{DEFAULTSORT:{{WorkSorter}}}}