Module:Tabs: Difference between revisions

33 bytes added ,  Tuesday at 22:28
no edit summary
No edit summary
No edit summary
Tag: Reverted
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]))
tabcontent = mw.html.create( 'div' ):addClass('g-tab-content'):wikitext('\n' .. mw.text.unstripNoWiki(trim(args[i+2])) .. '\n')
tabcontent = mw.html.create( 'div' ):addClass('g-tab-content'):wikitext('\n' .. mw.getCurrentFrame():preprocess(mw.text.unstripNoWiki(trim(args[i+2]))) .. '\n')
if active == (i + 2) * 0.5 then
if active == (i + 2) * 0.5 then
tab = tab:addClass('g-tab-active')
tab = tab:addClass('g-tab-active')