Page MenuHomePhabricator

Problem parsing when = character is involved
Closed, InvalidPublic

Description

Hi,

I found this behaviour when dealing with a Semantic MediaWiki parser function (subobject). I imagine it might affect other extensions as well.

Example:

Template Store:
{{#subobject:Program

Has Name={{{1}}}
Has URL={{{2}}}

}}

Page:
{{Store|Firefox|http://download.mozilla.org/?product=firefox-27.0&os=win&lang=ca}}

seems to break the {{{2}}} parameter processing.

Reference: https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/193


Version: unspecified
Severity: normal

Details

Reference
bz61315

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:07 AM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz61315.
bzimport added a subscriber: Unknown Object (MLST).

That is the expected behavior – this template calls expands to the template 'Store' with two parameters:

1 = Firefox
http://download.mozilla.org/?product = firefox-27.0&os=win&lang=ca

While unwanted in this case, this is the expected behavior. You can work around this by explicitly passing the second parameter (note the '2='):

{{Store|Firefox|2=http://download.mozilla.org/?product=firefox-27.0&os=win&lang=ca}}

Thanks! I see using named parameters could address it as well!