Last modified: 2010-05-15 15:59:51 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T13671, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11671 - Conditional + span failure
Conditional + span failure
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.11.x
PC Linux
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.ajs.com/ajswiki/Template:W...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-15 16:48 UTC by Aaron Sherman
Modified: 2010-05-15 15:59 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Aaron Sherman 2007-10-15 16:48:34 UTC
I have a template that invokes another template like so:

  {{wowlink|{{{1}}}|{{{2}}}|i|item}}

I tried to convert this template to include a font coloration as a third parameter:

  {{wowlink|{{#if:{{{3|}}}|<span style="color:
    {{{3}}}">{{{1}}}</span>}}|{{{1}}}}}|{{{2}}}|i|item}}

And it rendered like so (the start of the rendered template only):

  }">{{{1}}}

Notice the }"> that's being rendered as text. So, it seems that the parser is becoming confused over the nesting of parameter substitution and quoting. My assumption is that this is a bug, and I haven't found anything that contradicts that assumption, but if anyone has information to the contrary, I'd be happy to hear it.

The template now (correct, but without color support):

  http://www.ajs.com/ajswiki/Template:Wowitem

The template version with the bug:

  http://www.ajs.com/ajsw/index.php?title=Template:Wowitem&oldid=5433
Comment 1 Aaron Sherman 2007-10-15 16:52:14 UTC
Oops, I had an extra set of }} in that, but the bug still remains the same. See the corrected version that still demonstrates the bug at:

  http://www.ajs.com/ajsw/index.php?title=Template:Wowitem&oldid=5435
Comment 2 Aaron Schulz 2008-09-12 14:05:01 UTC
Works fine as of HEAD (1.14a) with the new Parser. OldParser still parses this brokenly. On the other hand, it's not really supported too much anymore.

I'd recommend upgrading.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links