10,731
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 126: | Line 126: | ||
append(" (+ " .. glossary(form, colour) .. ")") | append(" (+ " .. glossary(form, colour) .. ")") | ||
end | end | ||
elseif mw.ustring.match(temp, "^[^%(%<%[%+%/]+") then | |||
form = mw.ustring.match(temp, "^([^%(%<%[%+%/]+)") | form = mw.ustring.match(temp, "^([^%(%<%[%+%/]+)") | ||
form = mw.ustring.gsub(form, "%s+$", "") | form = mw.ustring.gsub(form, "%s+$", "") | ||
Line 139: | Line 139: | ||
append("[[Category:" .. language.name .. " " .. pluralize(args["pos"]) .. " governing the " .. form .. "]]") | append("[[Category:" .. language.name .. " " .. pluralize(args["pos"]) .. " governing the " .. form .. "]]") | ||
end | end | ||
else | |||
error("Invalid parameter format") | |||
end | |||
if mw.ustring.find(temp, "^%<[^%>]+%>") then | |||
local t = mw.ustring.match(temp, "^%<([^%>]+)%>") | |||
append(" <small>‘".. t .."’</small>") | |||
remove_temp("^%<[^%>]+%>") | |||
end | end | ||
end | end |