Module:Large category TOC/sandbox: Difference between revisions

Content deleted Content added
No edit summary
sync with live module
Line 17:
end
 
 
-- Implements [[Template:Large Category TOC]]
function main(toc_type)
-- It should be much faster to only process these once, and just re use them as variables
Line 61 ⟶ 59:
' ['..pageurl..'?from=0 0–9]'
for i=1,26,1 do
local letter = string.sub(azupper,i,i)
header_content = header_content..' ['..pageurl..'?from='..letter..' '..letter..']'
Line 79 ⟶ 77:
end
for i=0,9,1 do
body_content = body_content..' ['..pageurl..'?from='..i..' '..i..']'
end
Line 101 ⟶ 99:
end
for i=1,maxind,1 do
local lowerletter = string.sub(letterlist,i,i)
azlist = azlist..' ['..pageurl..'?from='..letter..lowerletter..' '..letter..lowerletter..'] '
Line 108 ⟶ 106:
end
for i=1,26,1 do
local letter = string.sub(azupper,i,i)
body_content = body_content..atoz(letter)