Template:Datatype: Difference between revisions

From Mediawiki1
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 86: Line 86:
==== Details ====
==== Details ====


* '''labels''': should be defined to provide a human-readable version of a datatype name. Use ISO language code 639-1 (e.g. <nowiki>{{label|en|...}}</nowiki>).
* '''labels''': should be defined to provide a human-readable version of a datatype's name. Use ISO language code 639-1 (e.g. <nowiki>{{label|en|...}}</nowiki>).
* '''comments''': should be defined to provide a human-readable description of a datatype.  Use ISO language code 639-1 (e.g. <nowiki>{{comment|en|...}}</nowiki>).
* '''comments''': should be defined to provide a human-readable description of a datatype.  Use ISO language code 639-1 (e.g. <nowiki>{{comment|en|...}}</nowiki>).



Latest revision as of 12:49, 12 May 2012

The {{Datatype}} template can be used to define datatypes.

Usage

{{Datatype 
| labels    =
{{label|en|...}}
{{label|..|...}}
| comments  =
{{comment|en|...}}
{{comment|..|...}}
}}

Details

  • labels: should be defined to provide a human-readable version of a datatype's name. Use ISO language code 639-1 (e.g. {{label|en|...}}).
  • comments: should be defined to provide a human-readable description of a datatype. Use ISO language code 639-1 (e.g. {{comment|en|...}}).

For backwards compatibilty, the following format for labels and comments is also possible but deprecated:

{{Datatype
| rdfs:label@en          =
| rdfs:label@..          =
| rdfs:comment@en        =