899
edits
m (we're not doing delta) |
(no ge) |
||
Line 7: | Line 7: | ||
function p.main(frame) | function p.main(frame) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
local currency,namenotes,smw,hideimage | local currency,namenotes,smw,hideimage,hidebuy,hidesell,hidestock,hiderestock,hidecaption = params.defaults{ | ||
{args.currency,'Coins'}, | {args.currency,'Coins'}, | ||
{args.namenotes,''}, | {args.namenotes,''}, | ||
{args.smw,'yes'}, | {args.smw,'yes'}, | ||
{args.hideimage,'no'}, | {args.hideimage,'no'}, | ||
{args.hidebuy,'no'}, | {args.hidebuy,'no'}, | ||
{args.hidesell,'no'}, | {args.hidesell,'no'}, | ||
Line 23: | Line 22: | ||
var.vardefine('smw', smw) | var.vardefine('smw', smw) | ||
var.vardefine('hideImage', hideimage) | var.vardefine('hideImage', hideimage) | ||
var.vardefine('hideBuy', hidebuy) | var.vardefine('hideBuy', hidebuy) | ||
var.vardefine('hideSell', hidesell) | var.vardefine('hideSell', hidesell) | ||
Line 43: | Line 41: | ||
if not(yesno(hidebuy)) then | if not(yesno(hidebuy)) then | ||
ret:tag('th'):attr('data-sort-type', 'number'):wikitext('Price<br>bought at'):done() | ret:tag('th'):attr('data-sort-type', 'number'):wikitext('Price<br>bought at'):done() | ||
end | end | ||
local i = 1 | local i = 1 |
edits