Module:Infobox interval: Difference between revisions

Plumtree (talk | contribs)
mNo edit summary
Plumtree (talk | contribs)
m Comma classification is only done when requested
Line 104: Line 104:
end
end
local is_comma = frame.args['Comma'] and #(frame.args['Comma']) > 0
local comma = nil
local comma = nil
if regular and cents > 0 then
if is_comma and regular and cents > 0 then
if rational and rat.is_power(ratio) then
if rational and rat.is_power(ratio) then
-- rational powers are not considered commas
-- rational powers are not considered commas
Line 124: Line 125:
if comma then
if comma then
table.insert(infobox_data, {
table.insert(infobox_data, {
'[[Comma]]',
'[[Comma|Comma size]]',
comma
comma
})
})