Page MenuHomePhabricator

Pass the target of the redirect as $1 to MediaWiki:Move-redirect-text
Closed, ResolvedPublicFeature

Description

Feature summary Pass the target of the redirect as $1 to MediaWiki:Move-redirect-text

Use case(s) On Latin Wikipedia I have been trying to add the {{De hac redirectione}} template (which is similar to {{Redirect category shell}} on English Wikipedia) to pages that are moved from the main namespace to the draft namespace. I have found a way to delegate the whole decision process to a template named {{Postilla redirectionis}}, which eventually decides whether to add a text under the redirect or not depending on the situation, but this is blind concerning the target of the redirect.

Benefits It would allow to append custom text to redirects depending on the situation.

Details

Event Timeline

Grufo renamed this task from Pass “Page moved from” and “Page moved to” as $1 and $2 to MediaWiki:Move-redirect-text to Pass the target of the redirect as $1 to MediaWiki:Move-redirect-text.Mar 5 2026, 4:44 AM
Grufo updated the task description. (Show Details)

Change #1248661 had a related patch set uploaded (by Pppery; author: Pppery):

[mediawiki/core@master] Pass new title as parameter to move-redirect-text

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

Change #1248661 merged by jenkins-bot:

[mediawiki/core@master] Pass new title as parameter to move-redirect-text

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