Editing Module:Drop Tables
Appearance
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| 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: | local category = mw.html.create():wikitext('[[Category:Lootboxes]]') | ||
local TS = lib.thousandsSeparator | local TS = lib.thousandsSeparator | ||
local total = {} | local total = {} | ||
| Line 47: | Line 47: | ||
end | end | ||
if not args. | if not args.lootbox or mw.title.getCurrentTitle().rootText == args.lootbox 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, ' | if (args.nocat == nil and i.nocat == nil) then category:wikitext('[[Category:', name, ' Lootboxes]]') end | ||
end | end | ||
end | end | ||
| Line 89: | Line 89: | ||
info['type'] = data['type'] | info['type'] = data['type'] | ||
--So we don't have dupe pages for Inspo Cards | --if (data['type'] == 'W-Engine') then | ||
--info.suffix = 'Icon' | |||
--end | |||
--So we don't have dupe pages for Inspo Cards and thousands of redirects. | |||
if (data['type'] == 'Inspo Card') then | if (data['type'] == 'Inspo Card') then | ||
info.text = ('Inspo Card: ' .. info.text) | info.text = ('Inspo Card: ' .. info.text) | ||
end | end | ||
row:tag('td'):node(Item(info)) | row:tag('td'):node(Item(info)) | ||