Module:Drop Tables: Difference between revisions

No edit summary
Undo revision 37017 by Eleiyas (talk)
Tag: Undo
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
local lib = require('Module:Feature')
local lib = require('Module:Feature')
local Item = require('Module:Item')._main
local Item = require('Module:Item')._main
local category = mw.html.create():wikitext('[[Category:Lootboxes]]')
local category = mw.html.create():wikitext('[[Category:Drop Tables]]')
local TS = lib.thousandsSeparator
local TS = lib.thousandsSeparator
local total = {}
local total = {}
Line 47: Line 47:
end
end
if not args.lootbox or mw.title.getCurrentTitle().rootText == args.lootbox then
if not args.dtable or mw.title.getCurrentTitle().rootText == args.dtable then
out:node(require('Module:Namespace detect').main{main=category})
out:node(require('Module:Namespace detect').main{main=category})
end
end
Line 75: Line 75:
size = 25
size = 25
}):wikitext('<br />')
}):wikitext('<br />')
if (args.nocat == nil and i.nocat == nil) then category:wikitext('[[Category:', name, ' Lootboxes]]') end
if (args.nocat == nil and i.nocat == nil) then category:wikitext('[[Category:', name, ' Drop Tables]]') end
end
end
end
end