Special property "Corresponds to"
Corresponds to | |
---|---|
Gives the conversion factor for some unit of a physical quantity and the possible names for that unit
| |
Further Information | |
Provided by: | extension "Semantic MediaWiki "Allows to store and query data annotated to pages |
Added: | 1.0 |
Removed: | still in use |
Alias: | has no alias |
Optional: | no |
Visible: | yes |
Annotable: | yes |
Declarative: | yes |
Key: | _CONV
|
Setting: | not specified |
Focus: | not specified |
In this wiki: | Property:Corresponds to |
Table of Contents | |
The Corresponds to property is a special property in Semantic MediaWiki with a built-in meaning: it gives the conversion factor for some unit of a physical quantity and the possible names for that unit. See the help page on custom units for details on using this special property.
You can use this special property with properties of datatype "Quantity"Holds values that describe quantities, containing both a number and a unit or datatype "Number"Holds integer and decimal numbers, with an optional exponent.
See also the property page "Corresponds to" to see which pages use this special property on this wiki.
Proportional conversions[edit]
For proportional conversions, as shown in the example below, datatype "Quantity" is set to the property. In case of non-proportional conversion either datatype "Number" or a designated datatype is used. So far only datatype "Temperature"Holds temperature values (similar to type Quantity) exists as an extra datatype of this kind.
- Example
The page of a property called "Has wattage" might contain:
[[Corresponds to::1 W, Watt, Watts]] [[Corresponds to::0.001 kW]] [[Corresponds to::0.0013410220 hp, bhp, horsepower]]
Positional references[edit]
Since Semantic MediaWiki 2.4.0Released on 9 July 2016 and compatible with MW 1.19.0 - 1.27.x. the position as suffix or prefix of the declared unit defines the display of the respective annotated data values.1
- Example
The page for a property called "Has currency" might contain:
[[Corresponds to::€ 1]] [[Corresponds to::1.06 USD, US$, $]]
See also the respective example page on <sandbox.semantic-mediawiki.org>.
See also[edit]
- Help page on custom units
- Help page on currency handling
References
- ^ Semantic MediaWiki: GitHub pull request gh:smw:1329