Page MenuHomePhabricator

Template rendering broken for variable {{{1}}} having an external link with equal signs
Closed, ResolvedPublic

Description

Given are:

  1. a template page http://meta.wikimedia.org/wiki/Template:Bugzilla/Test

content:
<div style="margin:0; margin-top:10px; border:4px solid #000000; padding:25px
30px 25px 30px; background-color:#efefef; width:70%; ">{{{1}}}</div>

  1. an article page using that template http://meta.wikimedia.org/wiki/Bugzilla/Test

content:
{{Bugzilla/Test|foo foo a [http://www.google.de/search?q=mediawiki google] link}}

The article page is not rendered with that template. The "=" character appear to
break the page rendering.


Version: 1.6.x
Severity: normal
URL: http://meta.wikimedia.org/wiki/user:gangleri/tests/bugzilla/04455

Details

Reference
bz4455

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:00 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz4455.
bzimport added a subscriber: Unknown Object (MLST).

You set a parameter "foo foo a [http://www.google.de/search?q" to have the value
"mediawiki google] lin".

Try explicitly specifying the parameter name:
{{Bugzilla/Test|1=foo foo a [http://www.google.de/search?q=mediawiki google] link}}

gangleri wrote:

url was outdated / deleted
replacing with
http://meta.wikimedia.org/wiki/user:gangleri/tests/bugzilla/04455

REOPENing this bug and marking as a duplicate of the INVALID
Bug 1409: '=' character in template shorthand variable

gangleri wrote:

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

(In reply to comment #1)

You set a parameter "foo foo a [http://www.google.de/search?q" to have the value
"mediawiki google] link".

Try explicitly specifying the parameter name:
{{Bugzilla/Test|1=foo foo a [http://www.google.de/search?q=mediawiki google]

link}}

I see your point.

Does it effectively mean, that one always _should_ use the parameter method, if
the value is a longer arbitrary text which can have other links, as in my example ?

Brion: please can you confirm this or point to a better solution ?

It means if you want an "=" in your parameter text, currently you need to
explicitly specify the parameter name.