Template:Infobox interval: Difference between revisions

Xenwolf (talk | contribs)
... still under construction ...
 
Fredg999 (talk | contribs)
Add parameter for harmonic entropy (opt-in switch)
 
(47 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<div style="
<includeonly>{{#invoke: Infobox_interval | infobox_interval
border: 1px solid #999;
| Ratio={{{1|{{{Ratio|{{PAGENAME}}}}}}}}
margin: 0;
| Ket={{{Ket|{{{Monzo|}}}}}}
margin-left: 1em;
| Cents={{{Cents|}}}
margin-bottom: 0.5em;
| Comma={{{Comma|}}}
padding: 0.25em 0.5em;
| Name={{{Name|}}}
background-color: #fafafa;
| Color name={{{Color name|}}}
<!-- width: 15em; -->
| FJS name={{{FJS name|}}}
float: right;
| Sound={{{Sound|}}}
">
| Calc={{{Calc|}}}
{|
| debug={{lc:{{{debug|}}}}}
|+ '''Interval Info'''
| Harmonic entropy={{lc:{{{Harmonic entropy|}}}}}
{{#if: {{{Icon|}}} |
}}</includeonly><noinclude>
  {{!}} colspan="2" style="text-align:center" {{!}} {{{Icon}}}
{{documentation}}
}}
|-
| style="text-align:right" | Ratio&nbsp; || '''{{{Ratio|[[Template:Infobox Interval|Ratio?]]}}}'''
|-
| style="text-align:right" | [[Monzo notation]]&nbsp; || '''{{Monzo|{{{Monzo|[[Template:Infobox Interval|Monzo?]]}}} }}'''
|-
| style="text-align:right" | Size in [[Cent|Cents (&cent;)]]&nbsp; || '''{{{Cents|[[Template:Infobox Interval|Cents?]]}}}'''
|-
| style="text-align:right" | Name(s)&nbsp; || '''{{{Name|{{{Names|[[Template:Infobox Interval|Names?]]}}}}}}'''
|-
{{#if: {{{Sound|}}} |
  {{!}} colspan="2" style="text-align: center;" {{!}} [[File:{{{Sound}}}]]<br/><small>[[:File:{{{Sound}}}|[sound info]]]</small>
}}
|}
</div><noinclude>


The template '''Infobox Interval''' was built to help presenting basic informations about [[Interval]]s in a unified form, to make them obvious by glance. Alaos the formatting of the wiki text is easier to read/change.
[[Category:Infoboxes]]
 
The templates supports the following parameters (mandatory parameters in '''bold'''):
 
{| class="wikitable"
! Parameter
! Meaning
! Usage hints, Remarks
|-
| Icon
| Image or Symbol, if one exists
| complete with prefix "File:" and brackets
|-
| '''Ratio'''
| Verhältnis der beteiligten Schwingungen
| '''''Solle es alternativ "Schwingungsverhältnis" heißen?'''''
|-
| '''Cents'''
| Größenangabe in [[Cent]]
|
|-
| '''Monzo'''
| Parameter der [[Monzo-Schreibweise]]
|
|-
| '''Namen''' <br/> oder '''Name'''
| Bezeichnung(en) des Intervalls
| '''''Sollte das besser optional sein?'''''
|-
| Sound
| Sounddatei falls vorhanden
| Nur Name ohne Präfix "File:" (und ohne eckigen Klammern)
|}
 
Hier die Benutzung der Vorlage am Beispiel der Oktave ([[2/1]]).
<nowiki>{{Infobox Intervall
| Bruch = 2/1
| Cents = 1200
| Monzo = 1
| Namen = Oktave
}}</nowiki>
 
[[Kategorie:Vorlagen]]
 
[[de:Vorlage:Infobox Intervall]]
</noinclude>
</noinclude>