Module:Infobox ET: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 38: | Line 38: | ||
local link = rat.as_table(ratio)[2] .. et.suffix | local link = rat.as_table(ratio)[2] .. et.suffix | ||
ratio = string.format(" (→ [[%s|%s%s]])", | ratio = string.format(" (→ [[%s|%s%s]])", | ||
link, | link, rat.as_ratio(ratio, "\\"), (rat.eq(et.equave, 2) == false and et.suffix or "")) | ||
else | else | ||
ratio = "" | ratio = "" | ||
| Line 47: | Line 45: | ||
local cents = utils._round(ET.cents(et, approx), 6) | local cents = utils._round(ET.cents(et, approx), 6) | ||
return | return string.format("%s\\%s (%s{{c}})%s%s", | ||
approx, tuning, utils._round(ET.cents(et, approx), 6), ratio, convergement_notice) | |||
end | end | ||