Module:Infobox interval: Difference between revisions

Plumtree (talk | contribs)
mNo edit summary
Plumtree (talk | contribs)
m Irrational monzo support
Line 61: Line 61:
small = true
small = true
regular = true
regular = true
if value_provided(frame.args['Ket']) then
ket = frame.args['Ket']
end
ratio_string = frame.args['Ratio'] or ''
ratio_string = frame.args['Ratio'] or ''
end
end
Line 150: Line 153:
'Factorization',
'Factorization',
rat.factorisation(ratio)
rat.factorisation(ratio)
})
elseif value_provided(ket) then
-- irrational ket is provided:
table.insert(infobox_data, {
'[[Monzo]]',
frame:expandTemplate{
title = 'Monzo',
args = {ket}
}
})
})
end
end