Template:Infobox ET: Difference between revisions

Xenwolf (talk | contribs)
m remove comment
Xenwolf (talk | contribs)
Remove alternative parameter names. Simplify description. Replace parameter name "Fifth type" by "Fifth"
Line 12: Line 12:
|+ '''{{PAGENAME}}'''
|+ '''{{PAGENAME}}'''
|-
|-
{{#if: {{{Prime factorization|{{{Prime Factorization|}}}}}} |
{{#if: {{{Prime factorization|}}} |
   {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Prime factorization
   {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Prime factorization
   {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Prime factorization|{{{Prime Factorization|}}}}}} '''
   {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Prime factorization|}}} '''
}}
}}
|-
|-
{{#if: {{{Step size|{{{Step Size|}}}}}} |
{{#if: {{{Step size|}}} |
   {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Step size
   {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Step size
   {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Step size|{{{Step Size|}}}}}}'''
   {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Step size|}}}'''
}}
}}
|-
|-
{{#if: {{{Fifth type|{{{Fifth|}}}}}} |
{{#if: {{{Fifth|{{{Fifth type|}}}}}} |
   {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Fifth
   {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Fifth
   {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Fifth type|{{{Fifth Type|}}}}}}'''
   {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Fifth|{{{Fifth type|}}}}}}'''
}}
}}
|-
|-
{{#if: {{{Major 2nd|{{{Major 2nd|}}}}}} |
{{#if: {{{Major 2nd|}}} |
   {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Major 2nd
   {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Major 2nd
   {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Major 2nd|{{{Major 2nd|}}}}}}'''
   {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Major 2nd|}}}'''
}}
}}
|-
|-
{{#if: {{{Minor 2nd|{{{Minor 2nd|}}}}}} |
{{#if: {{{Minor 2nd|}}} |
   {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Minor 2nd
   {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Minor 2nd
   {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Minor 2nd|{{{Minor 2nd|}}}}}}'''
   {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Minor 2nd|}}}'''
}}
}}
|-
|-
{{#if: {{{Augmented 1sn|{{{Augmented 1sn|}}}}}} |
{{#if: {{{Augmented 1sn|}}} |
   {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Augmented 1sn
   {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Augmented 1sn
   {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Augmented 1sn|{{{Augmented 1sn|}}}}}}'''
   {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Augmented 1sn|}}}'''
}}
|-
{{#if: {{{Semitones|{{{Semitones|}}}}}} |
  {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Semitones (A1:m2)
  {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Semitones|{{{Semitones|}}}}}}'''
}}
}}
|}
|}
</div><includeonly><!-- this includeonly section is for changing parameter names to regular form -->{{#if: {{{Prime Factorization|}}}
</div><includeonly><!-- this includeonly section is for changing parameter names to regular form -->{{#if: {{{Fifth type|}}}  
| [[Category:Todo:normalize EDO parameters]]}}{{#if: {{{Step Size|}}}
| [[Category:Todo:normalize EDO parameters]]}}{{#if: {{{Fifth Type|}}}  
| [[Category:Todo:normalize EDO parameters]]}}</includeonly><noinclude>
| [[Category:Todo:normalize EDO parameters]]}}</includeonly><noinclude>


The template '''Infobox ET''' was built to help presenting basic information about [[EDO]]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 ET''' was built to help presenting basic information about [[EDO]]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 (highly requested parameters in '''bold'''):
The templates supports the following parameters:


{| class="wikitable"
{| class="wikitable"
Line 61: Line 54:
|-
|-
| Prime factorization  
| Prime factorization  
| Prime factorization of the equal temperament (e.g. 12 = 2<sup>2</sup> * 3). Can be left blank if the EDO is prime.
| Prime factorization of the equal temperament (e.g. 12 = 2<sup>2</sup> * 3)
|-
|-
| Step size
| Step size
| One step of the equal temperament in cents.
| One step (1200/edo) of the equal temperament in cents (3 decimal places).
|-
|-
| Fifth type
| Fifth
| The best approximation of 3/2, in edosteps and in cents. If a fifth is the same as a fifth in a lower edo, then state that instead.
| (<s>Fifth type</s>) The best approximation of 3/2, the perfect fifth (P5), in edosteps and in cents. (<code>P5 := round(log2(3/2)*edo)</code>)
|-
|-
| Major 2nd
| Major 2nd
| Size of the 3-limit major 2nd in edosteps and cents. Edosteps are mapped indirectly (so that 16-edo's M2 is 2\16 not 3\16).
| Size of the 3-limit major second (M2) in edosteps and cents. (<code>M2 := 2*P5 - P8</code>)  
|-
| ''Minor 2nd''
| (To be removed) Size of the 3-limit minor 2nd in edosteps and cents. Edosteps are mapped indirectly.
|-
|-
| ''Augmented 1sn''
| Minor 2nd
| (To be removed) Size of the 3-limit augmented unison 2nd in edosteps and cents. Edosteps are mapped indirectly. This is also the sharpness/flatness of the edo.
| Size of the 3-limit minor second (m2) in edosteps and cents. (<code>m2 := 3*P8 - 5*P5</code>)
|-
|-
| Semitones
| Augmented 1sn
| Size of the 3-limit augmented unison and minor second in edosteps, mapped indirectly.  
| Size of the 3-limit augmented unison (A1) in edosteps and cents. This is also the sharpness/flatness of the edo. (<code>A1 := M2 - m2</code>)
|}
|}


Line 86: Line 76:
| Prime factorization = 2<sup>3</sup> * 3
| Prime factorization = 2<sup>3</sup> * 3
| Step size = 50¢
| Step size = 50¢
| Fifth type =14\24 = 700¢ = [[12edo]]
| Fifth = 14\24 = 700¢
| Major 2nd = 4\24 = 200¢
| Major 2nd = 4\24 = 200¢
| Semitones = 2:2
| Minor 2nd = 2\24 = 100¢
| Augmented 1sn = 2\24 = 100¢
}}</nowiki>
}}</nowiki>


Line 97: Line 88:
| Prime factorization =  
| Prime factorization =  
| Step size = {{subst:#number_format:{{subst:#expr:1200/{{subst:#regex:{{subst:PAGENAME}}|/(\d+)-?EDO/i|\1}}}}|3}}
| Step size = {{subst:#number_format:{{subst:#expr:1200/{{subst:#regex:{{subst:PAGENAME}}|/(\d+)-?EDO/i|\1}}}}|3}}
| Fifth type =  
| Fifth =  
| Major 2nd =  
| Major 2nd =  
| Semitones =  
| Minor 2nd =
| Augmented 1sn =  
}}</nowiki>
}}</nowiki>