Module:Weather box/sandbox: Difference between revisions

Content deleted Content added
No edit summary
Simplify
Line 34:
if isAny(args, ' ' .. what .. ' cm') then
first = 'cm'
if elseif isAny(args, ' ' .. what .. ' mm') then
first = 'mm'
else
first = (what:sub(1, 4) == 'snow' or
if isAny(args, ' ' .. what .. ' mm') then
precision(args['Jan ' .. what .. ' inch'] or '0') < 1)
first = 'mm'
and 'cm'
else
or 'mm'
first = (what:sub(1, 4) == 'snow' or
precision(args['Jan ' .. what .. ' inch'] or '0') < 1)
and 'cm'
or 'mm'
end
end
local second = 'inches'