This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Could someone please update the code to exclude the Draft and Draft talk namespaces, per the discussion at Wikipedia talk:HotCat#Disable HotCat in Draft namespace? Thanks! GoingBatty ( talk) 15:41, 31 January 2015 (UTC)
{{
edit protected}}
template.
GoingBatty, I'm closing this request temporarily pending more discussion on the linked page where I have opposed the change. I'll be more than happy to reinstate the request if there is consensus after my concern has been addressed. — {{U|
Technical 13}} (
e •
t •
c)
16:06, 31 January 2015 (UTC)This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
When categorizing a userbox template, gadget HotCat incorrectly removes {{nocat|}} from {{{nocat|}}}, confusing a transclusion of template {{
nocat}} with usage of a named parameter {{{nocat|}}}, which leaves |nocat={}
in transclusion of {{
userbox}}. Examples:
Special:Diff/900767578,
Special:Diff/956639287. To fix this, please change line 3 from:
HotCat.uncat_regexp = /\{\{\s*([Uu]ncat(egori[sz]ed)?|[Nn]ocat|[Nn]eedscategory|[Cc]ategori[sz]e)[^}]*\}\}/g ;
to
HotCat.uncat_regexp = /(?=[^{]|^)\{\{\s*([Uu]ncat(egori[sz]ed)?|[Nn]ocat|[Nn]eedscategory|[Cc]ategori[sz]e)[^}]*\}\}/g ;
which will disallow removing {{
nocat}}
from {{{nocat|}}}
. This was reported at
Village pump and
Wikipedia talk:HotCat. I've tested the regular expression at
regex101.com. —
andrybak (
talk) 16:13, 14 May 2020 (UTC)
HotCat.uncat_regexp = /((?=[^{]|^)| )\{\{\s*([Uu]ncat(egori[sz]ed)?|[Nn]ocat|[Nn]eedscategory|[Cc]ategori[sz]e)[^}]*\}\}/g ;
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Could someone please update the code to exclude the Draft and Draft talk namespaces, per the discussion at Wikipedia talk:HotCat#Disable HotCat in Draft namespace? Thanks! GoingBatty ( talk) 15:41, 31 January 2015 (UTC)
{{
edit protected}}
template.
GoingBatty, I'm closing this request temporarily pending more discussion on the linked page where I have opposed the change. I'll be more than happy to reinstate the request if there is consensus after my concern has been addressed. — {{U|
Technical 13}} (
e •
t •
c)
16:06, 31 January 2015 (UTC)This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
When categorizing a userbox template, gadget HotCat incorrectly removes {{nocat|}} from {{{nocat|}}}, confusing a transclusion of template {{
nocat}} with usage of a named parameter {{{nocat|}}}, which leaves |nocat={}
in transclusion of {{
userbox}}. Examples:
Special:Diff/900767578,
Special:Diff/956639287. To fix this, please change line 3 from:
HotCat.uncat_regexp = /\{\{\s*([Uu]ncat(egori[sz]ed)?|[Nn]ocat|[Nn]eedscategory|[Cc]ategori[sz]e)[^}]*\}\}/g ;
to
HotCat.uncat_regexp = /(?=[^{]|^)\{\{\s*([Uu]ncat(egori[sz]ed)?|[Nn]ocat|[Nn]eedscategory|[Cc]ategori[sz]e)[^}]*\}\}/g ;
which will disallow removing {{
nocat}}
from {{{nocat|}}}
. This was reported at
Village pump and
Wikipedia talk:HotCat. I've tested the regular expression at
regex101.com. —
andrybak (
talk) 16:13, 14 May 2020 (UTC)
HotCat.uncat_regexp = /((?=[^{]|^)| )\{\{\s*([Uu]ncat(egori[sz]ed)?|[Nn]ocat|[Nn]eedscategory|[Cc]ategori[sz]e)[^}]*\}\}/g ;