Module:Skills/Cartography: Difference between revisions

added id for POI rows and added LightTable
m (icon size 50)
(added id for POI rows and added LightTable)
Line 65: Line 65:
local POI_Strings = {}
local POI_Strings = {}
local tableStr = {}
local tableStr = {}
table.insert(tableStr, '{| class="wikitable sortable"')
table.insert(tableStr, '{| class="wikitable sortable lighttable"')
table.insert(tableStr, '\r\n|-\r\n!colspan="2"|Name!!Type!!X!!Y!!Requirements!!Discovery Rewards!!Active Effect')
table.insert(tableStr, '\r\n|-\r\n!colspan="2"|Name!!Type!!X!!Y!!Requirements!!Discovery Rewards!!Active Effect')
Line 89: Line 89:
table.insert(tableStr,'\r\n|-\r\n|')
table.insert(tableStr,'\r\n|-\r\n|')
table.insert(tableStr, Icons.Icon({POI.name, type='poi', notext='true', nolink='true', size='50'}))
table.insert(tableStr, Icons.Icon({POI.name, type='poi', notext='true', nolink='true', size='50'}))
table.insert(tableStr, '||'..POI.name)
table.insert(tableStr, '||id="'..string.gsub(POI.name,' ', '')..'"|'..POI.name)
local POIType = POI.type
local POIType = POI.type
if POIType == 'DigSite' then
if POIType == 'DigSite' then