Template:CompCatTxt: Difference between revisions
Jump to navigation
Jump to search
Documentation
(add documentation) |
(try modification to allow two optional params complete=yes/no (default=no) and sort=<sortmethod>) |
||
Line 1: | Line 1: | ||
This is category | This is category provides a {{switch|{{{complete}}}|case: yes=complete|case: no=partial|default=partial}} list of the works on CPDL by {{{1|<composer given name(s)>}}} {{{2|<composer surname>}}}, 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 {{{ | |default=, with works sorted by {{{sort}}},}} [[{{{1}}} {{{2}}}|click here]]. | ||
<includeonly>[[Category:Compositions by composer|{{{2}}}, {{{1}}}]]</includeonly><noinclude> | <includeonly>[[Category:Compositions by composer{{switch|{{{complete|no}}}|case: yes=|case: no= (incomplete)|default= (incomplete)}}|{{{2}}}, {{{1}}}]]</includeonly><noinclude> | ||
[[Category:Templates|{{PAGENAME}}]]<br><br>{{prot-temp}}<br><br> | [[Category:Templates|{{PAGENAME}}]]<br><br>{{prot-temp}}<br><br> | ||
<div><div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #1188ff; padding: 1em 1em 1em 1em; background-color:#ddffdd"> | <div><div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #1188ff; padding: 1em 1em 1em 1em; background-color:#ddffdd"> | ||
<center><big>'''Documentation'''</big></center> | <center><big>'''Documentation'''</big></center> | ||
This template is for adding the generic descriptive information for [[:Category:Compositions by composer|compositions by composer categories]]. There are | This template is for adding the generic descriptive information for [[:Category:Compositions by composer|compositions by composer categories]]. There are four parameters: the first two are required and the is optional. | ||
'''Syntax with the first two parameters only:''' | '''Syntax with the first two parameters only:''' |
Revision as of 12:05, 12 September 2008
This is category provides a partial list of the works on CPDL by <composer given name(s)> <composer surname>, 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 is optional.
Syntax with the first two parameters only:
- {{CompCatTxt|John|Dowland}}
which inserts
- This is category lists the works on CPDL by John Dowland, sorted alphabetically by title of the works pages. For the composer page itself, [[John Dowland|click here]].
into a file, appearing as
- This is category lists the works on CPDL by John Dowland, sorted alphabetically by title of the works pages. For the composer page itself, click here.
Syntax with all parameters:
- {{CompCatTxt|John|Dowland|publication}}
which inserts
- This is category lists the works on CPDL by John Dowland, 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 is category lists the works on CPDL by John Dowland, sorted alphabetically by title of the works pages. For the composer page itself, with works sorted by publication, click here.