$smwgPDefaultType
Configuration parameter details: | |
Name | $smwgPDefaultType |
Description | Sets the default datatype for a property if it was not defined manually |
Default setting | _wpg
This means that datatype "Page"Holds names of wiki pages, and displays them as a link is by default assigned to all properties if it was not defined manually. |
Software | Semantic MediaWiki |
Since version | |
Until version | still available |
Configuration | Miscellaneous |
Keyword | property · datatype |
$smwgPDefaultType
is a configuration parameter that sets the default datatype for an undefined property, i.e. if the datatype was not specified by adding special property "Has type"Assigns a datatype to a property to the respective property's page. The configuration parameter was introduced in Semantic MediaWiki 1.1.2Released on 14 June 2008 and compatible with MW 1.10.x - 1.13.x..
Default setting[edit]
$smwgPDefaultType = '_wpg';
This means that by default all undefined properties, i.e. those without pages or whose pages have no "has type" statement, will be assumed to be of datatype "Page"Holds names of wiki pages, and displays them as a link specified by the corresponding internal datatype ID.
Changing the default setting[edit]
To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics()
call:
- Replace the default datatype "Page" by datatype "Text"
$smwgPDefaultType = '_txt';
_wpg
' or '_txt
' are not recommended.
List of internal datatype IDs[edit]
/i18n/extra/
XX.json".
See also[edit]
- General
- List of datatypes
- Help page on properties
- Technical
- Help page on Datatypes