Template:WorkSorter

From ChoralWiki
Revision as of 14:44, 28 October 2018 by Claude T (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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 ein eine
  • Italian articles: il la le l' i gli un uno una
  • Portuguese articles: o a os as um uma
  • Spanish articles: el la los las un uno una unos unas

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