Page MenuHomePhabricator

MediaWiki:Redirectfrom syntax improvement
Open, LowPublicFeature

Description

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

  • Go to [[MediaWiki:Redirectfrom]]

The page there is the message mw-Redirectfrom, which says:

(Redirected from $1)

Here, the value $1 represents a link back to the name of the redirect page.

This is a piece of very old code in MediaWiki, and appears not to be especially well-coded.

What should have happened instead?:

This syntax, to produce the same outcome, is preferable:

(Redirected from [[$1]])

Where $1 is the name of the page (without the link, and the double brackets provide the link)

Reason:
This is now more customisable. The information that the page is a redirect isn't important to readers. With this syntax, it would now be possible to reduce the redirected from message to something like:

([$1|Redirected]])

or:

([$1|↪]])

Or maybe even have some kind of mini-icon floating top right.

This is obviously low importance.

Event Timeline

Bugreporter2 renamed this task from MediaWiki:Redirectfrom to MediaWiki:Redirectfrom syntax improvement.Nov 15 2023, 12:09 PM
Bugreporter2 triaged this task as Low priority.