Module:Sandbox/GauTest/Township: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 526: Line 526:
local ret = {}
local ret = {}
table.insert(ret, '\r\n{| class="wikitable"')
table.insert(ret, '\r\n{| class="wikitable" style="text-align:center"')
-- Name
-- Name
table.insert(ret, '\r\n|-')
table.insert(ret, '\r\n|-')
for _, building in ipairs(buildingList) do
for _, building in ipairs(buildingList) do
table.insert(ret, '\r\n!'..building.name)
table.insert(ret, '\r\n!'..Icons.Icon({building.name, type='building'}))
end
 
-- Tier
table.insert(ret, '\r\n|-')
for _, building in ipairs(buildingList) do
local tier = p._GetTierText(building.tier)
table.insert(ret, '\r\n|'..tier)
end
end


572

edits