Template:Infobox interval: Difference between revisions
Jump to navigation
Jump to search
the unit is already present in the property name/description |
cent lowercased |
||
Line 29: | Line 29: | ||
|- | |- | ||
{{#if: {{{Cents|}}} | | {{#if: {{{Cents|}}} | | ||
{{!}} style="text-align:right; padding-right: 0.25em" {{!}} Size in [[ | {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Size in [[cent]]s | ||
{{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Cents}}}''' | | {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Cents}}}''' | | ||
<includeonly><span style="color:red">Error: Parameter ''Cents'' missing!</span> [[Template:Infobox Interval|Help ...]]<br/></includeonly> | <includeonly><span style="color:red">Error: Parameter ''Cents'' missing!</span> [[Template:Infobox Interval|Help ...]]<br/></includeonly> | ||
Line 73: | Line 73: | ||
|- | |- | ||
| '''Cents''' | | '''Cents''' | ||
| Size in [[ | | Size in [[cent]]s | ||
| | | | ||
|- | |- |
Revision as of 10:34, 25 October 2018
The template Infobox Interval was built to help presenting basic information about Intervals in a unified form, to make them obvious by glance. Also the formatting of the wiki text itself is easier to read and improve when it is obviously structured by this template.
The templates supports the following parameters (mandatory parameters in bold):
Parameter | Meaning | Usage hints, Remarks |
---|---|---|
JI glyph | Just intonation glyph, if one exists | complete with prefix "File:" and brackets |
Ratio | Frequency ratio of the interval | |
Monzo | Parameters of the Monzo notation | |
Cents | Size in cents | |
Names or Name |
Name(s) of the interval | Maybe better optional? |
Color name | Color name after Kite's color notation | in the form: written form, spoken form , for color names see also Gallery of Just Intervals
|
Sound | Soundfile, if one exists | only name of the file (no prefix "File:" and of course without Brackets) |
Usage example for the harmonic seventh (7/4):
{{Infobox Interval | JI glyph = [[File:glyph_7_4.png|48px]] | Ratio = 7/4 | Monzo = -2 0 0 1 | Cents = 968.82591 | Name = Harmonic seventh | Color name = z7, zo 7th | Sound = jid_7_4_pluck_adu_dr220.mp3 }}
In the above example, an icon from the JI glyphs set is used.
Empty template for copy & paste (to avoid copying wrong values from interval pages:
{{Infobox Interval | JI glyph = | Ratio = | Monzo = | Cents = | Name = | Color name = | Sound = }}