Template:Infobox ET: Difference between revisions

Xenwolf (talk | contribs)
removed warning about ¢ being included in Step size parameter (Kite obviously doesn't notice the idea to keep the parameters as concise as possible)
ArrowHead294 (talk | contribs)
mNo edit summary
 
(31 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<div style="
<includeonly>{{#invoke: Infobox_ET | infobox_ET
border: 1px solid #999;
| name = Infobox ET
margin: 0;
| tuning = {{{1|{{SUBPAGENAME}}}}}
margin-left: 1em;
| Prime factorization = {{{Prime factorization|}}}
margin-bottom: 0.5em;
| Zeta = {{{Zeta|}}}
padding: 0.5em;
| Consistency = {{{Consistency|}}}
background-color: #f0f0f0;
| Distinct consistency = {{{Distinct consistency|{{{Distinct|}}}}}}
min-width: 15em;
| debug = {{lc:{{{debug|}}}}}
float: right;
}}</includeonly><noinclude>
">
{{documentation}}
{| width="100%" style="border-collapse: collapse;"
|+ '''{{PAGENAME}}'''
|-
{{#if: {{{Prime factorization|{{{Prime Factorization|}}}}}} |
  {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Prime factorization
  {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Prime factorization|{{{Prime Factorization|}}}}}} '''
}}
|-
{{#if: {{{Step size|{{{Step Size|}}}}}} |
  {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Step size
  {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Step size|{{{Step Size|}}}}}}'''
}}
|-
{{#if: {{{Fifth type|{{{Fifth|}}}}}} |
  {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Fifth
  {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Fifth type|{{{Fifth Type|}}}}}}'''
}}
|-
{{#if: {{{Major 2nd|{{{Major 2nd|}}}}}} |
  {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Major 2nd
  {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Major 2nd|{{{Major 2nd|}}}}}}'''
}}
|-
{{#if: {{{Minor 2nd|{{{Minor 2nd|}}}}}} |
  {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Minor 2nd
  {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Minor 2nd|{{{Minor 2nd|}}}}}}'''
}}
|-
{{#if: {{{Augmented 1sn|{{{Augmented 1sn|}}}}}} |
  {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Augmented 1sn
  {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Augmented 1sn|{{{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|}}}
| [[Category:Todo:normalize EDO parameters]]}}{{#if: {{{Step Size|}}}
| [[Category:Todo:normalize EDO parameters]]}}{{#if: {{{Fifth Type|}}}
<! -- | [[Category:Todo:normalize EDO parameters]]}}{{#if:{{#regex:{{{Step size|}}}|/[\d.]+(.*)/|\1}} -->
| [[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.
[[Category:Infoboxes]]
 
The templates supports the following parameters (highly requested parameters in '''bold'''):
 
{| class="wikitable"
! width="15%" | Parameter
! width="85%" | Meaning, usage hints
|-
| 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.
|-
| Step size
| One step of the equal temperament in cents.
|-
| Fifth type
| 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.
|-
| 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).
|-
| ''Minor 2nd''
| (To be removed) Size of the 3-limit minor 2nd in edosteps and cents. Edosteps are mapped indirectly.
|-
| ''Augmented 1sn''
| (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.
|-
| Semitones
| Size of the 3-limit augmented unison and minor second in edosteps, mapped indirectly.
|}
 
Usage example for [[24edo]]:
<nowiki>{{Infobox ET
| Prime factorization = 2<sup>3</sup> * 3
| Step size = 50¢
| Fifth type =14\24 = 700¢ = [[12edo]]
| Major 2nd = 4\24 = 200¢
| Semitones = 2:2
}}</nowiki>
 
----
 
Empty (Step size is self-filling) template for copy &amp; paste (to avoid copying wrong values from edo pages:
<nowiki>{{Infobox ET
| Prime factorization =
| Step size = {{subst:#number_format:{{subst:#expr:1200/{{subst:#regex:{{subst:PAGENAME}}|/(\d+)-?EDO/i|\1}}}}|3}}
| Fifth type =
| Major 2nd =
| Semitones =
}}</nowiki>
 
== See also ==
 
* [[Template:Infobox Interval]]
 
{{todo
| inline=1
| comment=Reach consensus on parameters, see discussion page!
<!-- | cleanup -->
}}
 
[[Category:Templates]]
<!-- interwiki -->
</noinclude>
</noinclude>