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..."
 
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('fandom-table article-table sortable')
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 '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