User:Plumtree/Infobox Interval: Difference between revisions

Plumtree (talk | contribs)
mNo edit summary
Plumtree (talk | contribs)
mNo edit summary
Line 10: Line 10:


== Usage ==
== Usage ==
There are three different ways to use this template:
* Small ratios: <code><nowiki>{{Infobox Interval}}</nowiki></code> (the ratio is inferred from page name), <code><nowiki>{{Infobox Interval|7/4}}</nowiki></code>, <code><nowiki>{{Infobox Interval|Ratio=7/4}}</nowiki></code>.
** In this form, '''Factorization''', '''Subgroup''', '''Ket'''/'''Monzo''', '''Cents''', '''FJS name''', '''Norms''', '''Harmonic entropy''' are computed automatically.
* Large ratios: <code><nowiki>{{Infobox Interval|Ket=-2 0 0 1}}</nowiki></code>, <code><nowiki>{{Infobox Interval|Monzo=-2 0 0 1}}</nowiki></code>.
** In this form, '''Ratio''' and '''Norms''' are omitted, '''Factorization''', '''Subgroup''', '''Ket'''/'''Monzo''', '''Cents''', '''FJS name''', '''Harmonic entropy''' are computed automatically.
* Irrational intervals: <code><nowiki>{{Infobox Interval|Ratio=π|Cents=1981.795}}</nowiki></code>.
** In this form, '''Ratio''' and '''Cents''' are printed as provided, '''Factorization''', '''Subgroup''', '''Ket'''/'''Monzo''', '''FJS name''', '''Norms''', '''Harmonic entropy''' are omitted.
The templates supports the following parameters:
The templates supports the following parameters: