Module:Disassemble/categories

local disdata = mw.loadData('Module:Disassemble/data')

local p = {}

function p.main local ret = mw.html.create('table') :addClass('wikitable') :tag('tr') :tag('td') :wikitext('Category') :done :tag('td') :wikitext('often') :done :tag('td') :wikitext('sometimes') :done :tag('td') :wikitext('rarely') :done :tag('td') :wikitext('itemqty') :done :tag('td') :wikitext('compqty') :done :tag('td') :wikitext('junk') :done :tag('td') :wikitext('xp') :done :done

for w, v in pairs(disdata) do		ret:tag('tr') :tag('td') :wikitext(w) :done :tag('td') :wikitext(v.often) :done :tag('td') :wikitext(v.sometimes) :done :tag('td') :wikitext(v.rarely) :done :tag('td') :wikitext(v.itemqty) :done :tag('td') :wikitext(v.compqty) :done :tag('td') :wikitext(v.junk) :done :tag('td') :wikitext(v.xp) :done :done end

return ret end

return p