Help:Datatype "Page" en 1.0 1.7.1
|Holds names of wiki pages, and displays them as a link|
|Provided by:||Semantic MediaWiki|
|Added in version:||1.0|
|Removed in version:||still in use|
|In this wiki:||Page|
|Table of Contents|
The datatype page is used for properties whose value is a page in the wiki. These display as a link.
This is the default type of a Property. In other words, if you write [[Brand New Prop::Some Value]], SMW assumes Brand New Prop is of type Page and that Some Value is a page in the wiki (whether or not it exists).
Note that "Properties of type “Page”" below only lists properties that explicitly state their type as page; it does not list pages that do not list a type and default to this. See Special:Properties for all properties in use in the wiki.
In earlier versions of SMW (< SMW 1.0), properties of Type:Page were known as relations.
Datatype Page versus datatype String
You can use datatype Page in most cases where you would use datatype String. Making the property value a Wiki page allows you to document each possible value in the wiki. It is not an error if there is no page yet for the value. Indeed, this can encourage consistency as links to non-existent pages appear differently. Viewing the page for a value in the Semantic Browser will show all the pages and relations for which it is the object.
Using datatype String may be better in case the possible values of the property:
- are a large set
- may be longer than the maximum page name
- do not have much useful documentation