12,276
edits
No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
if categories ~= nil then | if categories ~= nil then | ||
for _, cat in ipairs(categories) do | for _, cat in ipairs(categories) do | ||
cat_out = cat_out .. "[[Category:" .. language_name .. " " .. cat .. "]]" | cat_out = cat_out .. "[[Category:" .. language_name .. " " .. cat .. "|" .. mw.title.getCurrentTitle().subpageText .. "]]" | ||
end | end | ||
end | end | ||
if topics ~= nil then | if topics ~= nil then | ||
for _, top in ipairs(topics) do | for _, top in ipairs(topics) do | ||
cat_out = cat_out .. "[[Category:" .. language_code .. ":" .. top .. "]]" | cat_out = cat_out .. "[[Category:" .. language_code .. ":" .. top .. "|" .. mw.title.getCurrentTitle().subpageText .. "]]" | ||
end | end | ||
end | end |