Extension:SMW ParserFunctionAsk

Introduction
This extension enables you to pass template parameters to the Semantic MediaWiki &lt;ask&gt; tag. The syntax is only marginally modified. Its based on the SMW_InlineQueryParserFunction made by Jim R. Wilson. It has recently been renamed to avoid conflict with the   parserfunction that is now native to Semantic MediaWiki.

Rationale
Eventhough Semantic MediaWiki now natively supports a parser function  , there is still reason to use this parserfunction. Although very similar, it has one great advantage over the SMW native   parser function, which is that it accepts template parameters. This feature enables you to use it in semantic templates that takes custom parameters.

Installation

 * 1) Copy the code from below into a file called SMW_ParserFunctionAsk.php.
 * 2) Drop this script in $IP/extensions/SemanticMediaWiki
 * Note: $IP is your MediaWiki install dir.
 * 1) Enable the extension by adding this line to your LocalSettings.php: require_once('extensions/SemanticMediaWiki/SMW_ParserFunctionAskMore.php');
 * Note: Make sure this appears later in LocalSettings than the include_once</tt> call which enables Semantic MediaWiki itself!

Usage
To query for an unordered list of results in extension tag form, you might do this: some relation to::Some Page

The equivalent parser function form is this: -or- -or-

You may provide all parameters that the original  </tt> tag supported provided that you do not use the quotes around the values. One might deduce from the code that these are re-inserted by the parser extension.

Furthermore you can use the template parameters which allows you declare more interesting semantic templates. An example:

Good luck!