Module:Switch infobox: Difference between revisions

Undo revision 69951 by BlackHawk (talk)
(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('...")
 
(Undo revision 69951 by BlackHawk (talk))
Tag: Undo
 
(One intermediate revision by the same user not shown)
(No difference)