Module:Infobox interval: Difference between revisions

Plumtree (talk | contribs)
m Bugfix
Plumtree (talk | contribs)
mNo edit summary
Line 5: Line 5:


function p.infobox_interval(frame)
function p.infobox_interval(frame)
local debug_mode = frame.args['debug'] ~= nil
-- TODO: better input parsing
-- TODO: better input parsing
local ratio_arg = frame.args['Ratio'] or '2/1'
local ratio_arg = frame.args['Ratio'] or '2/1'
Line 61: Line 63:
-- TODO: Sound, xen-calc (colspan 2)
-- TODO: Sound, xen-calc (colspan 2)
return infobox.build(
local s = infobox.build(
'<u>Interval information</u>',
'<u>Interval information</u>',
infobox_data
infobox_data
) .. cats
)
if not debug_mode then
s = s .. cats
end
return s
end
end


return p
return p