Page MenuHomePhabricator

The 'intro =' and 'outro =' ask query parameters don't work with format = count.
Closed, ResolvedPublic

Description

Author: dan.bolser

Description:
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.


Version: unspecified
Severity: enhancement

Details

Reference
bz21905

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:56 PM
bzimport set Reference to bz21905.

Added in SVN. As usual, use _ to encode trailing spaces that would otherwise be eaten up in intro/outro parameter values.

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.

van.de.bugger wrote:

Why don't use   or   for leading or trailing space, for example:

{{ #ask: ...

intro = Result: 

}}

This works.

van.de.bugger wrote:

(I hope by adding the previous comment I did not reopen the bug.)