Difference between revisions of "Template:Meter"

From ChoralWiki
Jump to navigation Jump to search
(test extension to handle two meters)
(still testing)
Line 1: Line 1:
<includeonly>'''Meter:''' {{cat|{{{1}}}}} {{#if: {{{2|}}}|or {{{2}}}}}</includeonly><noinclude>
+
<includeonly>'''Meter:''' {{cat|{{{1}}}}} {{#if: {{{2|}}}|or {{cat|{{{2}}}}}}}</includeonly><noinclude>
 
'''Usage:'''
 
'''Usage:'''
 
<pre>{{Meter|76. 76}}</pre>
 
<pre>{{Meter|76. 76}}</pre>
Line 13: Line 13:
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>
 +
{{Meter|76. 76. D|76. 76. 76 with refrain}}

Revision as of 20:40, 7 February 2014

Usage:

{{Meter|76. 76}}

produces:

Meter: 76. 76

and categorizes the page it's on in the category 76. 76.

Note: Generally this template should be used on the same line as and following the Genre template, whenever the Genre includes Hymns or Hymn Tunes.

Meter: 76. 76. D or 76. 76. 76 with refrain Template loop detected: Template:Meter