Page MenuHomePhabricator

Preload of multiple-template parameter fails
Closed, InvalidPublic

Description

When a multiple-template parameter is passed in a {{#formlink ...}} the templates are parsed along the way. This doesn't seem correct, the parameters should be passed as they are.

When the formlink looks like this:
{{#formlink:...|link type=post button|Form[Items]={{{Items|}}} ... }}

and {{{Items|}}} looks like this:
{{Item |prop1=Value1 ||prop2=Value3}}{{Item |prop1=Value1 ||prop2=Value3}}{{Item |prop1=Value1 ||prop2=Value3}}

then on the new page the value of Items is not the same as the above but is what it looks like after parsing the templates, making this value useless on the new page.


Version: unspecified
Severity: normal

Details

Reference
bz56099

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:31 AM
bzimport set Reference to bz56099.

If the aim is to have the literal string "{{{Items|}}}" show up in the form, you can do that by putting "<nowiki>{{{Items|}}}</nowiki>" in the #formlink call. (Though it seems like a hack to pass in a parameter name - I would think there are more straightforward ways to accomplish whatever the goal is.) Anyway, I'm marking this as "invalid".