Template:Infobox interval: Difference between revisions
Jump to navigation
Jump to search
m fixed typos, made the order of the fields match their appearance. |
the unit is already present in the property name/description |
||
Line 30: | Line 30: | ||
{{#if: {{{Cents|}}} | | {{#if: {{{Cents|}}} | | ||
{{!}} style="text-align:right; padding-right: 0.25em" {{!}} Size in [[Cent|Cents]] | {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Size in [[Cent|Cents]] | ||
{{!}} 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> | ||
}} | }} |
Revision as of 08:19, 23 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 Cent | |
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 = }}