Template:Acap: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
No edit summary
(add syntax and usage information (in green box))
Line 1: Line 1:
<noinclude><div><div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #99ff99; padding: 1em 1em 1em 1em; background-color:#ddffdd">
<noinclude><div><div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #99ff99; padding: 1em 1em 1em 1em; background-color:#ddffdd">
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]].
'''Syntax, without a paramter:'''
'''Syntax, without a paramter:'''
: <tt><nowiki>{{acap}}</nowiki></tt>
: <tt><nowiki>{{acap}}</nowiki></tt>
which inserts
which inserts
: <tt><nowiki>'''Instruments:''' [[:Category:a cappella|''a cappella'']].<br></nowiki></tt>
: <tt><nowiki>'''Instruments:''' [[:Category:a cappella|''a cappella'']].<br>[[Category:a_cappella]]</nowiki></tt>
into a file, appearing as
into a file, appearing as


Line 12: Line 15:
: <tt><nowiki>{{acap|<value>}}</nowiki></tt>
: <tt><nowiki>{{acap|<value>}}</nowiki></tt>
which inserts
which inserts
: <tt><nowiki>'''Instruments:''' [[:Category:a cappella|''a cappella'']]<value><br></nowiki></tt>
: <tt><nowiki>'''Instruments:''' [[:Category:a cappella|''a cappella'']]<value><br>[[Category:a_cappella]]</nowiki></tt>
into a file, appearing as
into a file, appearing as


Line 18: Line 21:
(followed by a linebreak)
(followed by a linebreak)


Since this template must be '''''substituted''''' and two variables must be supplied (reason and username), there is a '''special syntax''' for this template which may found on [[Template talk:delnow|'''this template's talk page''']].
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)
 
: <tt><nowiki>'''Instruments:''' [[:Category:a cappella|''a cappella'']], or optional {{PnoAcc}}.}}<br></nowiki></tt>
produces
 
'''Instruments:''' <font color=blue>''a cappella''</font>, or optional <font color=blue>Piano</font>.
(followed by a linebreak)
 
Note, in this last example the Template:PnoAcc has been expanded.


Note:  The information in this green box does appear when the template is used. 
</div>
</div>
</noinclude>
</noinclude>
'''Instruments:''' [[:Category:a cappella|''a cappella'']]{{{1|.}}}<br>
'''Instruments:''' [[:Category:a cappella|''a cappella'']]{{{1|.}}}<br>
<includeonly>[[Category:A_cappella]]</includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>
<includeonly>[[Category:a_cappella]]</includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 12:16, 28 February 2008

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.

Syntax, without a paramter:

{{acap}}

which inserts

'''Instruments:''' [[:Category:a cappella|''a cappella'']].<br>[[Category:a_cappella]]

into a file, appearing as

Instruments: a cappella. (followed by a linebreak)

Syntax, with a parameter:

{{acap|<value>}}

which inserts

'''Instruments:''' [[:Category:a cappella|''a cappella'']]<value><br>[[Category:a_cappella]]

into a file, appearing as

Instruments: a cappella<value> (followed by a linebreak)

For example,

{{acap|, or optional kazoo.}}

produces

Instruments: a cappella, or optional kazoo. (followed by a linebreak)

'''Instruments:''' [[:Category:a cappella|''a cappella'']], or optional {{PnoAcc}}.}}<br>

produces

Instruments: a cappella, or optional Piano. (followed by a linebreak)

Note, in this last example the Template:PnoAcc has been expanded.

Instruments: a cappella.