Template:Infobox interval: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Xenwolf (talk | contribs)
m removed spaces in copy template
Xenwolf (talk | contribs)
test: icon framed
Line 12: Line 12:
|+ '''Interval info'''
|+ '''Interval info'''
{{#if: {{{Icon|}}} |
{{#if: {{{Icon|}}} |
   {{!}} colspan="2" style="text-align:center" {{!}} {{{Icon}}}
   {{!}} colspan="2" style="text-align:center" {{!}} <div style="background-color: white; padding: 2px;">{{{Icon}}}</div>
}}
}}
|-
|-

Revision as of 15:01, 11 October 2018

Interval info
Ratio  Ratio?
Monzo  [Monzo?
Size in Cents (¢)  Cents?
Name(s)  Names?

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) od the interval Maybe better optional?
Sound Soundfile is 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
| 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
}}

Empty template for copy & paste (to avoid copying wrong values from interval pages:

{{Infobox Interval
| Icon =
| Ratio =
| Monzo =
| Cents =
| Name =
| Sound =
}}