Template:Composer: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
m (Reverted edits by CHGiffen (Talk); changed back to last version by Carlos)
(removed sortkey parameter (no longer necessary and PAGENAME were preventing DEFAULTSORT from working properly))
Line 1: Line 1:
{{switch|{{{1}}}
{{switch|{{{1}}}
|case: 2='''Composers:''' [[{{{2}}}]] and [[{{{3}}}]]{{{4|}}}<includeonly>[[Category:{{{2}}} compositions|{{{9|{{PAGENAME}}}}}]][[Category:{{{3}}} compositions|{{{9|{{PAGENAME}}}}}]]</includeonly>
|case: 2='''Composers:''' [[{{{2}}}]] and [[{{{3}}}]]{{{4|}}}<includeonly>[[Category:{{{2}}} compositions]][[Category:{{{3}}} compositions]]</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>
|case: 3='''Composers:''' [[{{{2}}}]], [[{{{3}}}]] and [[{{{4}}}]]{{{5|}}}<includeonly>[[Category:{{{2}}} compositions]][[Category:{{{3}}} compositions]][[Category:{{{4}}} compositions]]</includeonly>
|default='''Composer:''' [[{{{1}}}]]{{{2|}}}<br><includeonly>[[Category:{{{1}}} compositions|{{{9|{{PAGENAME}}}}}]]</includeonly>
|default='''Composer:''' [[{{{1}}}]]{{{2|}}}<br><includeonly>[[Category:{{{1}}} compositions]]</includeonly>
}}<noinclude>
}}<noinclude>
{{prot-temp}}<br>
{{prot-temp}}<br>
Line 18: Line 18:
:: '''Composer:''' [[Anonymous]], early-16th Century composer
:: '''Composer:''' [[Anonymous]], early-16th Century composer
:and inserts the page in category {{CiteCat|Anonymous compositions}}
:and inserts the page in category {{CiteCat|Anonymous compositions}}
* <tt><nowiki>{{Composer|</nowiki>''Traditional''|''9=Riddle Song, The''}}</tt>
:which produces the text
:: '''Composer:''' [[Traditional]]
:and inserts the page in category {{CiteCat|Traditional compositions}}, sorted under "Riddle Song, The".


'''Syntaxes for more than one composer:'''
'''Syntaxes for more than one composer:'''
* <tt><nowiki>{{Composer|</nowiki>''2''|''composer_1''|''composer_2''|''optional_text''|''9=optional_sortkey''}}</tt>
* <tt><nowiki>{{Composer|</nowiki>''2''|''composer_1''|''composer_2''|''optional_text''}}</tt>
:which produces the text
:which produces the text
:: '''Composers:''' [[Composer_1]] and [[Composer_2]]
:: '''Composers:''' [[Composer_1]] and [[Composer_2]]
:and inserts the page in categories {{CiteCat|Composer_1 compositions}} and {{CiteCat|Composer_2 compositions}}
:and inserts the page in categories {{CiteCat|Composer_1 compositions}} and {{CiteCat|Composer_2 compositions}}


* <tt><nowiki>{{Composer|</nowiki>''3''|''composer_1''|''composer_2''|''composer_3''|''optional_text''|''9=optional_sortkey''}}</tt>
* <tt><nowiki>{{Composer|</nowiki>''3''|''composer_1''|''composer_2''|''composer_3''|''optional_text''}}</tt>
:which produces the text
:which produces the text
:: '''Composers:''' [[Composer_1]], [[Composer_2]] and [[Composer_3]]
:: '''Composers:''' [[Composer_1]], [[Composer_2]] and [[Composer_3]]

Revision as of 04:33, 15 December 2008

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


Documentation

Accepted syntaxes for this template:

  • {{Composer|Carlo Gesualdo}}
which produces the text
Composer: Carlo Gesualdo
and inserts the page in category Carlo Gesualdo compositions
  • {{Composer|Anonymous|, early-16th Century composer}}
which produces the text
Composer: Anonymous, early-16th Century composer
and inserts the page in category Anonymous compositions

Syntaxes for more than one composer:

  • {{Composer|2|composer_1|composer_2|optional_text}}
which produces the text
Composers: Composer_1 and Composer_2
and inserts the page in categories Composer_1 compositions and Composer_2 compositions
  • {{Composer|3|composer_1|composer_2|composer_3|optional_text}}
which produces the text
Composers: Composer_1, Composer_2 and Composer_3
and inserts the page in categories Composer_1 compositions, Composer_2 compositions and Composer_3 compositions