Module:names: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 35: Line 35:
table.insert(out, gender)
table.insert(out, gender)
end
end
table.insert(data.type)
table.insert(out, data.type)
if data.from then
if data.from then
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.name or data.from)
local from_name = (from_lang and from_lang.name or data.from)
table.insert("from " .. from_name)
table.insert(out, "from " .. from_name)
cat = cat .. "[[Category:" .. data.language.name .. " " .. data.type .. "s from " .. from_name .. "]]"
cat = cat .. "[[Category:" .. data.language.name .. " " .. data.type .. "s from " .. from_name .. "]]"
if data.gender then
if data.gender then