Template:CompCatTxt: Difference between revisions
mNo edit summary |
(change wording (so that something like "Gregorian chant" as the composer surname does not result in awkward reading) |
||
Line 1: | Line 1: | ||
This category provides a {{switch|{{{complete}}}|case: yes=complete|case: no=partial|default=partial}} list of | This category provides a {{switch|{{{complete}}}|case: yes=complete|case: no=partial|default=partial}} list of [[{{{1}}} {{{2}}}]] works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself{{switch|{{{sort|none}}} | ||
|case: none=, | |case: none=, | ||
|default=, with works sorted by {{{sort}}},}} [[{{{1}}} {{{2}}}|click here]]. | |default=, with works sorted by {{{sort}}},}} [[{{{1}}} {{{2}}}|click here]]. | ||
Line 12: | Line 12: | ||
<pre>{{CompCatTxt|John|Ireland}}</pre> | <pre>{{CompCatTxt|John|Ireland}}</pre> | ||
which inserts | which inserts | ||
: <tt><nowiki>This category provides a partial list of | : <tt><nowiki>This category provides a partial list of [[John Ireland]] works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself, [[John Ireland|click here]].</nowiki></tt> | ||
into a file, appearing as | into a file, appearing as | ||
:This category provides a partial list of | :This category provides a partial list of <font color=blue>John Ireland</font> works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself, <font color=blue>click here</font>. | ||
'''Syntax examples, with additional parameters: sort=<sortmethod>, complete=yes/no (default=no)''' | '''Syntax examples, with additional parameters: sort=<sortmethod>, complete=yes/no (default=no)''' | ||
<pre>{{CompCatTxt|John|Dowland|sort=publication|complete=no}}</pre> | |||
or simply | |||
<pre>{{CompCatTxt|John|Dowland|sort=publication}}</pre> | <pre>{{CompCatTxt|John|Dowland|sort=publication}}</pre> | ||
which inserts | which inserts | ||
: <tt><nowiki>This category provides a partial list of | : <tt><nowiki>This category provides a partial 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, [[John Dowland|click here]].</nowiki></tt> | ||
into a file, appearing as | into a file, appearing as | ||
:This category provides a partial list of | :This category provides a partial list of <font color=blue>John Dowland</font> works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself, with works sorted by publication, <font color=blue>click here</font>. | ||
<pre>{{CompCatTxt|John|Dowland|sort=publication|complete=yes}}</pre> | <pre>{{CompCatTxt|John|Dowland|sort=publication|complete=yes}}</pre> | ||
which inserts | which inserts | ||
: <tt><nowiki>This category provides a complete list of | : <tt><nowiki>This category provides a complete 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, [[John Dowland|click here]].</nowiki></tt> | ||
into a file, appearing as | into a file, appearing as | ||
:This category provides a complete list of | :This category provides a complete list of <font color=blue>John Dowland</font> works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself, with works sorted by publication, <font color=blue>click here</font>. | ||
<pre>{{CompCatTxt|John|Ireland|complete=yes}}</pre> | <pre>{{CompCatTxt|John|Ireland|complete=yes}}</pre> | ||
which inserts | which inserts | ||
: <tt><nowiki>This category provides a complete list of | : <tt><nowiki>This category provides a complete list of [[John Ireland]] works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself, [[John Ireland|click here]].</nowiki></tt> | ||
into a file, appearing as | into a file, appearing as | ||
:This category provides a complete list of | :This category provides a complete list of <font color=blue>John Ireland</font> works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself, <font color=blue>click here</font>. | ||
'''To summarize:''' Omitting sort=<sortmethod> leaves out the phrase "with works sorted by <sortmethod>," - and either omitting complete=yes or setting complete=no makes the description start "This category provides a partial list..." = while setting complete=yes makes the description start "This category provide a complete list..." | '''To summarize:''' Omitting sort=<sortmethod> leaves out the phrase "with works sorted by <sortmethod>," - and either omitting complete=yes or setting complete=no makes the description start "This category provides a partial list..." = while setting complete=yes makes the description start "This category provide a complete list..." |
Revision as of 05:45, 13 September 2008
This category provides a partial list of [[{{{1}}} {{{2}}}]] works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself, [[{{{1}}} {{{2}}}|click here]].
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 four parameters: the first two are required and the other two are optional.
Syntax eample, with the first two parameters only:
{{CompCatTxt|John|Ireland}}
which inserts
- This category provides a partial list of [[John Ireland]] works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself, [[John Ireland|click here]].
into a file, appearing as
- This category provides a partial list of John Ireland works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself, click here.
Syntax examples, with additional parameters: sort=<sortmethod>, complete=yes/no (default=no)
{{CompCatTxt|John|Dowland|sort=publication|complete=no}}
or simply
{{CompCatTxt|John|Dowland|sort=publication}}
which inserts
- This category provides a partial 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, [[John Dowland|click here]].
into a file, appearing as
- This category provides a partial 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.
{{CompCatTxt|John|Dowland|sort=publication|complete=yes}}
which inserts
- This category provides a complete 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, [[John Dowland|click here]].
into a file, appearing as
- This category provides a complete 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.
{{CompCatTxt|John|Ireland|complete=yes}}
which inserts
- This category provides a complete list of [[John Ireland]] works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself, [[John Ireland|click here]].
into a file, appearing as
- This category provides a complete list of John Ireland works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself, click here.
To summarize: Omitting sort=<sortmethod> leaves out the phrase "with works sorted by <sortmethod>," - and either omitting complete=yes or setting complete=no makes the description start "This category provides a partial list..." = while setting complete=yes makes the description start "This category provide a complete list..."