Module:Tannery

-- local p = {}

local Shared = require(Module:Shared)

function p.statTable local Tannery	= mw.loadData(Module:Tannery/data) local tableNode	= mw.html.create('table') :addClass('sortable article-table sticky-header mw-collapsible') :css('width', '100%') :css('text-align', 'center') :tag('tr') :tag('th'):wikitext('Name'):done :tag('th'):wikitext('Tier'):done :tag('th'):wikitext('Category'):done :tag('th'):wikitext('Resources'):done :tag('th'):wikitext('Yield'):done :tag('th'):wikitext('Tannery Level'):done :tag('th'):wikitext('Skill Level'):done :tag('th'):wikitext('Crafting Skill'):done :tag('th'):wikitext('Crafting Exp'):done :done for name, Tannery in Shared.skpairs(Tannery, function(a, b) return Tannery[a]["SkillLevel"] < Tannery[b]["SkillLevel"] end) do       tableNode:tag('tr') :tag('td'):wikitext(..name..):done :tag('td'):wikitext(Tannery.Tier):done :tag('td'):wikitext(Tannery.Category):done :tag('td'):wikitext(Tannery.Resources):done :tag('td'):wikitext(Tannery.Yield):done :tag('td'):wikitext(Tannery.StationLVL):done :tag('td'):wikitext(..Tannery.SkillLevel..):done :tag('td'):wikitext(..Tannery.CraftSkill..):done :tag('td'):wikitext(..Tannery.CraftingXP..):done :done end

return tostring(tableNode:allDone) end

return p --