Page MenuHomePhabricator

AFD article tag placed too high, violating MOS:ORDER
Closed, ResolvedPublicBUG REPORT

Description

Reported by Edward-Woodrow at https://en.wikipedia.org/wiki/Wikipedia_talk:New_pages_patrol/Reviewers#Minor_PageCuration_bug

Steps to replicate the issue (include links if applicable):

  • Write {{Hatnote}} to a sandbox in mainspace
  • Tag the sandbox for AFD deletion

What happens?:

What should have happened instead?:

  • {{AfDM}} tag should be placed below {{Hatnote}} and its various cousins such as {{About}}, {{For}}, etc.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

This has been open since... almost 3 years now. I'll try to submit a patch today. Note to self; en:Template:Hatnote templates has a list of hatnotes.

I wrote an MOSOrderPositionFinder class one time. Will link it here in case it's helpful. I think it has lots of hard-coded templates and template aliases, and notes the position where it finds the first occurrence of these templates in each MOS:ORDER section.

https://github.com/NovemLinguae/UserScripts/blob/9dc6d8a7b1b059dcaf87118a81689716b6441f0c/SpeciesHelper/modules/MOSOrderPositionFinder.js#L354

Change #1337417 had a related patch set uploaded (by Apehitkey; author: Apehitkey):

[mediawiki/extensions/PageTriage@master] toolbar: rewrote template insertion logic to be MOS:ORDER-compliant

https://gerrit.wikimedia.org/r/1337417

Change #1337417 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] toolbar: rewrote template insertion logic to be MOS:ORDER-compliant

https://gerrit.wikimedia.org/r/1337417