Last modified: 2011-11-09 01:27:58 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 T23905, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21905 - The 'intro =' and 'outro =' ask query parameters don't work with format = count.
The 'intro =' and 'outro =' ask query parameters don't work with format = count.
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-19 23:59 UTC by Dan Bolser
Modified: 2011-11-09 01:27 UTC (History)
3 users (show)

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


Attachments

Description Dan Bolser 2009-12-19 23:59:56 UTC
The 'intro =' and 'outro =' ask query parameters don't work with format = count.

Example:

{{#ask: [[Category:Dataset]] 
 [[Species::~*{{{species|}}}*]]
 {{#if: {{{type|}}} | [[Type::{{{type}}}]] }}
 {{#if: {{{tech|}}} | [[Technology::{{{tech}}}]] }}
 |intro = Found 
 |format = count
 |outro = results:
}}


Just outputs the number of results found, not the provided intro and outro strings. Changing "format = count" to "format = table" *does* show the provided intro and outro strings.
Comment 1 Markus Krötzsch 2009-12-30 13:44:39 UTC
Added in SVN. As usual, use _ to encode trailing spaces that would otherwise be eaten up in intro/outro parameter values.
Comment 2 Andrew Garrett 2010-12-20 16:35:43 UTC
This solution means that underscores are no longer allowed in the intro and outro parameters. It breaks lots of things, like links. Presumably there are saner solutions.
Comment 3 Van de Bugger 2011-10-19 19:52:28 UTC
Why don't use   or   for leading or trailing space, for example:

{{ #ask: ...
| intro = Result: 
}}

This works.
Comment 4 Van de Bugger 2011-10-19 19:56:26 UTC
(I hope by adding the previous comment I did not reopen the bug.)

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


Navigation
Links