Page MenuHomePhabricator

Category Tree does not see the argument that MediaWiki:Categorytree-header puts in a template.
Closed, ResolvedPublic

Description

Author: aliter

Description:
I used a simple text style template in MediaWiki:Categorytree-header. The text
does show on that page, but on CategoryTree it shows up as {{{1}}}.


Version: unspecified
Severity: normal
URL: http://fy.wiktionary.org/wiki/Wiki:CategoryTree

Details

Reference
bz7653

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:24 PM
bzimport set Reference to bz7653.
bzimport added a subscriber: Unknown Object (MLST).

aliter wrote:

The same for MediaWiki:Makebot-header on Wiki:Makebot.

robchur wrote:

Fixed for MakeBot in r18444.

robchur wrote:

Note that the general case here is us being nice and putting in a wikitext
header, but then doing something like:

$wgOut->addWikiText( wfMsg( 'someheadermessage' ) );

wfMsg() will allow the message cache to do message transformations, which messes
up templates and so forth, those get replaced at that time. This can usually be
addressed by changing this to:

$wgOut->addWikiText( wfMsgNoTrans( 'someheadermessage' ) );

This fixes the behaviour, and as a nice side-effect, should shave a tiny bit of
time off the whole operation, since a relatively expensive transformation step
isn't applied twice (once in wfMsg(), once in the implied parser run).

Fixed for CategoryTree in r25132