Module:StoreTableHead: Difference between revisions

Jump to navigation Jump to search
no ge
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,hidege,hidebuy,hidesell,hidestock,hiderestock,hidecaption = params.defaults{
     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.hidege,'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('hideGE', hidege)
     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
    if not(yesno(hidege)) then
        ret:tag('th'):attr('data-sort-type', 'number'):wikitext('[[Grand Exchange|GE <br>price]]'):done()
     end
     end
     local i = 1
     local i = 1
899

edits

Navigation menu