Module:Infobox interval: Difference between revisions

Plumtree (talk | contribs)
mNo edit summary
Plumtree (talk | contribs)
mNo edit summary
Line 90: Line 90:
'Size in [[cent]]s',
'Size in [[cent]]s',
u._round(cents, 8) .. '¢'
u._round(cents, 8) .. '¢'
})
end
local comma = nil
if regular and cents > 0 then
if cents <= 3.5 then
comma = '[[Unnoticeable comma|unnoticeable]]'
elseif cents <= 30 then
comma = '[[Small comma|small]]'
elseif cents <= 100 then
comma = '[[Medium comma|medium]]'
elseif cents <= 250 then
comma = '[[Large comma|large]]'
end
end
if comma then
table.insert(infobox_data, {
'[[Comma]]',
comma
})
})
end
end