10,731
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 17: | Line 17: | ||
local language = m_languages.get_by_code(args[1]) | local language = m_languages.get_by_code(args[1]) | ||
local title = args[2] or args["title"] or args["t"] | local title = args[2] or args["title"] or args["t"] | ||
local nocat = | local nocat = args["nocat"] ~= nil or false | ||
args["nocat"] = nil | |||
if title then title = string.gsub(title, "%s+$", "") end | if title then title = string.gsub(title, "%s+$", "") end | ||
for k, v in pairs(args) do | for k, v in pairs(args) do | ||
Line 63: | Line 60: | ||
end | end | ||
end | end | ||
if nocat then out = | if nocat then out = string.gsub(out, "%[%[Category[^%]]+%]%]", "") end | ||
return out | return out | ||
end | end | ||
return export | return export |