Template:Acap: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
mNo edit summary
(remove obsolete Note)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''Instruments:''' [[:Category:a cappella|''a cappella'']]{{{1|.}}}<br>
<i>[[:Category:A cappella|{{{1|a cappella}}}]]</i><includeonly>[[Category:A cappella]]</includeonly><noinclude>
<includeonly>[[Category:a_cappella|{{{9|{{PAGENAME}}}}}]]</includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]]<br>
[[Category:Accompaniment templates]]<br>
<div><div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #B30000; padding: 1em 1em 1em 1em; background-color:#ffdddd">
<center>
<big>'''This template is being phased out - please don't use it on any pages'''</big>
</center>
 
Once this template has been removed from all pages (replaced with [[Template:a cappella]]), it will be changed to not include the "Instruments" line, in the same way that other accompaniment templates do not add this field.
</div><br>
 
 
<div><div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #1188ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
<div><div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #1188ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
<center><big>'''Documentation'''</big></center>
<center><big>'''Documentation'''</big></center>


This template is for specifying a work as being '''''a cappella''''', or possibly
This template is for specifying a work as being '''''a cappella'''''. In every instance, page is categorized in [[:Category:A cappella]].
'''''a cappella'' with extra information'''. In every instance, page is categorized in [[:Category:a cappella]], with the option to specify a sort key (differing from the default) for the listing in [[:Category:a cappella]].
 
'''Syntax, without any paramter:'''
: <tt><nowiki>{{acap}}</nowiki></tt>
which inserts
: <tt><nowiki>'''Instruments:''' [[:Category:a cappella|''a cappella'']].<br>[[Category:a_cappella|{{PAGENAME}}]]</nowiki></tt>
into a file, appearing as
 
'''Instruments:''' <font color=blue>''a cappella''</font>.
(followed by a linebreak)
 
'''Syntax, with an extra information parameter:'''
: <tt><nowiki>{{acap|<value>}}</nowiki></tt>
which inserts
: <tt><nowiki>'''Instruments:''' [[:Category:a cappella|''a cappella'']]<value><br>[[Category:a_cappella|{{PAGENAME}}]]</nowiki></tt>
into a file, appearing as
 
'''Instruments:''' <font color=blue>''a cappella''</font><value>
(followed by a linebreak)
 
For example,
: <tt><nowiki>{{acap|, or optional kazoo.}}</nowiki></tt>
produces
 
'''Instruments:''' <font color=blue>''a cappella''</font>, or optional kazoo.
(followed by a linebreak)
 
'''Syntax with a sort key parameter (and no extra information parameter):'''
: <tt><nowiki>{{acap|9=<sort key>}}</nowiki></tt>
which inserts
: <tt><nowiki>'''Instruments:''' [[:Category:a cappella|''a cappella'']].<br>[[Category:a_cappella|<sort key>]]</nowiki></tt>
into a file.
 
'''Syntax with both parameters:'''
: <tt><nowiki>{{acap|<value>|9=<sort key}}</nowiki></tt>
which inserts
: <tt><nowiki>'''Instruments:''' [[:Category:a cappella|''a cappella'']]<value><br>[[Category:a_cappella|<sort key>]]</nowiki></tt>
into a file.
 
In both of these latter two instances, the page is sorted in [[:Category:a cappella]] with <sort key> as the the sort key (instead of the default <nowiki>{{PAGENAME}}</nowiki> sort key).
 
As examples,
: <tt><nowiki>{{acap|9=Haven, The (Charles Villiers Stanford))}}<br></nowiki></tt>
on the page [[The Haven (Charles Villiers Stanford)]] produces
 
'''Instruments:''' <font color=blue>''a cappella''</font>. (followed by a linebreak)


with the page sorted under "H" rather than under "T".  Or,
;Syntax, without any parameters:
: <tt><nowiki>{{acap|, with optional {{PnoAcc|piano}} accompaniment.|9=Haven, The (Charles Villiers Stanford))}}<br></nowiki></tt>
* <tt><nowiki>{{acap}}</nowiki></tt>
on the page [[The Haven (Charles Villiers Stanford)]] produces
:which inserts
:: <tt><nowiki>[[:Category:A cappella|''a cappella'']][[Category:A cappella]]</nowiki></tt>
:into a file, appearing as
::<font color=blue>''a cappella''</font>


'''Instruments:''' <font color=blue>''a cappella''</font>, with optional <font color=blue>piano</font> accompaniment. (followed by a linebreak)
;Syntax, with an alternative display parameter:
* <tt><nowiki>{{acap|<value>}}</nowiki></tt>
:which inserts
:: <tt><nowiki>[[:Category:A cappella|<value>]][[Category:A cappella]]</nowiki></tt>
:into a file, appearing as
:: <font color=blue>''<value>''</font>


Again, the page is sorted in [[:Category:a cappella]] under "H" rather than under "T". 
;Examples:
* <tt><nowiki>{{acap}}, or optional kazoo<br></nowiki></tt>
:produces
:: <font color=blue>''a cappella''</font>, or optional kazoo


'''Note:''' In this last example the [[Template:PnoAcc]] gets expanded properly.
* <tt><nowiki>{{acap|''A Capella''}}, with optional {{PnoAcc|piano}} accompaniment.<br></nowiki></tt>
:produces
:: <font color=blue>''A Capella''</font>, with optional <font color=blue>piano</font> accompaniment.


</div>
</div>
</noinclude>
</noinclude>

Latest revision as of 19:01, 25 August 2012

a cappella

Documentation

This template is for specifying a work as being a cappella. In every instance, page is categorized in Category:A cappella.

Syntax, without any parameters
  • {{acap}}
which inserts
[[:Category:A cappella|''a cappella'']][[Category:A cappella]]
into a file, appearing as
a cappella
Syntax, with an alternative display parameter
  • {{acap|<value>}}
which inserts
[[:Category:A cappella|<value>]][[Category:A cappella]]
into a file, appearing as
<value>
Examples
  • {{acap}}, or optional kazoo<br>
produces
a cappella, or optional kazoo
  • {{acap|''A Capella''}}, with optional {{PnoAcc|piano}} accompaniment.<br>
produces
A Capella, with optional piano accompaniment.