Module:Hatnote: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (1 revision imported)
(don't add pages in the user namespace to Category:Hatnote templates with errors)
Line 94: Line 94:
-- Make the category text.
-- Make the category text.
local category
local category
if not title.isTalkPage and yesno(addTrackingCategory) ~= false then
if not title.isTalkPage -- Don't categorise talk pages
and title.namespace ~= 2 -- Don't categorise userspace
and yesno(addTrackingCategory) ~= false -- Allow opting out
then
category = 'Hatnote templates with errors'
category = 'Hatnote templates with errors'
category = string.format(
category = string.format(