Page MenuHomePhabricator

Extension:RedirectManager: Add redirect templates
Open, Needs TriagePublicFeature

Description

Background:

Extension:CreateRedirect is a nice little extension that helps manage redirects:

https://www.mediawiki.org/wiki/Extension:RedirectManager

It might be a candidate for bundling or integration into core, but lacks some functionality, which we'll deal with here:

Wikipedia uses a variety of {{redirect templates}} to categorise its redirects:

https://en.wikipedia.org/wiki/Category:Redirect_templates

Proposal

In Extension:RedirectManager, it should be possible to add and remove redirect templates (plural) to the redirect. Some pages might need more than one template on them, e.g. a plural redirect to a disambiguation page.

For that, you're going to need a curated list of all redirect templates, e.g. at [[MediaWiki:Redirect-template-definitions]], a drop-down and the ability to select more than one of them at once.

There is some overlap here with T393673: Extension:CreateRedirect: Add redirect templates.

Event Timeline

Bugreporter2 updated the task description. (Show Details)
Bugreporter2 added a subscriber: Samwilson.
Aklapper renamed this task from Improve functionality of Extension:RedirectManager, add redirect templates to Extension:RedirectManager: Add redirect templates.May 8 2025, 2:30 PM

Do the redirect templates need to be given parameters?

Would it be good for the config to be a message e.g. MediaWiki:RedirectManager-redirect-category that defines just one category that can then be queried for the full list of redirect templates? Or would that include too many that are not needed (e.g. there are 355 on enwiki) and it'd be awkward to select them from a list of checkboxes?

I'm imagining a 'templates' link next to each redirect, that opens a separate form in the dialog window where all templates are listed (along with possibly the option to wrap them in e.g. Redirect category shell). That way templates can be set at any time and not only when creating the redirect.