Module:translations: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
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 = false
if args['nocat'] then
nocat = true
args['nocat'] = nil
end
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 58: Line 63:
end
end
end
end
if nocat then out = mw.ustring.gsub(out, "%[%[Category[^%]]+%]%]", "") end
return out
return out
end
end


return export
return export