From e00b6322d6515b299a2306cbd94fc57cb93018a1 Mon Sep 17 00:00:00 2001 From: msk <111818540+potatolover68@users.noreply.github.com> Date: Sun, 6 Sep 2026 18:05:17 -0700 Subject: [PATCH 1/2] SpeciesHelper: Update hatnote templates in MOSOrderPositionFinder --- .../modules/MOSOrderPositionFinder.js | 211 +++++++++++++++++- 1 file changed, 205 insertions(+), 6 deletions(-) diff --git a/SpeciesHelper/modules/MOSOrderPositionFinder.js b/SpeciesHelper/modules/MOSOrderPositionFinder.js index 657a89b..2f9cc6c 100644 --- a/SpeciesHelper/modules/MOSOrderPositionFinder.js +++ b/SpeciesHelper/modules/MOSOrderPositionFinder.js @@ -207,31 +207,230 @@ export class MOSOrderPositionFinder { // https://en.wikipedia.org/wiki/Wikipedia:Hatnote this.sectionStartPositions.hatnotes = this._lookForTemplates( this.wikitext, [ - 'About-distinguish', 'About', 'About other people', + 'About otherpeople', + 'About year', + 'About-confuse', + 'About-confused', + 'About-distinguish', + 'About-other people', + 'About-other-people', + 'About-otherpeople', + 'Alternateuses', + 'Bài cùng tên', + 'Bhutanese name', + 'Bhutanese Name', + 'Brazilian name', + 'British barrelled name', + 'Broader', + 'Broader2', + 'Bulgarian name', + 'Chinese name', + 'Chinese name 2', + 'Chinese name2', + 'Confuse', + 'Confused', + 'Confusion', + 'Dab link', + 'Dablink', + 'Dabnote', + 'Dinka name', + 'Disambig-acronym', 'Distinguish', + 'Distinguish redirect', + 'Distinguish-about', + 'Distinguish-for', + 'Distinguish-redirect', + 'Eastern name order', + 'Efn Catalan name', + 'Efn Chinese name', + 'Efn chinese name', + 'Efn Korean name', + 'Efn Spanish name', + 'Ethiopian name', + 'Fam', + 'Family name explanation', + 'Family name footnote', + 'Family name hatnote', + 'Fijian name', + 'Fijian name hatnote', + 'Filipino name', + 'Fne', + 'Fnf', + 'Fnh', + 'FNH', 'For', + 'FOR', + 'For introduction', + 'For LMST', + 'For other uses', + 'For the', + 'For-distinguish', + 'For1', 'For2', + 'Forthe', + 'Given name footnote', + 'Given name hatnote', + 'Gnf', + 'Hat note', + 'Hatlink', + 'Hatn', 'Hatnote', + 'HATNOTE', + 'Highway detail hatnote', + 'Hungarian name', + 'Icelandic name', + 'Indian name', + 'Indian patronymic', + 'Indonesian name', + 'Korean name 2', + 'Main LMST', + 'Malay name', + 'Malay name2', + 'Norse name', + 'Not to be confused', + 'Not to be confused with', + 'Nottobeconfusedwith', + 'NTBCW', + 'Ntbcw', + 'On Wikipedia', + 'On wikipedia', + 'Other', + 'Other hurricane uses', 'Other hurricanes', + 'Other locations', + 'Other meanings', 'Other people', + 'Other people 2', + 'Other people 5', + 'Other people2', + 'Other people5', + 'Other persons', 'Other places', + 'Other places3', 'Other ships', - 'Other uses of', - 'Other uses', + 'Other stars by Bayer designation', + 'Other storms', + 'Other use', 'Other uses', + 'Other uses of', + 'Other uses1', + 'Otherhurricaneuses', + 'Otherhurricaneuses2', + 'Othermeanings', + 'Otherpeople', + 'Otherpeople2', + 'Otherpeople3', + 'Otherpeople5', + 'Otherpersons', + 'Otherpersons2', + 'Otherplaces', + 'Otherplaces3', + 'Others', + 'Otherships', + 'Otherships2', + 'Otheruse', + 'OtherUses', + 'Otheruses', + 'Otheruses-word', + 'Otheruses1', + 'Otheruses3', + 'Otheruses4', + 'Otherusesof', + 'Othervalues', + 'Ou', + 'Pakistani name', + 'Patronymic name', + 'Patronymic names', + 'Philippine name', + 'Portuguese name', + 'Rdf', + 'RDR', + 'Rdr', + 'Redir', + 'Redir-dist', + 'Redir-distinguish', + 'Redir-for', + 'Redir-multi', + 'Redir-several', + 'Redir2', + 'Redirect', + 'REDIRECT', + 'Redirect distinguish', + 'Redirect distinguish for', + 'Redirect for', + 'Redirect hatnote', + 'Redirect multi', + 'Redirect refer', + 'Redirect several', + 'Redirect-2', + 'Redirect-acronym', + 'Redirect-confuse', + 'Redirect-confuse2', + 'Redirect-confuse6', + 'Redirect-confused', + 'Redirect-confused2', + 'Redirect-confused6', + 'Redirect-dist', 'Redirect-distinguish', + 'Redirect-distinguish-for', 'Redirect-distinguish-text', 'Redirect-distinguish2', + 'Redirect-distinguish6', + 'Redirect-for', 'Redirect-multi', - 'Redirect', + 'Redirect-multiple', + 'Redirect-several', + 'Redirect-synonym', + 'Redirect1', 'Redirect2', + 'Redirect3', + 'Redirect8', + 'Redirects', + 'Redirects here', + 'Rellink', + 'See dab', + 'See intro', + 'See Intro', + 'See introduction', + 'See Wiktionary', + 'See wiktionary', + 'See wt', + 'Seeintro', + 'SeeIntro', + 'Seewiktionary', 'Self reference', + 'Several terms', 'Similar names', + 'Spanish colonial name', + 'Spanish married name', + 'Surname hatnote', + 'Tchr', 'Technical reasons', - 'Malay name' // TODO: add more {{X name}} type templates. - ] ); + 'Technical redirect', + 'Technical restrictions', + 'This', + 'This article', + 'This article is about', + 'Traditional Norwegian name', + 'Transcluded article', + 'Transcluded section', + 'Transcluded-section', + 'Transcluding', + 'Transcluding article', + 'Transcluding articles', + 'Transcluding section', + 'Transcludingarticle', + 'Transclusion notice', + 'Western name order', + 'Western Slavic name', + 'WikiIPA', + 'Wiktionary hatnote', + 'Year dab', + 'Другие значения', + 'Однофамильцы' + ]); this.sectionStartPositions.featured = this._lookForTemplates( this.wikitext, [ 'Featured list', From d06e7a147c67b79ad6728131b323344813ec0112 Mon Sep 17 00:00:00 2001 From: msk <111818540+potatolover68@users.noreply.github.com> Date: Sun, 6 Sep 2026 18:51:42 -0700 Subject: [PATCH 2/2] SpeciesHelper: fix linter bug deriving from missing space between bracket and parentheses --- SpeciesHelper/modules/MOSOrderPositionFinder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpeciesHelper/modules/MOSOrderPositionFinder.js b/SpeciesHelper/modules/MOSOrderPositionFinder.js index 2f9cc6c..c795113 100644 --- a/SpeciesHelper/modules/MOSOrderPositionFinder.js +++ b/SpeciesHelper/modules/MOSOrderPositionFinder.js @@ -430,7 +430,7 @@ export class MOSOrderPositionFinder { 'Year dab', 'Другие значения', 'Однофамильцы' - ]); + ] ); this.sectionStartPositions.featured = this._lookForTemplates( this.wikitext, [ 'Featured list',