Special property "Display units"

From Linux Web Expert

Revision as of 17:04, 25 March 2012 by >Kghbln (new)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Property "Namespace" has a restricted application area and cannot be used as annotation property by a user.Property "Docinfo editor" (as page type) with input value "User:>Kghbln" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.

This documentation page applies to all SMW versions from 1.0 to 1.5.6.
     


Display units
Specifies the a comma-separated list of units or formats that a property should use in display
Further Information
Provided by: extension "Semantic MediaWiki "No description was provided.
Added: 1.0
Removed: still in use
Alias: Display unit
Optional: no
Visible:
Annotable:
Declarative:
Key: not specified
Setting: not specified
Focus: not specified
In this wiki: Property:Display units
Table of Contents

Template:Interlanguagelink: en 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 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 ontoworld.org how semweb:Property:Age displays ages in years and converted into seconds, but not into other time units like days, minutes, or hours that its semweb:Type:Time also supports.

See the property page Display units to see which pages use this special property on this wiki.