Template:Infobox interval: Difference between revisions
Jump to navigation
Jump to search
Let's do FJS names too |
improved error messages for missing information, auto-categorize the article in the corresponding todo category |
||
Line 19: | Line 19: | ||
{{!}} style="text-align:right; padding-right: 0.25em" {{!}} Ratio | {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Ratio | ||
{{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Ratio}}}''' | | {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Ratio}}}''' | | ||
{{!}} style="text-align:right; padding-right: 0.25em" {{!}} Ratio | |||
{{!}} <span style="color:red"><abbr title="missing value for parameter 'Ratio'">''missing''</abbr></span><sup>[[Template:Infobox Interval| ? ]]</sup><includeonly>[[Category:Todo:add interval ratio]]</includeonly> | |||
}} | }} | ||
|- | |- | ||
Line 25: | Line 26: | ||
{{!}} style="text-align:right; padding-right: 0.25em" {{!}} [[Monzo]] | {{!}} style="text-align:right; padding-right: 0.25em" {{!}} [[Monzo]] | ||
{{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{Monzo|{{{Monzo}}}}}''' | | {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{Monzo|{{{Monzo}}}}}''' | | ||
{{!}} style="text-align:right; padding-right: 0.25em" {{!}} [[Monzo]] | |||
{{!}} <span style="color:red"><abbr title="missing value for parameter 'Monzo'">''missing''</abbr></span><sup>[[Template:Infobox Interval| ? ]]</sup><includeonly>[[Category:Todo:add interval monzo]]</includeonly> | |||
}} | }} | ||
|- | |- | ||
Line 31: | Line 33: | ||
{{!}} style="text-align:right; padding-right: 0.25em" {{!}} Size in [[cent]]s | {{!}} 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}}}''' | | ||
{{!}} style="text-align:right; padding-right: 0.25em" {{!}} Size in [[cent]]s | |||
{{!}} <span style="color:red"><abbr title="missing value for parameter 'Cents'">''missing''</abbr></span><sup>[[Template:Infobox Interval| ? ]]</sup><includeonly>[[Category:Todo:add interval cents]]</includeonly> | |||
}} | }} | ||
|- | |- | ||
Line 37: | Line 40: | ||
{{!}} style="text-align:right; padding-right: 0.25em" {{!}} Name(s) | {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Name(s) | ||
{{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Name|{{{Names}}}}}}''' | | {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Name|{{{Names}}}}}}''' | | ||
{{!}} style="text-align:right; padding-right: 0.25em" {{!}} Name(s) | |||
{{!}} <span style="color:red"><abbr title="missing value for parameter 'Name'">''missing''</abbr></span><sup>[[Template:Infobox Interval| ? ]]</sup><includeonly>[[Category:Todo:add interval name]]</includeonly> | |||
}} | }} | ||
|- | |- | ||
Line 54: | Line 58: | ||
}} | }} | ||
|} | |} | ||
</div><noinclude> | </div><includeonly><!-- this includeonly section is for changing parameter names to regular form -->{{#if: {{{Names|}}} | ||
| [[Category:Todo:normalize interval parameters]]}}{{#if: {{{Color Name|}}} | |||
| [[Category:Todo:normalize interval parameters]]}}{{#if: {{{FJS Name|}}} | |||
| [[Category:Todo:normalize interval parameters]]}}</includeonly><noinclude> | |||
The template '''Infobox Interval''' was built to help presenting basic information about [[interval]]s 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 template '''Infobox Interval''' was built to help presenting basic information about [[interval]]s 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 ( | The templates supports the following parameters (highly requested parameters in '''bold'''): | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 71: | Line 78: | ||
| '''Ratio''' | | '''Ratio''' | ||
| Frequency [[ratio]] of the interval | | Frequency [[ratio]] of the interval | ||
| | | pages with missing values go into [[:Category:Todo:add interval ratio]] | ||
|- | |- | ||
| '''Monzo''' | | '''Monzo''' | ||
| Parameters of the [[Monzo]] notation | | Parameters of the [[Monzo]] notation | ||
| | | pages with missing values go into [[:Category:Todo:add interval monzo]] | ||
|- | |- | ||
| '''Cents''' | | '''Cents''' | ||
| Size in [[cent]]s | | Size in [[cent]]s | ||
| | | pages with missing values go into [[:Category:Todo:add interval cents]] | ||
|- | |- | ||
| | | '''Name''' | ||
| Name(s) of the interval | | Name(s) of the interval | ||
| | | pages with missing values go into [[:Category:Todo:add interval name]] | ||
|- | |- | ||
| Color name | | Color name |
Revision as of 12:01, 7 November 2020
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 (highly requested 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 | pages with missing values go into Category:Todo:add interval ratio |
Monzo | Parameters of the Monzo notation | pages with missing values go into Category:Todo:add interval monzo |
Cents | Size in cents | pages with missing values go into Category:Todo:add interval cents |
Name | Name(s) of the interval | pages with missing values go into Category:Todo:add interval name |
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
|
FJS name | Functional Just System name | |
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 | FJS name = m7<sup>7</sup> | 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 = | FJS name = | Sound = }}