Skip to content

Commit

Permalink
Update hatnote regex
Browse files Browse the repository at this point in the history
Barely been updated in a decade; `the` was deleted (https://en.wikipedia.org/wiki/Wikipedia:Templates_for_discussion/Log/2011_January_17#Template:The) in 2011!!!  Includes most templates from https://en.wikipedia.org/w/index.php?title=Template:Hatnote_templates with more than ~100, 150 transclusions.  A few commonish redirects included as well.
  • Loading branch information
Amorymeltzer committed Jul 6, 2020
1 parent 29a6183 commit 2ddcc97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twinkle.js
Expand Up @@ -128,7 +128,7 @@ Twinkle.defaultConfig = {
revertMaxRevisions: 50, // intentionally limited
// various hatnote templates, used when tagging
// (csd/xfd/tag/prod/protect) to ensure MOS:ORDER
hatnoteRegex: 'about|correct title|dablink|distinguish|for|other\\s?(?:hurricane(?: use)?s|people|persons|places|uses(?:of)?)|redirect(?:-acronym)?|see\\s?(?:also|wiktionary)|selfref|short description|the',
hatnoteRegex: 'short description|hatnote|main|correct title|dablink|distinguish|for|further|selfref|year dab|similar names|highway detail hatnote|broader|about(?:-distinguish| other people)?|other\\s?(?:hurricane(?: use)?s|people|persons|places|ships|uses(?: of)?)|redirect(?:-(?:distinguish|synonym|multi))?|see\\s?(?:wiktionary|also(?: if exists)?)',
batchMax: 5000,
batchdeleteChunks: 50,
batchProtectChunks: 50,
Expand Down

0 comments on commit 2ddcc97

Please sign in to comment.