Template:Composer: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(remove old param 3 detection)
(extended to accept up to 3 composers)
Line 1: Line 1:
'''Composer:''' [[{{{1}}}]]{{{2|}}}<br><includeonly>[[Category:{{{1}}} compositions|{{{9|{{PAGENAME}}}}}]]</includeonly><noinclude>
{{switch|{{{1}}}
|case: 2='''Composers:''' [[{{{2}}}]] and [[{{{3}}}]]{{{4|}}}<includeonly>[[Category:{{{2}}} compositions|{{{9|{{PAGENAME}}}}}]][[Category:{{{3}}} compositions|{{{9|{{PAGENAME}}}}}]]</includeonly>
|case: 3='''Composers:''' [[{{{2}}}]], [[{{{3}}}]] and [[{{{4}}}]]{{{5|}}}<includeonly>[[Category:{{{2}}} compositions|{{{9|{{PAGENAME}}}}}]][[Category:{{{3}}} compositions|{{{9|{{PAGENAME}}}}}]][[Category:{{{4}}} compositions|{{{9|{{PAGENAME}}}}}]]</includeonly>
|default='''Composer:''' [[{{{1}}}]]{{{2|}}}<br><includeonly>[[Category:{{{1}}} compositions|{{{9|{{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">

Revision as of 17:25, 17 November 2008

Composer: [[{{{1}}}]]


Documentation

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 optional sortkey parameters:

{{Composer|Traditional|9=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.