Template:Infobox interval: Difference between revisions
Jump to navigation
Jump to search
updated form of color notation with color name reference at Gallery of Just Intervals |
names in lighter color, values are links where it makes sense |
||
Line 10: | Line 10: | ||
"> | "> | ||
{| | {| | ||
|+ | |+ <u>Interval information</u> | ||
{{#if: {{{Icon|}}} | | {{#if: {{{Icon|}}} | | ||
{{!}} colspan="2" style="text-align:center" {{!}} <div style="background-color: white; padding: 2px; margin: 2px; border: 1px solid #eee; display: inline-block;">{{{Icon}}}</div> | {{!}} colspan="2" style="text-align:center" {{!}} <div style="background-color: white; padding: 2px; margin: 2px; border: 1px solid #eee; display: inline-block;">{{{Icon}}}</div> | ||
}} | }} | ||
|- | |- | ||
| style="text-align:right" | {{#if: {{{Ratio|}}} | | ||
{{!}} style="text-align:right; color:#888" {{!}} Ratio | |||
{{!}} '''{{{Ratio}}}''' | | |||
<includeonly><span style="color:red">Error: Parameter ''Ratio'' missing!</span> [[Template:Infobox Interval|Help ...]]<br/></includeonly> | |||
}} | |||
|- | |- | ||
| style="text-align:right" | {{#if: {{{Monzo|}}} | | ||
{{!}} style="text-align:right; color:#888" {{!}} Monzo | |||
{{!}} [[Monzos|'''{{Monzo|{{{Monzo}}}}}''']] | | |||
<includeonly><span style="color:red">Error: Parameter ''Monzo'' missing!</span> [[Template:Infobox Interval|Help ...]]<br/></includeonly> | |||
}} | |||
|- | |- | ||
| style="text-align:right" | {{#if: {{{Cents|}}} | | ||
{{!}} style="text-align:right; color:#888" {{!}} Size | |||
{{!}} [[cent|'''{{{Cents}}} ¢''']] | | |||
<includeonly><span style="color:red">Error: Parameter ''Cents'' missing!</span> [[Template:Infobox Interval|Help ...]]<br/></includeonly> | |||
}} | |||
|- | |- | ||
| style="text-align:right" | {{#if: {{{Name|{{{Names|}}}}}} | | ||
{{!}} style="text-align:right; color:#888" {{!}} Name(s) | |||
{{!}} '''{{{Name|{{{Names}}}}}}''' | | |||
<includeonly><span style="color:red">Error: Parameter ''Name'' or ''Names'' missing!</span> [[Template:Infobox Interval|Help ...]]<br/></includeonly> | |||
}} | |||
|- | |- | ||
{{#if: {{{Color name|{{{Color Name|}}}}}} | | {{#if: {{{Color name|{{{Color Name|}}}}}} | | ||
{{!}} style="text-align:right" {{!}} | {{!}} style="text-align:right; color:#888" {{!}} Color name | ||
{{!}} '''{{{Color name|{{{Color Name}}}}}}''' | {{!}} [[Kite's color notation|'''{{{Color name|{{{Color Name}}}}}}''']] | ||
}} | }} | ||
|- | |- |
Revision as of 22:06, 17 October 2018
The template Infobox Interval was built to help presenting basic informations 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 |
---|---|---|
Icon | Image or symbol, 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? |
Sound | Soundfile is one exists | only name of the file (no prefix "File:" and of course without Brackets) |
Color name | Color name after Kite's color notation, if one exists | in the form: written form, spoken form , for color names see also Gallery of Just Intervals
|
Usage example for the harmonic seventh (7/4):
{{Infobox Interval | Icon = [[File:glyph_7_4.png|alt=glyph 7 4.png|124x112px|glyph 7 4.png]] <small><br/>JI glyph for 7/4</small> | Ratio = 7/4 | Monzo = -2 0 0 1 | Cents = 968.82591 | Name = Harmonic seventh | Sound = jid_7_4_pluck_adu_dr220.mp3 | Color name = z7, zo 7th }}
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 | Icon = | Ratio = | Monzo = | Cents = | Name = | Sound = | Color name = }}