Modul:Hatnote: Unterschied zwischen den Versionen
don't add pages in the user namespace to Category:Hatnote templates with errors
(reinstate the "italicizepage" and "italicizesection" arguments to _formatLink (I pulled the trigger a little bit early)) |
(don't add pages in the user namespace to Category:Hatnote templates with errors) |
||
| Zeile 94: | Zeile 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( | ||