Module:Large category TOC/sandbox: Difference between revisions

Content deleted Content added
remove the double bolding of "Contents:" mentioned at Wikipedia:Village pump (technical)#Template:Collapsible large category TOC
let's make sure the output is as expected
Line 28:
:addClass('toc')
-- :attr('id','toc')
:css({
display = 'block !important',
background = 'WhiteSmoke',
clear = 'both',
width = '98%' })
})
 
-- Contains "Content: Top 0-9 A - Z"
local header = toc_frame:tag('div')
:attr('id', 'toctitle')
:attr('class', 'toctitle')
:css('background','WhiteSmoke')
-- Contains all the rest
local body_wrapper
local body = toc_frame:tag('div')
:css('text-align', 'center')
if toc_type == 'collapsible' then
toc_frame:addClass('NavFramemw-collapsible mw-collapsed')
:cssText('padding: 4px; border: 1px solid #a2a9b1; text-align: center;')
header:addClass('NavHead')
-- header:cssText('font-weight: bold;')
body:addClass('NavContentmw-collapsible-content')
:css({ background = 'white',
:css({
display = 'none' })
:css('background = ','WhiteSmokewhite')
})
elseif toc_type == 'scrollable' then
body:css({ ['overflow-x'] = 'scroll',