Module:Large category TOC/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 41:
-- Contains all the rest
local body_wrapper
local body = mw.html.create('div')
:css('text-align', 'center')
Line 70 ⟶ 71:
if toc_type == 'collapsible' then
body_content = '<code><b>#</b> '
body_wrapper = mw.html.create('code')
:attr('background','WhiteSmoke')
else
body_content = '['..pageurl..'?from=* <b>*</b>] <b>#</b> '
body_wrapper = mw.html.create('span')
end
Line 109 ⟶ 113:
end
bodybody_wrapper:wikitext(body_content)
if toc_type == 'collapsible' then
body:node(body_wrapper)
body_content = body_content..'</code>'
end
body:wikitext(body_content)
header:node(body)
toc_frame:node(header)