8,493
edits
No edit summary |
No edit summary |
||
Line 132: | Line 132: | ||
local header = mw.html.create( 'div' ):addClass('tab-header'):wikitext( 'Tab header' ) | local header = mw.html.create( 'div' ):addClass('tab-header'):wikitext( 'Tab header' ) | ||
repeat | repeat | ||
header = header:node(mw.html.create( 'span' ):addClass('tab'):wikitext(args[i+2])) | header = header:node(mw.html.create( 'span' ):addClass('tab'):wikitext(args[i+2]):node(mw.html.create('div'):addClass('tab-content'):wikitext(args[i+1]))) | ||
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 |