Last modified: 2013-03-15 15:17:41 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 T25722, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23722 - mainlabel parameter absent in "further results"
mainlabel parameter absent in "further results"
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-31 02:51 UTC by Ed
Modified: 2013-03-15 15:17 UTC (History)
3 users (show)

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


Attachments
Fix for the bug. (1.92 KB, patch)
2011-07-15 22:36 UTC, Van de Bugger
Details

Description Ed 2010-05-31 02:51:51 UTC
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.
Comment 1 Van de Bugger 2011-07-15 20:46:16 UTC
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="'n Beetje Verliefd"; 2="'n Beetje Verliefd"; 3="2007-01-07T23:40:49"; 4=""
# 1="(animated)"; 2="(animated)"; 3="2007-01-07T23:41:12"; 4=""
# 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
Comment 2 Van de Bugger 2011-07-15 22:36:06 UTC
Created attachment 8788 [details]
Fix for the bug.

Please consider the fix.
Comment 3 Jeroen De Dauw 2011-07-15 23:05:22 UTC
Patch applied in r92337.

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


Navigation
Links