Help:Sum format

From semantic-mediawiki.org
Jump to: navigation, search
Sum format
Displays the sum of all queried numerical data
Further Information
Provided by: Semantic Result Formats
Added: 1.4.2
Removed: still supported
Requirements: none
Format name: sum
Enabled by default:info.pngIndicates whether the result format is enabled by default upon installation of the respective extension. yes
Authors: Nathan Yergler
Categories: math
Table of Contents

The result format sum, part of the Semantic Result Formats extension, can be used to display the sum of all numerical values in the result.

Parameters

Parameter Type Default Description
limit Whole number 1000 The maximum number of pages to query
default Text empty Default value that will be displayed when there are no numerical results

Example

A query for this format could look like:

{{#ask: [[Category:City]]
| ?Population
| format=sum
}}

Result: 27,533,086 (verify)

Math formats

These are the math related result formats provided by SMW and extensions to SMW.



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

Help:Sum format en 1.4.2


Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox