12,303
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 21: | Line 21: | ||
function export.make_example(language, sentence, glosses, inline, nocat) | function export.make_example(language, sentence, glosses, inline, nocat) | ||
local translation = "" | local translation = "" | ||
local cats = nocat and "" or ("[[Category:" .. language.name .. " terms with usage examples]]") | local cats = nocat and "" or ("[[Category:" .. language.name .. " terms with usage examples|" .. mw.title.getCurrentTitle().subpageText .. "]]") | ||
if #glosses > 0 then | if #glosses > 0 then | ||
Line 30: | Line 30: | ||
if m_languages_oow.is_valid_code(code) then | if m_languages_oow.is_valid_code(code) then | ||
gloss = m_languages_oow.get_flag(code) .. " " .. gloss_temp | gloss = m_languages_oow.get_flag(code) .. " " .. gloss_temp | ||
cats = cats .. (nocat and "" or ("[[Category:Terms with " .. m_languages_oow.get_name(code) .. " translations]]")) | cats = cats .. (nocat and "" or ("[[Category:Terms with " .. m_languages_oow.get_name(code) .. " translations|" .. mw.title.getCurrentTitle().subpageText .. "]]")) | ||
end | end | ||
end | end |