Template:Composer: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
m (rmv extra line break)
(remove nonbreakable space ... space can be inserted optionally (or not, since sometimes a comma or other punctuation may be part of optional parameter), tidy documentation)
Line 1: Line 1:
'''Composer:''' [[{{{1}}}]]&nbsp;{{{2|}}}<br><includeonly>[[Category:{{{1}}} compositions]]</includeonly><noinclude><div><div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
'''Composer:''' [[{{{1}}}]]{{{2|}}}<br><includeonly>[[Category:{{{1}}} compositions]]</includeonly><noinclude><div><div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
<center><big>'''Documentation'''</big></center>
<center><big>'''Documentation'''</big></center>


Line 5: Line 5:
: <tt><nowiki>{{Composer|Carlo Gesualdo}}</nowiki></tt>
: <tt><nowiki>{{Composer|Carlo Gesualdo}}</nowiki></tt>
which produces the text
which produces the text
: <tt>'''Composer:''' [[Carlo Gesualdo]]</tt>
: '''Composer:''' [[Carlo Gesualdo]]
and inserts the page in category
and inserts the page in [[:Category:Carlo Gesualdo compositions]]
: [[:Category:Carlo Gesualdo compositions]]


'''Syntax with required and optional parameters:'''
'''Syntax with required and 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
: <tt>'''Composer:''' [[Anonymous]] early-16th Century composer</tt>
: '''Composer:''' [[Anonymous]], early-16th Century composer
and inserts the page in category
and inserts the page in [[:Category:Anonymous compositions]]
: [[:Category:Anonymous compositions]]


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

Revision as of 06:24, 21 April 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 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