Template:Datatype: Difference between revisions

From DBpedia Mappings
Jump to navigationJump to search
No edit summary
(Usage)
Line 84: Line 84:
</pre>
</pre>


The second argument of a label or comment is the language code, for example ''en'', ''ko'', ''it'', and so on.
==== 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>).
* '''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>).


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

Revision as of 12:37, 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 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        =