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 135: Line 136:
end
end
temp_append(glossary(form, colour))
temp_append(glossary(form, colour))
if language and pos then
if language and pos and mw.ustring.find(form, "^[^%*]") then
if data[form] then form = data[form].label end
if data[form] then form = data[form].label end
temp_append("[[Category:" .. language.name .. " " .. pluralize(pos) .. " governing the " .. form .. "]]")
temp_append("[[Category:" .. language.name .. " " .. pluralize(pos) .. " governing the " .. form .. "]]")

Navigation menu