Difference between revisions of "Template:Meter"

From ChoralWiki
Jump to navigation Jump to search
m (Cat|Hymn meters, in response to q on forums)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>'''Meter:''' {{cat|{{{1}}}}} {{#if: {{{2|}}}|or {{cat|{{{2|}}}}}}}</includeonly><noinclude>
+
<includeonly>'''Meter:''' {{cat|{{{1}}}}}{{#if:{{{2|}}}|&nbsp;'''or''' {{cat|{{{2}}} }} }}</includeonly><noinclude>
'''Usage:'''
+
'''Usage with one parameter (required):'''
 
<pre>{{Meter|76. 76}}</pre>
 
<pre>{{Meter|76. 76}}</pre>
 
produces:
 
produces:
Line 7: Line 7:
  
 
and categorizes the page it's on in the category {{CiteCat|76. 76}}.
 
and categorizes the page it's on in the category {{CiteCat|76. 76}}.
 +
 +
A list of the categories is at {{CiteCat|Hymn meters}}.
 +
 +
'''Usage with two parameters (second parameter is optional):'''
 +
 +
<pre>{{Meter|88. 88 (L.M.) with refrain|88. 88. 88}}</pre>
 +
produces:
 +
 +
'''Meter:''' {{CiteCat|88. 88 (L.M.)}} '''or''' {{CiteCat|88. 88. 88}}
 +
 +
and categorizes the page it's on in both of the categories {{CiteCat|88. 88 (L.M.)}} and {{CiteCat|88. 88. 88}}.
  
 
'''Note:''' Generally this template should be used on the same line as and following the {{CiteTemp|Genre}} template, whenever the Genre includes Hymns or Hymn Tunes.
 
'''Note:''' Generally this template should be used on the same line as and following the {{CiteTemp|Genre}} template, whenever the Genre includes Hymns or Hymn Tunes.
Line 13: Line 24:
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>
{{Meter|76. 76. D|76. 76. 76 with refrain}}
 

Latest revision as of 06:37, 11 August 2014

Usage with one parameter (required):

{{Meter|76. 76}}

produces:

Meter: 76. 76

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

A list of the categories is at Hymn meters.

Usage with two parameters (second parameter is optional):

{{Meter|88. 88 (L.M.) with refrain|88. 88. 88}}

produces:

Meter: 88. 88 (L.M.) or 88. 88. 88

and categorizes the page it's on in both of the categories 88. 88 (L.M.) and 88. 88. 88.

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.