Module:Infobox MOS: Difference between revisions

Ganaram inukshuk (talk | contribs)
m font-size: 1.25em -> font-size: 1em (for kb-vis)
Ganaram inukshuk (talk | contribs)
Separating generator size into two lines each, with annotations
Line 294: Line 294:
local section_header = "Step size ranges"
local section_header = "Step size ranges"
local ed_annotation = ""
if rat.eq(input_mos.equave, 3) then
if rat.eq(input_mos.equave, 3) then
section_header = section_header .. " in steps of edt"
ed_annotation = '<sup><abbr title="In steps of edt">(edf)</sup>'
elseif rat.eq(input_mos.equave, rat.new(3,2)) then
elseif rat.eq(input_mos.equave, rat.new(3,2)) then
section_header = section_header .. " in steps of edf"
ed_annotation = section_header .. '<sup><abbr title="In steps of edf">(edf)</sup>'
elseif not rat.eq(input_mos.equave, 2) then
elseif not rat.eq(input_mos.equave, 2) then
section_header = string.format("%s in steps of ed%s", section_header, rat.as_ratio(input_mos.equave))
ed_annotation = string.format('<sup><abbr title="In steps of ed%s">(edf)</sup>', rat.as_ratio(input_mos.equave))
end
end
local section_entries = {
local section_entries = {
{string.format("<b>%s</b>", section_header)},
{string.format("<b>%s</b>", section_header)},
{"[[Step pattern | Large]]", string.format("%s to %s (%.1f¢ to %.1f¢)", large_step_min_in_steps, large_step_max_in_steps, large_step_min_in_cents, large_step_max_in_cents)},
{"[[Step pattern | Large]]", string.format("Steps%s: %s to %s<br>Cents: %.1f¢ to %.1f¢", large_step_min_in_steps, large_step_max_in_steps, large_step_min_in_cents, large_step_max_in_cents)},
{"[[Step pattern | Small]]", string.format("%s to %s (%.1f¢ to %.1f¢)", small_step_min_in_steps, large_step_min_in_steps, small_step_min_in_cents, large_step_min_in_cents)}
{"[[Step pattern | Small]]", string.format("Steps%s: %s to %s<br>Cents: %.1f¢ to %.1f¢)", small_step_min_in_steps, large_step_min_in_steps, small_step_min_in_cents, large_step_min_in_cents)}
}
}