Module:Hatnote: Difference between revisions
Jump to navigation
Jump to search
don't add pages in the user namespace to Category:Hatnote templates with errors
>Mr. Stradivarius (reinstate the "italicizepage" and "italicizesection" arguments to _formatLink (I pulled the trigger a little bit early)) |
>Mr. Stradivarius (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( |