From: Skizzerz Date: Fri, 27 Dec 2013 04:41:15 +0000 (-0600) Subject: Make MediaWiki:Redirectpagesub accept all wikitext. X-Git-Tag: 1.31.0-rc.0~17484^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=20a0af97a8ae1c5fb7dad09354a8cab9a581f8aa;p=lhc%2Fweb%2Fwiklou.git 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 --- 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