User:Xenwolf/Template:Infobox Interval: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Xenwolf (talk | contribs)
...
Xenwolf (talk | contribs)
...
Line 5: Line 5:
margin-bottom: 0.5em;
margin-bottom: 0.5em;
padding: 0.25em 0.5em;
padding: 0.25em 0.5em;
background-color: #f8f8f8;
background-color: #fafafa;
<!-- width: 15em; -->
<!-- width: 15em; -->
float: right;
float: right;
Line 12: Line 12:
|+ <u>Interval information</u>
|+ <u>Interval information</u>
{{#if: {{{JI glyph|}}} |
{{#if: {{{JI glyph|}}} |
   {{!}} style="text-align:right; vertical-align: top" {{!}} [[JI glyphs|JI glyph]]&nbsp;
   {{!}} style="text-align:right; padding-right: 0.25em; vertical-align: top" {{!}} [[JI glyphs|JI glyph]]
   {{!}} style="background-color: white" {{!}} {{{JI glyph}}}
   {{!}} style="background-color: white" {{!}} {{{JI glyph}}}
}}
}}
|-
|-
{{#if: {{{Ratio|}}} |
{{#if: {{{Ratio|}}} |
   {{!}} style="text-align:right" {{!}} Ratio&nbsp;
   {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Ratio
   {{!}} style="background-color: white" {{!}} '''{{{Ratio}}}''' |
   {{!}} style="background-color: white" {{!}} '''{{{Ratio}}}''' |
   <includeonly><span style="color:red">Error: Parameter ''Ratio'' missing!</span> [[Template:Infobox Interval|Help ...]]<br/></includeonly>
   <includeonly><span style="color:red">Error: Parameter ''Ratio'' missing!</span> [[Template:Infobox Interval|Help ...]]<br/></includeonly>
Line 23: Line 23:
|-
|-
{{#if: {{{Monzo|}}} |
{{#if: {{{Monzo|}}} |
   {{!}} style="text-align:right" {{!}} [[Monzos|Monzo]]&nbsp;
   {{!}} style="text-align:right; padding-right: 0.25em" {{!}} [[Monzos|Monzo]]
   {{!}} style="background-color: white" {{!}} '''{{{Monzo}}}''' |
   {{!}} style="background-color: white" {{!}} '''{{{Monzo}}}''' |
   <includeonly><span style="color:red">Error: Parameter ''Monzo'' missing!</span> [[Template:Infobox Interval|Help ...]]<br/></includeonly>
   <includeonly><span style="color:red">Error: Parameter ''Monzo'' missing!</span> [[Template:Infobox Interval|Help ...]]<br/></includeonly>
Line 29: Line 29:
|-
|-
{{#if: {{{Cents|}}} |
{{#if: {{{Cents|}}} |
   {{!}} style="text-align:right" {{!}} Size in [[Cent|Cents]]&nbsp;
   {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Size in [[Cent|Cents]]
   {{!}} style="background-color: white" {{!}} '''{{{Cents}}}&#8239;&cent;''' |
   {{!}} style="background-color: white" {{!}} '''{{{Cents}}}&#8239;&cent;''' |
   <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 35: Line 35:
|-
|-
{{#if: {{{Name|{{{Names|}}}}}} |
{{#if: {{{Name|{{{Names|}}}}}} |
   {{!}} style="text-align:right" {{!}} Name(s)&nbsp;
   {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Name(s)
   {{!}} style="background-color: white" {{!}} '''{{{Name|{{{Names}}}}}}''' |
   {{!}} style="background-color: white" {{!}} '''{{{Name|{{{Names}}}}}}''' |
   <includeonly><span style="color:red">Error: Parameter ''Name'' or ''Names'' missing!</span> [[Template:Infobox Interval|Help ...]]<br/></includeonly>
   <includeonly><span style="color:red">Error: Parameter ''Name'' or ''Names'' missing!</span> [[Template:Infobox Interval|Help ...]]<br/></includeonly>
Line 41: Line 41:
|-
|-
{{#if: {{{Color name|{{{Color Name|}}}}}} |
{{#if: {{{Color name|{{{Color Name|}}}}}} |
   {{!}} style="text-align:right" {{!}} [[Kite's color notation|Color name]]&nbsp;
   {{!}} style="text-align:right; padding-right: 0.25em" {{!}} [[Kite's color notation|Color name]]
   {{!}} style="background-color: white" {{!}} '''{{{Color name|{{{Color Name}}}}}}'''
   {{!}} style="background-color: white" {{!}} '''{{{Color name|{{{Color Name}}}}}}'''
}}
}}

Revision as of 13:49, 22 October 2018

Interval information

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
JI glyph Just intonatin 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?
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
| JI glyph = [[File:glyph_7_4.png|124px]]
| 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
| JI glyph = 
| Ratio = 
| Monzo = 
| Cents = 
| Name = 
| Sound = 
| Color name = 
}}