Page MenuHomePhabricator

Adding multiple maintenance tags to page with one maintenance tag and no {{Multiple issues}} should place old tag inside {{Multiple issues}}
Open, Needs TriagePublicBUG REPORT

Description

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

  • Log out
  • Create a page with wikitext {{Disputed}} (one maintenance tag)
  • Log in
  • Visit page
  • Page curation toolbar -> maintenance tags -> tag it with two random tags such as {{Advert}} and {{All plot}}`

What happens?:

image.png (387×518 px, 17 KB)

What should have happened instead?:

image.png (412×515 px, 18 KB)

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

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

Event Timeline

Twinkle's maintenance tag code is pretty convoluted. I wrote a patch for it once and I think I ended up abandoning it.

AFC Helper script has a ticket like this open for combining WikiProject banners. If I come up with a good approach for that, maybe I'll swing by and apply it here too.

The fact that Wikicode allows nested templates really complicates things. RegEx would be great for just one layer of templates, but starts falling apart once you nest templates.