Extension:Semantic Sifter
This extension is incompatible with MediaWiki 1.39 or any later release! You are advised against using this extension on a live site.
|
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. If you are interested in taking on the task of developing and maintaining this extension, you can request repository ownership. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{Extension }} infobox. |
Semantic Sifter Release status: unmaintained |
|
---|---|
Implementation | Parser function |
Description | Allows to easily query a category and filter results by its properties |
Author(s) | Kim Eik (netbraintalk) |
Latest version | 0.2.0 (2017-08-03) |
MediaWiki | 1.23+ |
PHP | 5.3+ |
Database changes | No |
Composer | mediawiki/semantic-sifter |
License | GNU General Public License 3.0 |
Download | use composer |
Translate the Semantic Sifter extension if it is available at translatewiki.net | |
The Semantic Sifter extension queries a set of pages and displays the result in a filterable view.
Installation
editInstall using Composer (mediawiki/semantic-sifter)
Parameters
editfilterwidth - set's the filter input boxes width. default 20% display - controls what output components to show, both (default), filter or result.
Property specific parameters
editvalues - a comma separated list of values to show in the filter input as autocomplete suggestions.
#sift usage
editThe sift parser function very similar to the SMW #ask parser function.
{{#sift: <query> | <parameters> | !<filterable smw property>[=display name][;values=value1,value2,...] | ?<smw property>[=display name][;values=value1,value2,...] }}
Example
edit{{#sift: [[Category:Cars]] |!CarModel=Model |?CarModel=Model |?CarYear=Year |display=both |filterwidth=20% |format=broadtable }}
#siftlink usage
editThe siftlink makes it possible to make links to pages containing a #sift parser function and set's filtering values.
{{#siftlink:<title> |<filter>[;<filter>] |<link text> }}
Example
edit{{#siftlink:PageContainingSift |Property::Value;Property2::Value2 |This link will add a Value constraint on Property and Value2 constraint on Property2 }}
Known bugs
edit- Property names are case sensitive, if the property name is cased incorrectly, the filtering component will not function properly.
See also
edit- Extension:Semantic Result Formats (filtered format)