Module:Tabs: Difference between revisions

Jump to navigation Jump to search
46 bytes removed ,  Sunday at 01:08
no edit summary
No edit summary
No edit summary
Line 130: Line 130:
if args[1] and args[2] then
if args[1] and args[2] then
output = ''
output = ''
local header = mw.html.create( 'div' ):addClass('tab-header'):wikitext( 'Tab header' )
repeat
repeat
output = output .. args[i+1] .. '&' .. args[i+2]
child = mw.html.create( 'span' ):addClass('tab'):wikitext(args[i+2])
header = header:node(child)
i = i + 2
i = i + 2
until args[i+1] == nil or args[i+2] == nil
until args[i+1] == nil or args[i+2] == nil
local child = mw.html.create( 'span' ):addClass('tab'):wikitext('Tab')
local header = mw.html.create( 'div' ):addClass('tab-header'):wikitext( 'Tab header' ):node(child):node(child)


return header
return header

Navigation menu