Template:CompCatTxt: Difference between revisions
(fix link) |
(Category:Good-bad to check if param 2 is in use) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{2|}}}| | <includeonly>{{#if:{{{2|}}}|[[Category:Good-bad]] | ||
This category provides a list of [[{{{1}}} {{{2}}}]] works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself{{#if:{{{sort|}}}|, with works sorted by {{{sort}}},|,}} [[{{{1}}} {{{2}}}|click here]]. | This category provides a list of [[{{{1}}} {{{2}}}]] works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself{{#if:{{{sort|}}}|, with works sorted by {{{sort}}},|,}} [[{{{1}}} {{{2}}}|click here]]. | ||
Revision as of 18:59, 22 August 2012
This high-risk template has been protected from editing to prevent vandalism. Please use the talk page to ask an administrator about making an edit to change this template. |
This template is for adding the generic descriptive information for compositions by composer categories. There are three parameters: the first two are required and the other is optional.
Syntax example, with the first two parameters only:
{{CompCatTxt|John|Ireland}}
which inserts the text
- This category provides a list of John Ireland works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself, click here.
Syntax example with additional parameter: sort=<sortmethod>
{{CompCatTxt|John|Dowland|sort=publication}}
which inserts the text
- This category provides a list of John Dowland works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself, with works sorted by publication, click here.
Note: The discontinued parameter complete=yes (or no) now has no effect, since the Composer template keeps the lists provided by these "<Composer Name> compositions" categories up to date.
Syntax:
{{CompCatTxt}}
which inserts the text
- This category provides a list of <composer> works on CPDL, sorted alphabetically by title of the works pages.
The <composer> field is automatically extracted from the page name. The page is included in category Compositions by composer categories, sorted by <composer>'s last name.
Syntax with sort key:
{{CompCatTxt|Vaughan Williams, Ralph}}
which inserts the text
- This category provides a list of <composer> works on CPDL, sorted alphabetically by title of the works pages.
The <composer> field is automatically extracted from the category's name. The page is included in category Compositions by composer categories, using the sort key "Vaughan Williams, Ralph".
In both cases, the category link ("<composer>_compositions") becomes hidden in the works pages (because the information contained in it is supposedly in the same order than that found in the composer page).