10,731
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 78: | Line 78: | ||
else | else | ||
local function glossary(form, colour) | local function glossary(form, colour) | ||
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 | if language and pos and data[form] then | ||
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 |