Module:Sandbox/ProcrastinatingReader/ib: Difference between revisions

Content deleted Content added
c
+
Line 34:
local args = getArgs(frame)
['dunam'] local km2 = getNetValue(frame, 'dunamkm2'),
return frame:expandTemplate{ title = 'infobox_settlement/areadisp', args = {
['km2'] local ha = getNetValue(frame, 'km2ha'),
['ha'] local acre = getNetValue(frame, 'haacre'),
['acre'] local sqmi = getNetValue(frame, 'acresq_mi'),
['sqmi'] local dunam = getNetValue(frame, 'sq_midunam'),
['dunam'] = getNetValue(frame, 'dunam'),
if km2 or ha or acre or sqmi or dunam then
['link'] = args['dunam_link'],
return frame:expandTemplate{ title = 'infobox_settlement/areadisp', args = {
['pref'] = args['unit_pref'],
['namekm2'] = args['subdivision_name']km2,
['magha'] = args['area_magnitude']ha,
['acre'] = acre,
}}
['sqmi'] = sqmi,
['dunam'] = dunam,
['link'] = args['dunam_link'],
['pref'] = args['unit_pref'],
['name'] = args['subdivision_name'],
['mag'] = args['area_magnitude']
}}
else
return ""
end
end