Last modified: 2012-03-03 04:54:50 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 T25419, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23419 - SF preload query string does not parse template functions
SF preload query string does not parse template functions
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-06 10:41 UTC by Neill Mitchell
Modified: 2012-03-03 04:54 UTC (History)
3 users (show)

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


Attachments

Description Neill Mitchell 2010-05-06 10:41:48 UTC
Hi.

I have the following:

{{#formlink:form=Edit Request Form|link text=Request Changes|link type=button|query string=Edit Request Template[Submitted By]={{#username:alt}}&Edit Request Template[Email]={{#useremail:alt}}&Edit Request Template[Telephone]={{{Telephone|}}}&Edit_Request_Template[Organisation]={{PAGENAME}}}}

When the button is clicked the form is show. The Submitted By field correctly contains the logged in username. However, the email field just shows "{{"

The query string is not parsing the {{#useremail:alt}} properly.
Comment 1 Dan Bolser 2010-05-31 05:03:18 UTC
&Edit Request Template[Telephone]={{{Telephone|}}}

?
Comment 2 Neill Mitchell 2010-06-01 12:49:16 UTC
Makes no difference I'm afraid. (In reply to comment #1)
> &Edit Request Template[Telephone]={{{Telephone|}}}
> 
> ?
Sorry Dan, what do you mean?
Comment 3 Dan Bolser 2010-06-01 18:47:49 UTC
Sorry I don't recognize the syntax {{{Telephone|}}} ... Do'h ... Must be a template variable. Sorry, I didn't pick up that this code was inside a template, and I was confused by the 'form tag' syntax (e.g. {{{intro|...}}}).

I guess you've checked that the parameter is being correctly passed to the template?

Have you tried removing spaces from the query string?
Comment 4 Neill Mitchell 2010-06-02 08:15:25 UTC
Hi Dan.

Yes, it's a template variable. They work fine :) SF just doesn't seem to support things like {{#useremail:alt}}.  

Cheers
Neill.
Comment 5 badon 2012-03-02 00:38:33 UTC
I'm able to use any parser functions and magic words in #formlink. It appears you may have been having a problem with a bug in the particular extension that provides the parser functions you were having difficulty with. It's also possible that there was a mismatched set of curly braces in your code somewhere. 

I'm marking this "WORKSFORME". If you're still having trouble with this, let me know and I can try confirming it.
Comment 6 Neill Mitchell 2012-03-02 13:48:35 UTC
I think the major work that occurred for the 2.3.X and 2.4 version of SF has now taken care of this :)
Comment 7 badon 2012-03-03 04:54:50 UTC
Oh yes, I think you're right. There was an issue with magic words that I think Stephan fixed at some point. It might have been related to the troubles you were having. Either way, I'm glad it's working for you now.

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


Navigation
Links