Help:Count format

From semantic-mediawiki.org
Jump to: navigation, search
Count format
Returns just the number of results (a count of the number of matching pages), instead of the results themselves
Available languages
deenzh-hans
Further Information
Provided by: Semantic MediaWiki
Added: 0.7
Removed: still supported
Requirements: none
Format name: count
Enabled by default: 
Indicates whether the result format is enabled by default upon installation of the respective extension.
yes
Authors: Markus Krötzsch
Categories: misc
Group:
Table of Contents

↓ INFO ↓

The result format count is used to show the number of results that a query in Semantic MediaWiki would return.1 The result is simply a number. The computation of this number usually will use larger limits than the default limit set with the $smwgQMaxInlineLimit configuration parameter for inline queries, so even large numbers may be reported by "count". Also the result cannot be restricted using the "limit" standard parameter to inline queries, i.e. |limit=10 will not work.

Parameters

There are no parameters specific to the count format. In fact, most standard parameters do not make sense either, since the output is very specific.

Example

{{#ask:
 [[Category:City]]
 [[located in::Germany]] 
 |format=count
}}

Result: 6


This documentation page applies to all SMW versions from 0.7 to the most current version.
      Other languages: dezh-hans

Help:Count format en 0.7