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 Availability: Difference between revisions

From The Petit Planet Wiki
Eleiyas (talk | contribs)
Created page with "local p = {} local Parse = require('Module:Parser').getTemplateArgs local Slib = require('Module:Shop') local lib = require('Module:Feature') function p.main(frame) local args = require('Module:Arguments').getArgs(frame, { parentOnly = false, wrapper = {'Template:Shop Availability'} }) local item = args[1] or mw.title.getCurrentTitle().rootText args._PAGES = {} args._BOOL = {nototal=1} if lib.isNotEmpty(args.pages) then for page in string.gmatch(args.pages..."
 
Eleiyas (talk | contribs)
default to Dough if no currency specified.
 
Line 84: Line 84:
data._SPECFIC = specific
data._SPECFIC = specific
data[1] = nil
data[1] = nil
data.currency = data.currency or call_data.currency or 'Denny'
data.currency = data.currency or call_data.currency or 'Dough'
if not args._BOOL.refresh and data.refresh then args._BOOL.refresh = 1 end
if not args._BOOL.refresh and data.refresh then args._BOOL.refresh = 1 end
if not args._BOOL.note and data.note then args._BOOL.note = 1 end
if not args._BOOL.note and data.note then args._BOOL.note = 1 end