Template:WorkSorter

From ChoralWiki
Revision as of 19:17, 12 August 2012 by Carlos (talk | contribs) (new, still being developed)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 "2 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}}}}