Module:Shop: Difference between revisions
From The Petit Planet Wiki
More actions
ReisuDesign (talk | contribs) 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(' | 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 | if (not args.nocat) then category:wikitext('[[Category:Sells ', specific, '|', specific, ']]') end | ||
end | end | ||
if cost then | if cost then | ||