Module:Interval table: Difference between revisions

Copypaste utils.get_monzo here
m Style
Line 77: Line 77:
end
end


-- ???
local function mysplit(inputstr, sep)
local function mysplit(inputstr, sep)
if sep == nil then
if sep == nil then
Line 114: Line 115:
}
}


local t_head = '{| class="wikitable"\n'
local t_head = '{| class="wikitable center-1 right-2"\n'
if et.size > 72 then
if et.size > 72 then
t_head = '{| class="wikitable mw-collapsible mw-collapsed"\n'
t_head = '{| class="wikitable center-1 right-2 mw-collapsible mw-collapsed"\n'
end
end
local fifth = patent_val[3] - patent_val[2]
local fifth = patent_val[3] - patent_val[2]
Line 133: Line 134:
if dual_fifth then
if dual_fifth then
wikitext = wikitext
wikitext = wikitext
.. "! [[Ups and downs notation]]<br>(dual flat fifth "
.. "! [[Ups and downs notation|Ups and Downs Notation]]<br>(Dual Flat Fifth "
.. dual_flat_fifth
.. dual_flat_fifth
.. "\\"
.. "\\"
Line 139: Line 140:
.. ")\n"
.. ")\n"
wikitext = wikitext
wikitext = wikitext
.. "! [[Ups and downs notation]]<br>(dual sharp fifth "
.. "! [[Ups and downs notation|Ups and Downs Notation]]<br>(Dual Sharp Fifth "
.. dual_sharp_fifth
.. dual_sharp_fifth
.. "\\"
.. "\\"
Line 145: Line 146:
.. ")\n"
.. ")\n"
else
else
wikitext = wikitext .. "! [[Ups and downs notation]]\n"
wikitext = wikitext .. "! [[Ups and downs notation|Ups and Downs Notation]]\n"
end
end
end
end


wikitext = wikitext .. "! Approximate ratios\n"
wikitext = wikitext .. "! Approximate Ratios\n"


if #additional_split > 0 then
if #additional_split > 0 then