From 20a0af97a8ae1c5fb7dad09354a8cab9a581f8aa Mon Sep 17 00:00:00 2001 From: Skizzerz Date: Thu, 26 Dec 2013 22:41:15 -0600 Subject: [PATCH] Make MediaWiki:Redirectpagesub accept all wikitext. Redirectpagesub is used as the system message for subheadings on redirect pages. Currently, it only performs transformations of {{-style constructs whereas it could be useful to accept a wider range of wikitext. For example, one could change the message to "Redirect page ([[Special:WhatLinksHere/{{FULLPAGENAME}}|links]])" so that the subtitle displays a link to Special:WhatLinksHere. Currently that does not work. The subtitle is already in a block-level
so it can already handle additional block-level elements, thus the inclusion of arbitrary wikitext shouldn't break things (too) badly. Change-Id: Icbd29d71c325c63dfda80dfcd52ed32358a2f24e --- includes/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index 821c32ea69..a694daff9c 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1439,7 +1439,7 @@ class Article implements Page { if ( $appendSubtitle ) { $out = $this->getContext()->getOutput(); - $out->addSubtitle( wfMessage( 'redirectpagesub' )->escaped() ); + $out->addSubtitle( wfMessage( 'redirectpagesub' )->parse() ); } // the loop prepends the arrow image before the link, so the first case needs to be outside -- 2.20.1