Module:Shop: Difference between revisions
re-pasted ZZZ version, as whatever was here seems a little buggy. |
m small tweak. |
||
| Line 18: | Line 18: | ||
local out = mw.html.create('table'):addClass('article-table wikitable sortable ' .. (args.class or '')) | local out = mw.html.create('table'):addClass('article-table wikitable sortable ' .. (args.class or '')) | ||
local delim = args.delim or ';;' | local delim = args.delim or ';;' | ||
local currency = args.currency or ' | local currency = args.currency or 'Dough' | ||
local stock = args.stock or 'Stock' | local stock = args.stock or 'Stock' | ||
| Line 78: | Line 78: | ||
local cost = data[2] | local cost = data[2] | ||
local stock = data[3] or data.stock | local stock = data[3] or data.stock | ||
local currency = data.currency or args.currency or ' | local currency = data.currency or args.currency or 'Dough' | ||
function getCost(i) | function getCost(i) | ||