Last modified: 2012-08-10 19:51:56 UTC
Replaces [1]/[2] with a new SRF output format called "incoming". ## Description This integration makes parser #iask obsolete while providing extended functionality such as using template functionality (in order to improve performance) or to display counted elements per assigned property (where when using #iask one had to use two calls to fetch those information). The integration further allows to use the internal SMW QueryCache for identical results. Incoming properties are displayed as simple separated list using [sep] or through a [template] which add's flexibility and allows to implement a semi-drilldown capacity (for example by using #queryformlink [3] or #drilldownlink [4]) for assigned incoming properties. ## Parameters [min] sets threshold [sep] sets separator [template] sets template name [userparam] transfers {{{userparam}}} into the template [count] transfers {{{count}}} into the template [cache] true/false (displayed where SMWQueryCache does exists) to enable query cache The count parameter works only in connection with a template. When using a template and [count] is set true the parameter {{{count}}} is reserved for displaying the count value. Selection can be executed on a single page [[ ... ]] or a [[property::value]] pair. ## Example {{#ask:[[ ... ]] |format=incoming |headers=none |template=Incoming properties |link=all |userparam=... |count=true |sep=; |min=1 |offset= |limit= }} # Tests MW 1.18 / 1.19; SMW 1.7/1.8alpha ##Notes [1] http://www.semantic-mediawiki.org/wiki/Semantic_Incoming_Properties [2] http://www.mediawiki.org/wiki/Extension:Semantic_Incoming_Properties [3] http://www.semantic-mediawiki.org/wiki/Help:Enhancing_query_forms [4] http://www.semantic-mediawiki.org/wiki/Help:Accessing_drilldown_page
Created attachment 10718 [details] Patch against SRF.git (SRF_Messages.php, SRF_Settings.php, SemanticResultFormats.php)
Created attachment 10719 [details] Actual SRF printer
Don't get me started with gerrit. My request is open for over a month now and the guys don't seemed to be able to send me a simple email for getting access (my patience on this issue is really running low) that's why for the time being I can only post patches here.
https://gerrit.wikimedia.org/r/#/c/11205/
This points current commit https://gerrit.wikimedia.org/r/#/c/17165/
I need some glasses of course it should read "... points to the current commit"