12,275
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 8: | Line 8: | ||
if mw.ustring.sub(root, -1) ~= "-" then root = root .. "-" end | if mw.ustring.sub(root, -1) ~= "-" then root = root .. "-" end | ||
if language.code == source.code then | if language.code == source.code then | ||
table.insert(categories, "[[Category:" .. language.name .. " terms belonging to the root " .. root_prefix .. root .. "]]") | table.insert(categories, "[[Category:" .. language.name .. " terms belonging to the root " .. root_prefix .. root .. "|" .. mw.title.getCurrentTitle().subpageText .. "]]") | ||
else | else | ||
table.insert(categories, "[[Category:" .. language.name .. " terms derived from the " .. source.name .. " root " .. root_prefix .. root .. "]]") | table.insert(categories, "[[Category:" .. language.name .. " terms derived from the " .. source.name .. " root " .. root_prefix .. root .. "|" .. mw.title.getCurrentTitle().subpageText .. "]]") | ||
end | end | ||
end | end |