8,438
edits
No edit summary |
No edit summary |
||
Line 41: | Line 41: | ||
repeat | repeat | ||
tab = mw.html.create( 'span' ):addClass('g-tab'):wikitext(trim(args[i+1])) | tab = mw.html.create( 'span' ):addClass('g-tab'):wikitext(trim(args[i+1])) | ||
if string.sub(trim(args[i+2]),1,2) == '{|' then | |||
args[i+2] = '\n' .. args[i+2] | |||
end | |||
tabcontent = mw.html.create( 'div' ):addClass('g-tab-content'):wikitext(trim(args[i+2])) | tabcontent = mw.html.create( 'div' ):addClass('g-tab-content'):wikitext(trim(args[i+2])) | ||
if active == (i + 2) * 0.5 then | if active == (i + 2) * 0.5 then |