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..." |
fandom-table -> wikitable |
||
| (One intermediate revision by one other user not shown) | |||
| Line 48: | Line 48: | ||
function p._main(args, frame) | function p._main(args, frame) | ||
local _table = mw.html.create('table'):addClass(' | local _table = mw.html.create('table'):addClass('wikitable article-table sortable') | ||
-- header row | -- header row | ||
| 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 | ||