Anonymous

Module:Sandbox/Skills/Cartography: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
 
Line 307: Line 307:
local noicon = frame.args['noicon'] or false
local noicon = frame.args['noicon'] or false
local nolink = frame.args['nolink'] or false
local nolink = frame.args['nolink'] or false
local coords = '<span>(' .. X .. ', ' .. Y .. ')</span>'
local coords = '<span>(' .. X .. ',' .. Y .. ')</span>'
-- Valid, but not a POI
-- Valid, but not a POI
if hex['id'] == nil or noicon then
if hex['id'] == nil or noicon then
Line 313: Line 313:
end
end
-- Valid POI
-- Valid POI
local poi_icon = Icons.Icon({hex['name'], type='poi', notext=notext, nolink=nolink, size='25'})
local poi_icon = Icons.Icon({hex['name'], type='poi', notext=notext or nil, nolink=nolink or nil, size='25'})
return '<span>' .. poi_icon .. coords .. '</span>'
return '<span>' .. poi_icon .. ' ' .. coords .. '</span>'
end
end


432

edits