|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|
|Table of Contents|
The datatype Page is used for properties whose value is a page in the wiki. These display as a link and may not be longer than 255 characters.
This datatype is the default datatype of a property if a different datatype was not explicitly set. 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” only list properties that explicitly state their type as page; it does not list pages that do not list a datatype and default to this. See special page "Properties" for all properties in use in the wiki.
In earlier versions of SMW (< SMW 1.0), properties of datatype "Page" were known as "relations".
Datatype Page versus datatype Text
You can use datatype Page in most cases where you would use datatype "Text". 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 "Text" may be better in case the possible values of the property:
- are a large set
- do not have much useful documentation
Help:Type Page en 1.8.0