Help:Product format
From semantic-mediawiki.org
| Product format | ||
|---|---|---|
| Displays the product of all queried numerical data | ||
| Further Information | ||
| Provided by: | Semantic Result Formats | |
| Added: | 1.6.0 | |
| Removed: | still supported | |
| Requirements: | none | |
| Format name: | product | |
| Enabled by default:info.pngIndicates whether the result format is enabled by default upon installation of the respective extension. | yes | |
| Authors: | Jeroen De Dauw | |
| Categories: | math | |
| Table of Contents | ||
| ||
The result format product, part of the Semantic Result Formats extension, can be used to display the product 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 |
Examples
A simple example - display the volume of some shape based on width, hieght and depth properties:
{{#ask: [[My favourite beam]]
| ?Has width
| ?Has height
| ?Has depth
| format=product
}}
Math formats
These are the math related result formats provided by SMW and extensions to SMW.
- Average format
- Count format
- Max format
- Median format
- Min format
- Product format
- Sum format
This documentation page applies to all SMW versions from 1.6.0 to the most current version.