8,438
edits
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 | ||
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 | ||
return header | return header |