Last modified: 2011-06-07 14:19:27 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 T18571, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16571 - Support parameters to control details of query printouts
Support parameters to control details of query printouts
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: denny vrandecic
:
Depends on:
Blocks: 12822 15222 20217 14464 15431
  Show dependency treegraph
 
Reported: 2008-12-05 19:01 UTC by Markus Krötzsch
Modified: 2011-06-07 14:19 UTC (History)
2 users (show)

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


Attachments

Description Markus Krötzsch 2008-12-05 19:01:10 UTC
SMW supports the printout of additional data for each result of a semantic query. However, there are hardly any means to control the appearance of those printouts (e.g. to set a limit of values to be displayed, or to define the separator to be used). 

To allow more control of this part of query display, someone needs to propose how the user should enter these additional details. The current syntax of printouts is:

?property#unit = label

where the "#unit" and " = label" parts are optional. "property" could also be a category or other type of input. The problem is that this general form already precludes the use of most symbols. For instance, you could no write

?property (limit=10)

to set a limit for the results of this printout, since it is possible that a property page really is called "property (limit=10)". Until there is a proposal for this, no progress on allowing more parameters can be made.
Comment 1 Patrick 2009-08-14 13:23:30 UTC
How about we put the printout modifiers at the end of the query?

Like this:
{{ #ask: [[...]]
   | ?Property X         | ?Property Y | ?Property Z
   | #unit=€,decplaces=2 | #unit=km    | #dateformat=Y-m-d
}}
Comment 2 Markus Krötzsch 2009-08-14 16:14:56 UTC
Denny already had a proposal for this recently:

http://sourceforge.net/mailarchive/message.php?msg_name=A267219A-390C-4F23-8B3D-2598AA53172C%40aifb.uni-karlsruhe.de

The best place to continue this discussion would therefore be this thread on the devel list.
Comment 3 Markus Krötzsch 2009-11-03 14:27:18 UTC
This has now been implemented: additional parameters to individual ?printouts can be given by writing "|+ parameter=value" after the printout. Currently, there are parameters for limiting and ordering results ("limit=number" and "order=ascending/descending"), and special parameters for some printouts (e.g. format=table supports "align=right" and "align=center").

The bug remains open since these parameters do not work properly with Special:Ask yet: they are simply lost when clicking on "further results".

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


Navigation
Links