Module:GauTest/Township: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 672: Line 672:
-- Setup the table
-- Setup the table
local ret = {}
local ret = {}
table.insert(ret, '\r\n{| class="wikitable"')
table.insert(ret, '\r\n{| class="wikitable sortable" style="text-align:center"')
table.insert(ret, '\r\n!Building')
table.insert(ret, '\r\n!style="text-align:left"|Building')
-- Make a biomeModifiers table that will keep track of the bonus of each building
-- Make a biomeModifiers table that will keep track of the bonus of each building
Line 701: Line 701:
-- Let's build the row
-- Let's build the row
table.insert(ret, '\r\n|-')
table.insert(ret, '\r\n|-')
table.insert(ret, '\r\n!'..Icons.Icon({building.name, type='building'}))
table.insert(ret, '\r\n!data-sort-value="'..building.name..'" style="text-align:left"|'..Icons.Icon({building.name, type='building'}))
for _, biome in ipairs(Township.biomes) do
for _, biome in ipairs(Township.biomes) do
local modifier = biomeModifiers[biome.id]
local modifier = biomeModifiers[biome.id]
572

edits