10,735
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 461: | Line 461: | ||
for subtopic, supertopics in pairs(subtopics) do | for subtopic, supertopics in pairs(subtopics) do | ||
local subcats = {"%l topics|" .. subtopic, capitalize(subtopic) .. " topic by language"} | local subcats = {"%l topics|" .. subtopic, capitalize(subtopic) .. " topic by language"} | ||
local subcats_topic = {"Topics by language"} | |||
if type(supertopics) == "string" then | if type(supertopics) == "string" then | ||
table.insert(subcats, "%c:" .. capitalize(supertopics)) | table.insert(subcats, "%c:" .. capitalize(supertopics)) | ||
table.insert(subcats_topic, capitalize(supertopics) .. " topic by language") | |||
elseif type(supertopics) == "table" then | elseif type(supertopics) == "table" then | ||
for _, supertopic in ipairs(supertopics) do | for _, supertopic in ipairs(supertopics) do | ||
table.insert(subcats, "%c:" .. capitalize(supertopic)) | table.insert(subcats, "%c:" .. capitalize(supertopic)) | ||
table.insert(subcats_topic, capitalize(supertopic) .. " topic by language") | |||
end | end | ||
end | end | ||
table.insert(cats, {capitalize(subtopic) .. " topic by language", subcats_topic}) | |||
table.insert(cats, {"%c:" .. capitalize(subtopic), subcats}) | table.insert(cats, {"%c:" .. capitalize(subtopic), subcats}) | ||
end | end |