Template:WorkSorter: Difference between revisions
Jump to navigation
Jump to search
Documentation
(Added Dutch articles as suggested by Joachim on http://forums.cpdl.org/phpBB3/search.php?keywords=indefinite) |
mNo edit summary |
||
Line 19: | Line 19: | ||
This template removes numerals, most definite and some indefinite articles from the beginning of a work title: | This template removes numerals, most definite and some indefinite articles from the beginning of a work title: | ||
* Numerals from <tt>1</tt> to <tt>100</tt> | * Numerals from <tt>1</tt> to <tt>100</tt> | ||
* Dutch articles: <tt>de het een</tt> | |||
* English articles: <tt>the a an</tt> | * English articles: <tt>the a an</tt> | ||
* French articles: <tt>la le l' les un ung une un'</tt> | * French articles: <tt>la le l' les un ung une un'</tt> |
Revision as of 11:11, 26 January 2016
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
- {{NameSorter}}