Module:Arcane

-- local p = {}

local Shared = require(Module:Shared)

function p.statTable local Arcane	= mw.loadData(Module:Arcane/data) local tableNode	= mw.html.create('table') :addClass('sortable article-table sticky-header mw-collapsible mw-collapsed') :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('Station Level'):done :tag('th'):wikitext('Skill Level'):done :tag('th'):wikitext('Crafting Skill'):done :tag('th'):wikitext('Crafting XP'):done :done for name, Arcane in Shared.skpairs(Arcane, function(a, b) return Arcane[a]["SkillLevel"] < Arcane[b]["SkillLevel"] end) do       tableNode:tag('tr') :tag('td'):wikitext(..name..):done :tag('td'):wikitext(Arcane.Tier):done :tag('td'):wikitext(Arcane.Category):done :tag('td'):wikitext(Arcane.Resources):done :tag('td'):wikitext(Arcane.Yield):done :tag('td'):wikitext(Arcane.StationLVL):done :tag('td'):wikitext(..Arcane.SkillLevel..):done :tag('td'):wikitext(..Arcane.CraftSkill..):done :tag('td'):wikitext(..Arcane.CraftingXP..):done :done end

return tostring(tableNode:allDone) end

return p --