2,788
edits
No edit summary |
No edit summary |
||
Line 39: | Line 39: | ||
local from_lang = m_languages.find_by_code(data.from) | local from_lang = m_languages.find_by_code(data.from) | ||
local from_name = (from_lang and ("[[" .. from_lang.link .. "|" .. from_lang.name .. "]]") or data.from) | local from_name = (from_lang and ("[[" .. from_lang.link .. "|" .. from_lang.name .. "]]") or data.from) | ||
local from_name_raw = (from_lang and from_lang.name or data.from) | |||
table.insert(out, "from " .. from_name) | table.insert(out, "from " .. from_name) | ||
cat = cat .. "[[Category:" .. data.language.name .. " " .. data.type .. "s from " .. | cat = cat .. "[[Category:" .. data.language.name .. " " .. data.type .. "s from " .. from_name_raw .. "]]" | ||
if data.gender then | if data.gender then | ||
cat = cat .. "[[Category:" .. data.language.name .. " " .. data.gender .. " " .. data.type .. "s from " .. | cat = cat .. "[[Category:" .. data.language.name .. " " .. data.gender .. " " .. data.type .. "s from " .. from_name_raw .. "]]" | ||
end | end | ||
end | end |