Module:Earrings

-- local p = {}

local Shared = require(Module:Shared)

function p.statTable local Earrings	= mw.loadData(Module:Earrings/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('Resource'):done :done for name, Earring in Shared.skpairs(Earrings) do       tableNode:tag('tr') :tag('td'):wikitext(..name..):done :tag('td'):wikitext(Earring.Tier):done :tag('td'):wikitext(Earring.Level):done :tag('td'):wikitext(Earring.Effects):done :tag('td'):wikitext(Earring.GearScore):done :tag('td'):wikitext(Earring.Source):done :tag('td'):wikitext(Earring.BOP):done :tag('td'):wikitext(Earring.Resource):done :done end

return tostring(tableNode:allDone) end

return p --