Module:Sandbox/ProcrastinatingReader/ib: Difference between revisions

Content deleted Content added
+
+
Line 8:
itemName
}}
end
 
local function getNetValue(frame, argType, argName)
local args = getArgs(frame)
local net = args['area_'..argType..'_'..argName] or dataValue(frame, args['subdivision_name'], 'area_'..argType..'_'..argName, args['name'])
return net
end
 
Line 29 ⟶ 35:
return frame:expandTemplate{ title = 'infobox_settlement/areadisp', args = {
['km2'] = args['area_'..argType..'_km2'] or dataValuegetNetValue(frame, args['subdivision_name'], 'area_'..argType..'_km2', args['namekm2']),
['ha'] = args['area_'..argType..'_ha'],
['acre'] = args['area_'..argType..'_acre'],