Module:Ammunitions

-- local p = {}

local Shared = require(Module:Shared)

function p.statTable local Ammunitions	= mw.loadData(Module:Ammunitions/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('Category'):done :tag('th'):wikitext('Tier'):done :tag('th'):wikitext('Source'):done :tag('th'):wikitext('Level'):done :tag('th'):wikitext('Resources'):done :tag('th'):wikitext('SkillLevel'):done :tag('th'):wikitext('StationLVL'):done :tag('th'):wikitext('CraftingXP'):done :done for name, Ammunition in Shared.skpairs(Ammunitions) do       tableNode:tag('tr') :tag('td'):wikitext(..name..):done :tag('td'):wikitext(Ammunition.Category):done :tag('td'):wikitext(Ammunition.Tier):done :tag('td'):wikitext(Ammunition.Source):done :tag('td'):wikitext(Ammunition.Level):done :tag('td'):wikitext(Ammunition.Resources):done :tag('td'):wikitext(Ammunition.SkillLevel):done :tag('td'):wikitext(Ammunition.StationLVL):done :tag('td'):wikitext(Ammunition.CraftingXP):done :done end

return tostring(tableNode:allDone) end

return p --