Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Shop: Difference between revisions

From The Petit Planet Wiki
No edit summary
Removed gsub()
 
(One intermediate revision by the same user not shown)
Line 16: Line 16:


function p._main(args)
function p._main(args)
local out = mw.html.create('table'):addClass('article-table fandom-table sortable ' .. (args.class or ''))
local out = mw.html.create('table'):addClass('wikitable sortable ' .. (args.class or ''))
local delim = args.delim or ';;'
local delim = args.delim or ';;'
local currency = args.currency or 'Dough'
local currency = args.currency or 'Dough'
Line 136: Line 136:
end
end
row:tag('td'):node(Item(info))
row:tag('td'):node(Item(info))
if (not args.nocat) then category:wikitext('[[Category:Sells ', specific:gsub('&', 'and'), '|', specific, ']]') end
if (not args.nocat) then category:wikitext('[[Category:Sells ', specific, '|', specific, ']]') end
end
end
if cost then
if cost then