Template:Composer: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(same for Traditional - simpler syntax)
(+ Yaroslavsky chant)
Line 2: Line 2:
|case: 2='''{{{composertype|{{{composertype1|Composer}}}}}}s:''' [[{{{2}}}]] and [[{{{3}}}]]{{{4|}}} [[Category:{{{2}}} compositions]][[Category:{{{3}}} compositions]]
|case: 2='''{{{composertype|{{{composertype1|Composer}}}}}}s:''' [[{{{2}}}]] and [[{{{3}}}]]{{{4|}}} [[Category:{{{2}}} compositions]][[Category:{{{3}}} compositions]]
|case: 3='''{{{composertype|{{{composertype1|Composer}}}}}}s:''' [[{{{2}}}]], [[{{{3}}}]] and [[{{{4}}}]]{{{5|}}} [[Category:{{{2}}} compositions]][[Category:{{{3}}} compositions]][[Category:{{{4}}} compositions]]
|case: 3='''{{{composertype|{{{composertype1|Composer}}}}}}s:''' [[{{{2}}}]], [[{{{3}}}]] and [[{{{4}}}]]{{{5|}}} [[Category:{{{2}}} compositions]][[Category:{{{3}}} compositions]][[Category:{{{4}}} compositions]]
|default='''{{{composertype|{{{composertype1|Composer}}}}}}:''' {{#ifexist:{{{1}}}|{{#switch:{{{1}}}|Ambrosian chant|Gregorian chant|Traditional=[[{{{1}}}|Anonymous ({{{1}}})]]|[[{{{1}}}]]}}|{{{1}}}<small><sup>[{{fullurl:{{{1}}}|action=edit&preload=Template:Composer_page/Preload}} create page]</sup></small>[[Category:Works with nonexistent composer page]]}}{{{2|}}} [[Category:{{{1}}} compositions]]
|default='''{{{composertype|{{{composertype1|Composer}}}}}}:''' {{#ifexist:{{{1}}}|{{#switch:{{{1}}}|Ambrosian chant|Gregorian chant|Yaroslavsky chant|Traditional=[[{{{1}}}|Anonymous ({{{1}}})]]|[[{{{1}}}]]}}|{{{1}}}<small><sup>[{{fullurl:{{{1}}}|action=edit&preload=Template:Composer_page/Preload}} create page]</sup></small>[[Category:Works with nonexistent composer page]]}}{{{2|}}} [[Category:{{{1}}} compositions]]
}}<br></includeonly><noinclude>
}}<br></includeonly><noinclude>
{{prot-temp}}<br>
{{prot-temp}}<br>

Revision as of 02:05, 6 April 2012


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