Special property "Display units"
Specifies the a comma-separated list of units or formats that a property should use in display
|Provided by:||extension "Semantic MediaWiki "Semantic MediaWiki (SMW) is a free, open-source extension to MediaWiki that lets you store and query data within the wiki's pages. Semantic MediaWiki is also a full-fledged framework, in conjunction with many spinoff extensions, that can turn a wiki into a powerful and flexible knowledge management system. All data created within SMW can easily be published via the Semantic Web, allowing other systems to use this data seamlessly.|
|Removed:||still in use|
|In this wiki:||Property:Display units|
The Display units property is a special property in Semantic MediaWiki with a built-in meaning: it specifies the a comma-separated list of units or formats that a property should use in display. In English the name display unit is an alias for this property.
When used on property pages of datatype "Quantity"Holds values that describe quantities, containing both a number and a unit, datatype "Temperature"Holds temperature values (similar to type Quantity) or datatype "Number"Holds integer and decimal numbers, with an optional exponent the effect is that all printouts will show the values only in the given units, and only in their given order. If a respective property does not specify any display units, then it will appear converted into all units supported by its datatype.
You can add this special property to a property page to limit the display, or to control the unit name used (e.g. display "mins" instead of "minutes"). The additional unit conversions appear in the tooltip, the factbox and some search results.
Note that even if you limit the display of units, you can still specify a property value using any unit that the underlying type supports or that was defined with special property "Corresponds to"Gives the conversion factor for some unit of a physical quantity and the possible names for that unit.
See the property page "Display units" to see which pages use this special property on this wiki.
The page of a property called "Has wattage" might contain:
Thus all values annotated with this property will be displayed in "kW". See the demo page "Watt"
- Help page on currency handling