Last modified: 2012-12-20 13:30:01 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 13707 - undocumented ?{blank} for first column in inline queries has some inconsistencies
undocumented ?{blank} for first column in inline queries has some inconsisten...
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
All All
: Lowest minor (vote)
: ---
Assigned To: Markus Krötzsch
Depends on:
  Show dependency treegraph
Reported: 2008-04-11 22:58 UTC by S Page
Modified: 2012-12-20 13:30 UTC (History)
0 users

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


Description S Page 2008-04-11 22:58:12 UTC
SMWQueryProcessor.php's processFunctionParams() checks to see if there's a request to display an empty title (e.g. |? ), and if so it shows the first column of page titles that match the query.  You can also use this to control the label for the first column (e.g. | ?=title of first column).

* This is undocumented.
* The mainlabel parameter can turn off the display of the first column using |mainlabel=-, but ?- or ?=- don't work.
* The documented way to label the first column is with the mainlabel parameter

The help for mainlabel, , has a comment ''This might change in future versions to provide an additional simpler method with the |-syntax.''  Is the current behavior this "additional simpler method"?  Should I document it as well/in preference to the mainlabel parameter?
Comment 1 Markus Krötzsch 2008-04-17 20:07:29 UTC
For clarification: the |? (printout statement without giving a name) is intended to work like any other printout statement, so that users can replace the main column if deisred. Now the main column is also shown if no request for it is made, and the parameter "mainlabel" was hitherto used to deal with labelling in this case. Now there are two new functions here:

* "mainlabel=-" hides the default display of the first column
* ? inserts the "first column" anywhere among the printouts

Unfortunately, there is an overlap in functionality here, especially if ? is given in the first position. The special processing for mainlabel=- makes sense, since there is no other way to remove the first default column. For the other columns (including ?=label), however, this is not needed, since any of those extra printouts can be hidden by just not writing it down. If "?=-" would do anything special, then it would be to hide *this* printout, but not the default first-column printout. I am not really happy with mainlabel=..., but I do not see a backwards-compatile way to proceed otherwise.

You are of course right about the incomplete documentation here. I mark that bug as "later" since I know not what to do now (which does not affect the docu issue).

Comment 2 Andre Klapper 2012-12-20 13:30:01 UTC
[Removing RESOLVED LATER as discussed in and announced in . Reopening and setting priority to "Lowest". For future reference, please use either RESOLVED WONTFIX (for issues that will not be fixed), or simply set lowest priority. Thanks a lot!]

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