Template:Composer: Difference between revisions
Jump to navigation
Jump to search
Documentation
(prot-temp added) |
(add to documentation usage of second optional parameter (sort key)) |
||
Line 1: | Line 1: | ||
'''Composer:''' [[{{{1}}}]]{{{2|}}}<br><includeonly>[[Category:{{{1}}} compositions]]</includeonly><noinclude> | '''Composer:''' [[{{{1}}}]]{{{2|}}}<br><includeonly>[[Category:{{{1}}} compositions|{{{3|{{PAGENAME}}}}}]]</includeonly><noinclude> | ||
{{prot-temp}}<br> | {{prot-temp}}<br> | ||
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd"> | <div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd"> | ||
Line 10: | Line 10: | ||
and inserts the page in [[:Category:Carlo Gesualdo compositions]] | and inserts the page in [[:Category:Carlo Gesualdo compositions]] | ||
'''Syntax with required and optional parameters:''' | '''Syntax with required and first optional parameters:''' | ||
: <tt><nowiki>{{Composer|Anonymous|, early-16th Century composer}}</nowiki></tt> | : <tt><nowiki>{{Composer|Anonymous|, early-16th Century composer}}</nowiki></tt> | ||
which produces the text | which produces the text | ||
: '''Composer:''' [[Anonymous]], early-16th Century composer | : '''Composer:''' [[Anonymous]], early-16th Century composer | ||
and inserts the page in [[:Category:Anonymous compositions]] | and inserts the page in [[:Category:Anonymous compositions]] | ||
'''Syntax with required and second optional parameters:''' | |||
: <tt><nowiki>{{Composer|Traditional|3=Riddle Song, The}}</nowiki></tt> | |||
which produces the text | |||
: '''Composer:''' [[Traditional]] and inserts the page in [[:Category:Traditional compositions]], sorted under "Riddle Song, The". | |||
One can also use both optional parameters. | |||
</div>[[Category:Templates|{{PAGENAME}}]]</noinclude> | </div>[[Category:Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 05:55, 29 April 2008
Composer: [[{{{1}}}]]
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. |
Syntax, with the one required parameter:
- {{Composer|Carlo Gesualdo}}
which produces the text
- Composer: Carlo Gesualdo
and inserts the page in Category:Carlo Gesualdo compositions
Syntax with required and first optional parameters:
- {{Composer|Anonymous|, early-16th Century composer}}
which produces the text
- Composer: Anonymous, early-16th Century composer
and inserts the page in Category:Anonymous compositions
Syntax with required and second optional parameters:
- {{Composer|Traditional|3=Riddle Song, The}}
which produces the text
- Composer: Traditional and inserts the page in Category:Traditional compositions, sorted under "Riddle Song, The".
One can also use both optional parameters.