Module:Documentation: Difference between revisions

m forgot {{translation category}} added "Category:" automatically
m ...
Line 144: Line 144:
if not ( args.nocat or namespace == 'User' ) then
if not ( args.nocat or namespace == 'User' ) then
category = pageType .. 's with no documentation'
category = pageType .. 's with no documentation'
if not mw.title.new( category ).exists then
if not mw.title.new( 'Category:' .. category ).exists then
category = 'Pages with no documentation'
category = 'Pages with no documentation'
end
end
Line 153: Line 153:
if not ( args.nocat or namespace == 'User' ) then
if not ( args.nocat or namespace == 'User' ) then
category = pageType .. 's with bad documentation'
category = pageType .. 's with bad documentation'
if not mw.title.new( category ).exists then
if not mw.title.new( 'Category:' .. category ).exists then
category = 'Pages with bad documentation'
category = 'Pages with bad documentation'
end
end