Last modified: 2013-12-26 20:21:59 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 T58099, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56099 - Preload of multiple-template parameter fails
Preload of multiple-template parameter fails
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-24 13:29 UTC by Ad Strack van Schijndel
Modified: 2013-12-26 20:21 UTC (History)
0 users

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


Attachments

Description Ad Strack van Schijndel 2013-10-24 13:29:20 UTC
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.
Comment 1 Yaron Koren 2013-12-26 20:21:59 UTC
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".

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


Navigation
Links