Module:pollasena-roots: Difference between revisions

No edit summary
No edit summary
Line 90: Line 90:
table.insert(alts, arg)
table.insert(alts, arg)
elseif prefix == "c" then
elseif prefix == "c" then
table.insert(categories, lang:getCanonicalName() .. " terms from " .. proto:getCanonicalName() .. " *" .. arg)
table.insert(categories, lang:getCanonicalName() .. " terms derived from the " .. proto:getCanonicalName() .. " root *" .. arg)
table.insert(alts, term)
table.insert(alts, term)
end
end
elseif prefix == "a" then
elseif prefix == "a" then
table.insert(links, link(proto, term, arg))
table.insert(links, link(proto, term, arg))
table.insert(categories, lang:getCanonicalName() .. " terms from " .. proto:getCanonicalName() .. " *" .. term)
table.insert(categories, lang:getCanonicalName() .. " terms derived from the " .. proto:getCanonicalName() .. " root *" .. term)
table.insert(alts, arg)
table.insert(alts, arg)
elseif prefix == "c" then
elseif prefix == "c" then
table.insert(links, link(proto, term))
table.insert(links, link(proto, term))
table.insert(categories, lang:getCanonicalName() .. " terms from " .. proto:getCanonicalName() .. " *" .. arg)
table.insert(categories, lang:getCanonicalName() .. " terms derived from the " .. proto:getCanonicalName() .. " root *" .. arg)
table.insert(alts, term)
table.insert(alts, term)
end
end
Line 105: Line 105:
else
else
table.insert(links, link(proto, args[a][i]))
table.insert(links, link(proto, args[a][i]))
table.insert(categories, lang:getCanonicalName() .. " terms from " .. proto:getCanonicalName() .. " *" .. args[a][i])
table.insert(categories, lang:getCanonicalName() .. " terms derived from the " .. proto:getCanonicalName() .. " root *" .. args[a][i])
table.insert(alts, args[a][i])
table.insert(alts, args[a][i])
end
end
Line 236: Line 236:
end
end
table.insert(cats, dest_lang:getCanonicalName() .. " terms from " .. ancestor_lang:getCanonicalName() .. " " .. cat_term)
table.insert(cats, dest_lang:getCanonicalName() .. " terms derived from the " .. ancestor_lang:getCanonicalName() .. " root " .. cat_term)
root_index = root_index + 1
root_index = root_index + 1