Module:Sandbox/ProcrastinatingReader/ib: Difference between revisions

Content deleted Content added
+
+
Line 26:
function p.area(frame)
local args = getArgs(frame)
local argType = args['arg_type']
return frame:expandTemplate{ title = 'infobox_settlement/areadisp', args = {
['km2'] = args['area_total_km2area_'..argType..'_km2'] or dataValue(frame, args['subdivision_name'], 'area_total_km2area_'..argType..'_km2', args['name']),
['ha'] = args['area_total_haarea_'..argType..'_ha'],
['acre'] = args['area_total_acrearea_'..argType..'_acre'],
['sqmi'] = args['area_total_sq_miarea_'..argType..'_sq_mi'],
['dunam'] = args['area_total_dunamarea_'..argType..'_dunam'],
['link'] = args['dunam_link'],
['pref'] = args['unit_pref'],