Module:government: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 78: Line 78:
else
else
local function glossary(form, colour)
local function glossary(form, colour)
form = mw.ustring.gsub(form, "%p", "")
if mw.ustring.sub(form, 1, 1) == "_" then
if mw.ustring.sub(form, 1, 1) == "_" then
return "''" .. mw.ustring.sub(form, 2) .. "''"
return "''" .. mw.ustring.sub(form, 2) .. "''"
Line 136: Line 135:
end
end
temp_append(glossary(form, colour))
temp_append(glossary(form, colour))
if language and pos and mw.ustring.find(form, "^[^%*]") then
if language and pos and data[form] then
if data[form] then form = data[form].label end
temp_append("[[Category:" .. language.name .. " " .. pluralize(pos) .. " governing the " .. data[form].label .. "]]")
temp_append("[[Category:" .. language.name .. " " .. pluralize(pos) .. " governing the " .. form .. "]]")
end
end
else
else

Navigation menu