Template:Composer: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(added Category:Works by multiple composers)
(updated)
Line 10: Line 10:
|Traditional=[[{{{1}}}|Anonymous ({{{1}}})]]
|Traditional=[[{{{1}}}|Anonymous ({{{1}}})]]
|#default=[[{{{1}}}]]}}
|#default=[[{{{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]]
|{{{1}}}<small><sup>[{{fullurl:{{{1}}}|action=edit&preload=Template:New_composer/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>
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
{{DisplayBox|title=Documentation|text=
<center><big>'''Documentation'''</big></center>


'''Accepted syntaxes for this template:'''
'''Accepted syntaxes for this template:'''
* <tt><nowiki>{{Composer|</nowiki>''Carlo Gesualdo''}}</tt>
* {{tl|Composer|''Carlo Gesualdo''}}
:which produces the text
:which produces the text
:: '''Composer:''' [[Carlo Gesualdo]]
:: '''Composer:''' [[Carlo Gesualdo]]
:and inserts the page in category {{CiteCat|Carlo Gesualdo compositions}}
:and inserts the page in category {{CiteCat|Carlo Gesualdo compositions}}


* <tt><nowiki>{{Composer|</nowiki>''Anonymous''|'', early-16th Century composer''}}</tt>
* {{tl|Composer|''Anonymous''|'', early-16th Century composer''}}
: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 {{CiteCat|Anonymous compositions}}
:and inserts the page in category {{CiteCat|Anonymous compositions}}


'''Syntaxes for more than one composer:'''
'''Syntaxes for more than one composer:'''
* <tt><nowiki>{{Composer|</nowiki>''2''|''composer_1''|''composer_2''|''optional_text''}}</tt>
* {{tl|Composer|''2''|''composer1''|''composer2''|''optional_text''}}
:which produces the text
:which produces the text
:: '''Composers:''' [[Composer_1]] and [[Composer_2]]
:: '''Composers:''' <font color=blue>Composer1</font> and <font color=blue>Composer2</font>
:and inserts the page in categories {{CiteCat|Composer_1 compositions}} and {{CiteCat|Composer_2 compositions}}
:and inserts the page in categories <font color=blue>Composer1 compositions</font> and <font color=blue>Composer2 compositions</font>


* <tt><nowiki>{{Composer|</nowiki>''3''|''composer_1''|''composer_2''|''composer_3''|''optional_text''}}</tt>
* {{tl|Composer|''3''|''composer1''|''composer2''|''composer3''|''optional_text''}}
:which produces the text
:which produces the text
:: '''Composers:''' [[Composer_1]], [[Composer_2]] and [[Composer_3]]
:: '''Composers:''' <font color=blue>Composer1</font>, <font color=blue>Composer2</font> and <font color=blue>Composer3</font>
:and inserts the page in categories {{CiteCat|Composer_1 compositions}}, {{CiteCat|Composer_2 compositions}} and {{CiteCat|Composer_3 compositions}}
:and inserts the page in categories <font color=blue>Composer1 compositions</font>, <font color=blue>Composer2 compositions</font> and <font color=blue>Composer3 compositions</font>
}}


</div>[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 13:48, 20 May 2013


Documentation

Accepted syntaxes for this template:

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|composer1|composer2|optional_text}}
which produces the text
Composers: Composer1 and Composer2
and inserts the page in categories Composer1 compositions and Composer2 compositions
  • {{Composer|3|composer1|composer2|composer3|optional_text}}
which produces the text
Composers: Composer1, Composer2 and Composer3
and inserts the page in categories Composer1 compositions, Composer2 compositions and Composer3 compositions