Template:WorkSorter

From ChoralWiki
Revision as of 11:11, 26 January 2016 by Claude T (talk | contribs)
Jump to navigation Jump to search
Documentation

This template removes numerals, most definite and some indefinite articles from the beginning of a work title:

  • Numerals from 1 to 100
  • Dutch articles: de het een
  • English articles: the a an
  • French articles: la le l' les un ung une un'
  • German articles: das die der den dem
  • Italian articles: il lo la l' i gli le
  • Portuguese articles: o a os as
  • Spanish articles: lo la los las

Syntax:

{{WorkSorter}}

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

Syntax with an optional parameter:

{{WorkSorter|Ung jour viendra (Nicolas Gombert)}}

returns "Jour viendra (Nicolas Gombert)"


This template can be used as a parameter for the magic word DEFAULTSORT in works pages, to produce an appropriate sort key.

{{DEFAULTSORT:{{WorkSorter}}}}

See also