Module:Documentation: Difference between revisions
m disable the category on translation pages, as those are the projects responsibility, not the general wiki (if desired later, a subcat can be added for those) |
m forgot {{translation category}} added "Category:" automatically |
||
| Line 143: | Line 143: | ||
"If you know how to use this " .. pageType .. ", please create it.'''" | "If you know how to use this " .. pageType .. ", please create it.'''" | ||
if not ( args.nocat or namespace == 'User' ) then | if not ( args.nocat or namespace == 'User' ) then | ||
category = | category = pageType .. 's with no documentation' | ||
if not mw.title.new( category ).exists then | if not mw.title.new( category ).exists then | ||
category = ' | category = 'Pages with no documentation' | ||
end | end | ||
end | end | ||
| Line 152: | Line 152: | ||
message = "'''This " .. pageType .. "'s documentation needs improving or additional information.'''\n" | message = "'''This " .. pageType .. "'s documentation needs improving or additional information.'''\n" | ||
if not ( args.nocat or namespace == 'User' ) then | if not ( args.nocat or namespace == 'User' ) then | ||
category = | category = pageType .. 's with bad documentation' | ||
if not mw.title.new( category ).exists then | if not mw.title.new( category ).exists then | ||
category = ' | category = 'Pages with bad documentation' | ||
end | end | ||
end | end | ||