Steps to replicate the issue (include links if applicable):
- find an article with {{Short description}} at the top
- open Page Curation toolbar -> maintenance tag menu
- place a maintenance tag that normally goes at the top
What happens?:
- maintenance tag is placed BEFORE short description
What should have happened instead?:
- maintenance tag should be placed AFTER short description
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
- should detect MOS:ORDER 1-5, and place maintenance tags after those. MOS:ORDER 1-5 is short description, displaytitle, lowercase title, italic title, various hatnotes, featured list, featured article, good article, various deletion tags, and various protection tags.
- https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style/Layout#Order_of_article_elements
- algorithm should be pretty easy. just code a list of templates somewhere (maybe editable onwiki), then move the pointer ahead of those templates. here's a list of templates: https://github.com/NovemLinguae/UserScripts/blob/a028fe394a9f32f19889e0b07533c5e6c6ef6f61/SpeciesHelper/modules/MOSOrderPositionFinder.js#L72-L233
- careful of nested templates