Page MenuHomePhabricator

mainlabel parameter absent in "further results"
Closed, ResolvedPublic

Description

Author: sh_holms

Description:
When using internal data one usually wants to suppress the mainlabel by setting it to '-', however that setting is not properly transmitted to the further results page.


Version: unspecified
Severity: normal

Details

Reference
bz23722

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:02 PM
bzimport set Reference to bz23722.

van.de.bugger wrote:

Request:

{{ #ask: [[:+]] [[Modification date::+]]

?#
?Modification date#ISO=
mainlabel =-
format = ul
limit = 10
template = {{PAGENAME}}

}}

Template:

1="{{{1|}}}"; 2="{{{2|}}}"; 3="{{{3|}}}"; 4="{{{4|}}}"

Result on the page:

  • 1="'n Beetje Verliefd"; 2="2007-01-07T23:40:49"; 3=""; 4=""
  • 1="(animated)"; 2="2007-01-07T23:41:12"; 3=""; 4=""
  • 1="+O+U+R"; 2="2008-02-21T23:22:29"; 3=""; 4=""
  • … further results

Note the arguments passed to the template: 1 is "flat" is page name (not a link), 2 is modification date.

If I click on "...Further results":

  1. 1="'n Beetje Verliefd"; 2="'n Beetje Verliefd"; 3="2007-01-07T23:40:49"; 4=""
  2. 1="(animated)"; 2="(animated)"; 3="2007-01-07T23:41:12"; 4=""
  3. 1="+O+U+R"; 2="+O+U+R"; 3="2008-02-21T23:22:29"; 4=""

Note different number of arguments. There is an extra first argument: it is a link, and, what is more important, it is not expected by template.

Example: http://sandbox.semantic-mediawiki.org/wiki/Inline_query_with_template

van.de.bugger wrote:

Fix for the bug.

Please consider the fix.

Attached: