Help:Special property Has type

(Redirected from Help:Has type)
Jump to: navigation, search
Has special property name::Has type
Has description::Assigns a type to a property
Further Information
Provided by: Has component::Semantic MediaWiki
Added: Has minimum version::1.0
Removed: Has maximum version::still in use
Alias: Has special property alias::has no alias
Is optional: Is optional special property::no
Label: Has special property label::not specified
In this wiki: Property:Has type

The Has type property is a special property in Semantic MediaWiki with a built-in meaning: it assigns a datatype to a property. Special:Types lists the types available in the wiki.

For example, the page for Property:Population would specify
This is a property of type [[Has type::Number]]
as datatype number is adequate in this case.

From version 1.0 to 1.4.3, SMW allowed many-valued properties. Types for these properties were specified by listing multiple types as the value of "Has type", separated by semicolons. Starting with version 1.5.0, many-valued properties were replaced by the type Record.

See the property page Has type to see which pages use this special property on this wiki.


Note that has type can always be used verbatim in English, but many other languages have translations for this property. It is probably preferred to use the translated version.

  • German: Datentyp
  • Traditional Chinese: 設有型態
  • Simplified Chinese: 设有型态
  • Slovakian: Má typ
  • Russian: Имеет тип
  • Polish: Ma typ
  • Dutch: Heeft type
  • Korean: 이 유형
  • Hebrew: מטיפוס
  • French: A le type
  • Spanish: Tiene tipo de datos


It is possible to introduce further aliases for this (or any other special property by adding an entry to the $m_SpecialPropertyAliases array of the SMW_LanguageXX class (with XX being the language code used for the wiki). An entry for the English alias exists already.

{{#set: |docinfo status=effective }}{{#set: |worn by =Template:Docinfo |warning =Master page updated }}{{#set:

|worn by =Template:Docinfo
|warning =No description

|revision id=41205 |namespace=Help |docinfo progress =100 |docinfo priority =3 }}{{#set:docinfo master page=Help:Special property Has type }}{{#set:docinfo master rev =41205 }}{{#set:docinfo category=-}}{{#set:docinfo author=User:Denny Vrandecic}}{{#set:docinfo editor=User:MWJames}}{{#set:docinfo support=-}}{{#set:docinfo language=en}}

This documentation page applies to all SMW versions from 1.5.0 to the most current version.
Other versions: {{#ask: Docinfo master page::Help:Special property Has type Docinfo language::en from version::!1.5.0|
   ?from version = |
   ?to version = |
   sort = from version|
   order = desc|
   sep=, |
   limit = 3|
   searchlabel = […]
  }}       Other languages: {{#ask: Docinfo master page::Help:Special property Has type from version::1.5.0 Docinfo language::!en|
  ?Docinfo language =|
  sep=, |
  sort = Docinfo language|
  order = asc|
  limit = 10|
  searchlabel = […]

Docinfo master page::Help:Special property Has type Docinfo language::en from version::1.5.0

{{#set:Release status=current}}

{{#set:Is master page=true}}