Help:Special property "Allows value list"

From semantic-mediawiki.org
Jump to: navigation, search
Allows value list
Adds a reference to a list of permissible values for a property
Further Information
Provided by: Semantic MediaWiki
Added: 2.5.0
Removed: still in use
Alias: has no alias
Is optional: yes
Label: not specified
Focus: property restriction
In this wiki: Property:Allows value list

The Allows value list property is a special property in Semantic MediaWiki with a built-in meaning: it assigns a reference which is used to define a page which allows to map a list of permissible values to the referencing property. The referenced page is located like a system message in the "MediaWiki" namespace and consists of the string "Smw_allows_list_" and the stored reference as a suffix to it, e.g. "MediaWiki:Smw_allows_list_..." with "..." being replaced by the reference added to this special property. It was introduced with Semantic MediaWiki 2.5.0.1

Usage

Two steps have to be taken to use this special property:

  1. Add [[Allows value list::...]] to a property page for defining a page reference, e.g. [[Allows value list::Foo]] will define page "MediaWiki:Smw_allows_list_Foo".
  2. Add permissible values as listed items starting either with "*" or "**" to the "MediaWiki:Smw_allows_list_..." page, e.g. "* Bar" or "** Foobar" to page "MediaWiki:Smw_allows_list_Foo".

Note

See also

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2295