Content deleted Content added
insert a div into header with margin 0 4em? |
add jumpy_collapse |
||
Line 44:
local body = toc_frame:tag('div')
:css('text-align', 'center')
local jumpy_collapse = mw.html.create('div')
if toc_type == 'collapsible' then
Line 49 ⟶ 52:
:cssText('padding: 4px; text-align: center; border: 1px solid #a2a9b1; font-size: 95%')
header:cssText('font-weight: bold; line-height: 1.6em')
▲ :cssText('margin: 0 4em')
body:addClass('mw-collapsible-content')
:css({
Line 68 ⟶ 69:
table.insert(header_content,string.format(' [%s?from=%s %s]',pageurl,v,v))
end
header:wikitext(table.concat(header_content))▼
if toc_type == 'collapsible' then
jumpy_collapse:wikitext(table.concat(header_content))
header:node(jumpy_collapse)
else
end
local body_content = {}
|