Property:Display units

From HackerspaceWiki
Jump to: navigation, search

Display units is a special property that specifies the a comma-separated list of units or formats that a property should use in display. In the English language, the name display unit is an alias for this property.

When used on property pages that have a datatype that supports units, the effect is that all printouts will show the values only in the given units, and only in their given order. If a property does not specify any display units, then it will appear converted into all units supported by its type. 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 and 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.

For example, see on how ow:Property:Age displays ages in years and converted into seconds, but not into other time units like days, minutes, or hours that its ow:Type:Time also supports.

This documentation page applies to all SMW versions from 1.0 to the most current version.

Property:Display units en 1.0

"Display units" is a predefined property (also known as special property). It is a built-in property that comes with additional administrative privileges but can be used just like any other user-defined property.

Pages using the property "Display units"

This property is a special property in this wiki. Showing 1 page using this property.


Mosul space +kW  +
Personal tools