Page MenuHomePhabricator

Templates are not evaluated in special pages (when included in wiki text type MediaWiki messages)
Closed, DeclinedPublic

Description

Author: gangleri

Description:
Hallo!

Sorry for this:
If [[MediaWiki:Recentchengestext]] includes a template like
{{foo|text=bar|{{{style|}}}}}
it will render properly at [[MediaWiki:Recentchangestext]] but
*not* at [[special:Recentchanges]]

Example:
http://yi.wikipedia.org/w/index.php?title=MediaWiki:Recentchangestext&diff=21347&oldid=21344
http://yi.wikipedia.org/w/index.php?title=MediaWiki:Recentchangestext&diff=21344&oldid=21347
are showing the same diff.

The revision using templates will render three {{{text}}} at
'special:Recentchanges'.

There is a workaround using {{subst:}}. However this solution would require a
modification of all involved MediaWiki messages each time the template /
templates is / are changed.

*note*
I did *not* experience such limitations during summer last year.

best regards reinhardt [[user:gangleri]]


Version: unspecified
Severity: trivial

Details

Reference
bz5371

Event Timeline

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

Seems fine to me. Create a *VERY SPECIFIC* and *LEGIBLE* test case please.

Closing WORKSFORME.

gangleri wrote:

Sorry for the delay Brion!

I added [[yi:template:dir rtl]] at [[yi:MediaWiki:Perfcachedts]].

However at [[yi:special:Ancientpages]] the template renders as {{{text}}} .
This should be the case also at other special pages which are cached.

You are a [[yi:special:Listusers/sysop]] at [[yi:]]. If you revert to
http://yi.wikipedia.org/w/index.php?title=MediaWiki:Recentchangestext&oldid=21344
you will can see at [[yi:special:Recentchanges]] the problem reported originaly .

As far as I know 'MediaWiki:Recentchangestext' allows wiki syntax. The original
question was why [[yi:template:dir rtl]] and [[yi:template:dir ltr]] render
there as {{{text}}} .

best regards reinhardt [[user:gangleri]]

robchur wrote:

Unable to reproduce on a local wiki running 1.7alpha (r14015).
Steps taken:

  1. Switch on $wgMiserMode
  2. Create test template {{foo}} and whack some basic text in
  3. Edit MediaWiki:Perfcachedts to include {{foo}}
  4. Run updateSpecialPages.php

Viewing, e.g. Special:Wantedpages shows up the message at the top, as expected,
with the contents of the template transcluded and parsed, as expected.

Looking at the template, it appears that it expects a parameter named "text" to
be passed. Dumping {{dir rtl}} in a message will cause the template to be parsed
as expected; the absence of a "text" parameter causes {{{text}}} to be dumped as
HTML.

Resolving WORKSFORME.