Help:Type Code

Jump to: navigation, search
Holds technical, pre-formatted texts (similar to type Text)
Further Information
Provided by: Semantic MediaWiki
Added in version: 1.4.2
Removed in version: still in use
Table of Contents

The datatype code is used for technical texts of arbitrary length, such as source code listings. Text is thus very similar to datatype Text, and it has the same restrictions regarding querying and sorting.

The special functionality of Type:Code properties is that they take some effort to preserve the layout and formatting of their values when displaying them on a wiki page. In particular, newlines and indents are preserved in the display, and some special characters such as "<" are escaped to preserve their appearance. Due to the architecture of MediaWiki and SMW, it is not possible to achieve this behaviour in any other way than by means of a specialised datatype.

This documentation page applies to all SMW versions from 1.4.2 to the most current version.
      Other languages: dezh-hans

Help:Type Code en 1.4.2