Page MenuHomePhabricator

Template parameters inside HTML tags/attributes stopped working
Closed, ResolvedPublic

Description

Author: perl_dummy

Description:
I have setup some templates that use their parameters in something like:

<pre style="width={{{w}}}em">{{{txt}}}</pre>

With Mediawiki 1.3.x, this worked fine both for "w" and "txt". With 1.4.x,
the first parameter (w) gets replaced by HTML-escaping of the { (aka &#123;
or something) and thus the template breaks because "w" is no longer included.

The resulting source looks like:

<pre style="width=&#123;&#123;&#123;w}}}em">My Text</pre>

which is neither valid HTML nor the Right Thing[tm].

I would like to get the behaviour of 1.3.x back because my wiki relies on it
in a great number of templates; for instance a percentage bar that you can
call like:

{{percentage|n=35}}

Note: Bug #591 might be about the same case.

Thanx,

Tels


Version: 1.4.x
Severity: normal

Details

Reference
bz2743

Event Timeline

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

perl_dummy wrote:

Uhm, of course I just read that bug 2309 probably fixed exactly my problem. I
did not include fixed bugs in my search. *sigh*

Sorry!

zigger wrote:

*** This bug has been marked as a duplicate of 2309 ***