Last modified: 2014-03-02 08:29:40 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 24913 - Inline Query template use - Passing Static Arguments
Inline Query template use - Passing Static Arguments
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Markus Krötzsch
Depends on:
  Show dependency treegraph
Reported: 2010-08-23 16:14 UTC by skew
Modified: 2014-03-02 08:29 UTC (History)
2 users (show)

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


Description skew 2010-08-23 16:14:19 UTC
I've got a couple areas of my wiki where I could use an inline query template like this:

* {{{1}}} {{#if:{{{2}}} |
** {{{2}}}: {{{3}}} }} {{#if:{{{4}}} |
** {{{4}}}: {{{5}}} }} {{#if:{{{6}}} |
** {{{6}}}: {{{7}}} }} etc.

I've got this great search engine and I'd like the user to pick what information they want listed.  It would be easy to set up the inline query to pass only certain values to the template.  What I'm missing is a way to pass a fixed string to a template through in inline query.  To illustrate, my querey would be something like:

{{#ask: [[Category:BuildClassifier]]
{{#if: {{{BuildMaterialSelected|}}} | 
|(send "Build Material") 
| ?Has BuildMaterial= 
}} }}
{{#if: {{{BuildLocationSelected|}}} |  
| (send "Build Location") 
| ?Has BuildLocation= 
}} }}
{{#if: {{{BuildCostSelected|}}} |  
| (send "Build Cost") 
| ?Has BuildCost= 
}} }}

My alternative is to be less flexible with the output, or to create every possible permutation.  My real pages have 7-10 parameters, so the latter won't work out too well.
Comment 1 Alexander Mashin 2014-03-02 08:29:40 UTC
If I correctly understand what you want, define Template:! containing only |.

Then pass to {{#ask:}} template=VariableBuildList{{!}}1=Build Material.

There is also the userparam option ( but it is of limited use.

Doesn't look like a bug.

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