Module:Switch infobox: Difference between revisions

no edit summary
(Created page with "local p = {} local yesno = require('Module:Yesno') function p.main(frame) return frame:preprocess(tostring(p._main(frame:getParent().args))) end function p._main(args) local contents = {} local i = 1 while args['item'..i] do table.insert(contents, { text = args['text'..i] or ('Item '..i), content = '\n' .. args['item'..i], id = args['switch_id'..i] or i}) i = i + 1 end local ret = mw.html.create('div') :addClass('switch-infobox') :addClass('...")
 
No edit summary
Tag: Reverted
Line 18:
 
local ret = mw.html.create('div')
:addClass('switch-infobox-switch')
:addClass('loading')
:tag('span')