How to exclude the current page from the results of a query on the page


For specific are use cases it might be desirable to exclude exactly the one page that contains the query from the set of results of this query. This is currently not a feature of SMW but there are workarounds, for example:

  1. Install Extension:Semantic Extra Special Properties
  2. When following the installation instructions make sure you add the special property for the revision ID, for example by adding the following to LocalSettings.php:
    $sespSpecialProperties[] = '_REVID';// Add property with current revision ID
  3. Wait until Special:SMWAdmin is done
  4. Add [[Revision ID::!{{REVISIONID}}]] to the query string of the inline query
02:57, 27 February 2013