v0.7+
Status: | effective |
Progress: | 100% |
Version: | 0.7+ |
Count format | |
---|---|
Returns just the number of results, instead of the results themselves. | |
Further Information | |
Provided by: | Semantic MediaWiki |
Added: | 0.7 |
Removed: | still supported |
Requirements: | none |
Format name: | count |
Enabled? Indicates whether the result format is enabled by default upon installation of the respective extension. | yes |
Authors: | Markus Krötzsch |
Categories: | misc · math |
Table of Contents | |
Contents |
The result format count is used to show the number of results (a count of the number of matching pages) that a query in Semantic MediaWiki would return.1 The result is always simply a number.
The computation of this number usually will use larger limits than the default limit set with the configuration parameter $smwgQMaxInlineLimit
Sets the maximal number of rows ever printed by queries for inline queries, so even large numbers may be reported by "count". Also the result cannot be restricted using the "limit
" parameter to inline queries, i.e. |limit=10
will not work.
Parameters[edit]
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[edit]
- Syntax
{{#ask: [[Category:City]] [[Located in::Germany]] |format=count }}
- Result
6
References
- ^ Semantic MediaWiki: GitHub issue comment gh:smw:1833:246869905