Content deleted Content added
order matters >_> |
use tstyles |
||
Line 6:
local function main(toc_type)
local pageurl = mw.title.getCurrentTitle():fullUrl()▼
local toc = mw.message.new('Toc'):plain()▼
local toc_frame = mw.html.create('div')
:addClass('large-cat-toc')
:addClass('plainlinks')
:addClass('toc')
-- :attr('id','toc')
})▼
-- Contains "Content: Top 0-9 A - Z"
local header = toc_frame:tag('div')
:attr('class', 'toctitle')
Line 32 ⟶ 19:
local body_wrapper
local body = toc_frame:tag('div')
:
local jumpy_collapse = mw.html.create('div')
:addClass('large-cat-toc-jumpy-title')
if toc_type == 'collapsible' then
toc_frame:addClass('mw-collapsible mw-collapsed')
body:addClass('mw-collapsible-content')
})▼
elseif toc_type == 'scrollable' then
end
▲ local pageurl = mw.title.getCurrentTitle():fullUrl()
local header_content = {
' [',pageurl,' Top]',▼
string.format(
'<span class="large-cat-toc-title">%s:</span> [%s Top] [%s?from=0 0–9]',
pageurl
▲ }
for _, v in ipairs(azupper) do
table.insert(header_content, string.format(
' [%s?from=%s %s]', pageurl, v, v end
Line 69 ⟶ 58:
if toc_type == 'collapsible' then
table.insert(body_content,'<
body_wrapper = body:tag('code')
else
table.insert(body_content,'<span class="large-cat-toc-anum">['..pageurl..'?from=*
body_wrapper = body:tag('span')
end
Line 91 ⟶ 79:
if toc_type == 'aejot' or toc_type == 'scrollable' then
table.insert(azlist,' • <
else
table.insert(azlist,'<br /><
end
|