Module:Weather box/row: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 311:
local annual_mode = (frame.args.annual_mode or 'avg'):lower();
local include_space = checkFlag( frame.args.include_space ) or true;
local imperial_first = checkFlag( frame.args.imperial_first );
local metric_first = checkFlag( frame.args.metric_first );
local result;
 
local pframe = frame:getParent();
local imperial_first = checkFlag( frame.args.imperial_first or pframe.args.imperial_first );
local metric_first = checkFlag( frame.args.metric_first or pframe.args.metric_first );
if imperial_first == nil and metric_first ~= nil then
imperial_first = not metric_first;
Line 320 ⟶ 321:
imperial_first = true;
end
 
local pframe = frame:getParent();
 
if mode == 'basic' then