Template:Acap

From ChoralWiki
Revision as of 05:44, 12 September 2008 by Bobnotts (talk | contribs) (spelling)
Jump to navigation Jump to search

a cappella

Documentation

This template is for specifying a work as being a cappella, or possibly 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.

Note: this template supercedes Template:a cappella because it operates in the same way as other accompaniment templates (ie. it doesn't include the "Instruments:" designator before "a cappella").

Syntax, without any parameters:

{{acap}}

which inserts

[[:Category:a cappella|''a cappella'']][[Category:a_cappella|{{PAGENAME}}]]

into a file, appearing as

a cappella

Syntax, with an extra information parameter:

{{acap|<value>}}

which inserts

[[:Category:a cappella|''a cappella'']]<value>[[Category:a_cappella|{{PAGENAME}}]]

into a file, appearing as

a cappella<value>

For example,

{{acap|, or optional kazoo}}

produces

a cappella, or optional kazoo

Syntax with a sort key parameter (and no extra information parameter):

{{acap|9=<sort key>}}

which inserts

[[:Category:a cappella|''a cappella'']][[Category:a_cappella|<sort key>]]

into a file.

Syntax with both parameters:

{{acap|<value>|9=<sort key}}

which inserts

[[:Category:a cappella|''a cappella'']]<value>[[Category:a_cappella|<sort key>]]

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 {{PAGENAME}} sort key).

As examples,

{{acap|9=Haven, The (Charles Villiers Stanford))}}<br>

on the page The Haven (Charles Villiers Stanford) produces

a cappella

with the page sorted under "H" rather than under "T". Or,

{{acap|, with optional {{PnoAcc|piano}} accompaniment.|9=Haven, The (Charles Villiers Stanford))}}<br>

on the page The Haven (Charles Villiers Stanford) produces

a cappella, with optional piano accompaniment

Again, the page is sorted in Category:a cappella under "H" rather than under "T".

Note: In this last example the Template:PnoAcc gets expanded properly.