https://bugzilla.wikimedia.org/show_bug.cgi?id=37446
Web browser: ---
Bug #: 37446
Summary: [SRF] 1.8; New SRF output format "incoming"
Product: MediaWiki extensions
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: SemanticResultFormats
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
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
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l