Module:Shop Availability: Difference between revisions
From The Petit Planet Wiki
More actions
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..." |
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 ' | 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 | ||