Module:Satchels

-- local p = {}

local Shared = require(Module:Shared)

function p.statTable local Satchels	= mw.loadData(Module:Satchels/data) local tableNode	= mw.html.create('table') :addClass('sortable article-table sticky-header') :css('width', '100%') :css('text-align', 'center') :tag('tr') :tag('th'):wikitext('Name'):done :tag('th'):wikitext('Tier'):done :tag('th'):wikitext('Level'):done :tag('th'):wikitext('Effects'):done :tag('th'):wikitext('Gear Score'):done :tag('th'):wikitext('Source'):done :tag('th'):wikitext('BOP'):done :tag('th'):wikitext('Crafting Exp'):done :tag('th'):wikitext('Resource'):done :done for name, Satchel in Shared.skpairs(Satchels) do       tableNode:tag('tr') :tag('td'):wikitext(..name..):done :tag('td'):wikitext(Satchel.Tier):done :tag('td'):wikitext(Satchel.Level):done :tag('td'):wikitext(Satchel.Effects):done :tag('td'):wikitext(Satchel.GearScore):done :tag('td'):wikitext(Satchel.Source):done :tag('td'):wikitext(Satchel.BOP):done :tag('td'):wikitext(Satchel.CraftingXP):done :tag('td'):wikitext(Satchel.Resource):done :done end

return tostring(tableNode:allDone) end

return p --