Jump to content

Editing Module:Drop Tables

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
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:Drop Tables]]')
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.dtable or mw.title.getCurrentTitle().rootText == args.dtable then
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, ' Drop Tables]]') end
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 (etc.) and thousands of redirects.
--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
if (data['type'] == 'Eye Color') then
info.text = ('Eye Color: ' .. info.text)
end
if (data['type'] == 'Eye Style') then
info.text = ('Eye Style: ' .. info.text)
end
if (data['type'] == 'Hair Color') then
info.text = ('Hair Color: ' .. info.text)
end
if (data['type'] == 'Hairstyle') then
info.text = ('Hairstyle: ' .. info.text)
end
row:tag('td'):node(Item(info))
row:tag('td'):node(Item(info))
Please note that all contributions to The Petit Planet Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see Petit Planet Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template
Below are commonly used wikitext from MediaWiki:Edittools. Click on any to insert them in the edit box.
File Pages==Summary====Licensing=={{Fairuse}}{{File|}}
Dynamic Page List¦²«»²{¦}²«»«/»«!----»
Array in DPL¹^2{}^2^2{¹}^2
Parser Functions{{#if:||}}
{{#ifeq:|||}}
{{#expr:}}
{{#switch:||#default=}}
{{#replace:||}}
{{#titleparts:}}
{{#tag:|}}
Markup{{}}|[][[]][[Category:]]#REDIRECT [[]] [[Category:Redirect Pages]]<code></code><includeonly></includeonly><noinclude></noinclude><nowiki></nowiki><!----><br>§
Notices{{Stub|}}{{Stub Dialogue}}{{Upcoming}}{{Under Construction}}{{Placeholder|}}
Magic Words{{!}}{{formatnum:}}{{lc:}}{{uc:}}{{PAGENAME}}{{FULLPAGENAME}}{{ROOTPAGENAME}}{{BASEPAGENAME}}{{SUBPAGENAME}}{{DISPLAYTITLE:|noreplace}}__TOC____NOTOC____EXPECTUNUSEDCATEGORY____HIDDENCAT__
HTML Entities&mdash;&nbsp;&comma;&shy;