Type:String

From Placeography

(Difference between revisions)
Jump to: navigation, search
(New page: The datatype '''string''' is used for simple words and similar character sequences. It has the following restrictions: * no double closing brackets, * no ":=" (even inside nowiki tags it ...)
Current revision (22:54, February 10, 2008) (view source)
 
Line 1: Line 1:
The datatype '''string''' is used for simple words and similar character sequences. It has the following restrictions:
The datatype '''string''' is used for simple words and similar character sequences. It has the following restrictions:
-
* no double closing brackets,
 
* no ":=" (even inside nowiki tags it gives problems),
* no ":=" (even inside nowiki tags it gives problems),
-
* not longer than 255 characters (the factbox can show more, but a query shows a truncated version).
+
* not longer than 255 characters(If you need longer strings, use [[Type:Text]].)
 +
 
 +
If you use wiki markup inside a string property, it will not display in inline queries
 +
 
 +
== Enumerations ==
 +
You can use the special property [[Property:Allows value|Allows value]]
 +
to restrict a property to a particular set of values.
 +
For example you could limit "Status" to certain states.
 +
 
 +
The old Type:Enumeration from SMW versions prior to 1.0 is an alias for [[Type:String]] since it has the same behavior.

Current revision

The datatype string is used for simple words and similar character sequences. It has the following restrictions:

  • no ":=" (even inside nowiki tags it gives problems),
  • not longer than 255 characters. (If you need longer strings, use Type:Text.)

If you use wiki markup inside a string property, it will not display in inline queries

Enumerations

You can use the special property Allows value to restrict a property to a particular set of values. For example you could limit "Status" to certain states.

The old Type:Enumeration from SMW versions prior to 1.0 is an alias for Type:String since it has the same behavior.


This type is among the standard datatypes of this wiki.

Personal tools
Contribute
[http://discussions.mnhs.org/HP/oneonone.cfm snubnosed]