Module:gender and number: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 67: Line 67:
if pos ~= nil then
if pos ~= nil then
if groups[gender.group] == nil then
if groups[gender.group] == nil then
table.insert(cats, "[[Category:" .. language.name .. " " .. string.gsub(gender.category, "%", pos .. "s") .. "]]")
table.insert(cats, "[[Category:" .. language.name .. " " .. string.gsub(gender.category, "%%", pos .. "s") .. "]]")
groups[gender.group] = 1
groups[gender.group] = 1
else
else
Line 80: Line 80:
for k, v in pairs(groups) do
for k, v in pairs(groups) do
if type(v) == "number" and v > 1 and multiple_group_categories[k] ~= nil then
if type(v) == "number" and v > 1 and multiple_group_categories[k] ~= nil then
table.insert(cats, "[[Category:" .. language.name .. " " .. string.gsub(multiple_group_categories[k], "%", pos) .. "]]")
table.insert(cats, "[[Category:" .. language.name .. " " .. string.gsub(multiple_group_categories[k], "%%", pos) .. "]]")
end
end
end
end