Help:Type String
From semantic-mediawiki.org
| String | ||
|---|---|---|
| Holds character sequences up to 255 characters | ||
| Further Information | ||
| Provided by: | Semantic MediaWiki | |
| Added in version: | 1.0 | |
| Table of Contents | ||
| ||
The datatype string is used for simple words and similar character sequences. It has the following restrictions:
- If you want to store special character sequences like "::", you need to store them using the parser function #set, instead of with the more standard "[[property::value]]" notation.
- Values cannot be longer than 255 characters (if you use non-Latin characters, this number might be smaller). For longer strings, use datatype Text instead.
You can use some wiki markup inside a string property such as runs of ' for bold and italic, and the markup will change the appearance of the string. You cannot embed semantic annotations inside a string property.
Restricting values
You can use the special property Allows value to restrict a property to a particular set of values. For example you could limit a property like "Status" to values like "Active", "Pending", etc.
This documentation page applies to all SMW versions from 1.0 to the most current version.