Last modified: 2008-06-09 22:17:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 14440 - need extra parameters in ask queries
need extra parameters in ask queries
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Markus Krötzsch
: easy
Depends on:
  Show dependency treegraph
Reported: 2008-06-06 11:26 UTC by Robert Murphy
Modified: 2008-06-09 22:17 UTC (History)
3 users (show)

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


Description Robert Murphy 2008-06-06 11:26:23 UTC
In ask queries, it would be very helpful to be able to pass an extra parameter to templates.  

When format=template there could be an additional parameter:
 |template=Generic letterman
 |userparam=whatever you want to pass to your template

without this enhancement, SMW users are dependent upon Extension:Variables, an under developed extension.
Comment 1 Markus Krötzsch 2008-06-08 15:40:20 UTC
So what you wish is that the template receives a parameter called "userparam" when being used in the query?
Comment 2 Robert Murphy 2008-06-08 15:48:17 UTC
Comment 3 Markus Krötzsch 2008-06-08 17:01:14 UTC
OK, done in SVN. Not sure if "userparam" is very obvious, but that is how it is called now (I can change that until release). The function is available both for format template and list (which both support templates).

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