Template:Datatype: Difference between revisions
From DBpedia Mappings
Jump to navigationJump to search
(correct syntax in error message) |
(prettier 'missing labels' message) |
||
Line 8: | Line 8: | ||
{{#if:{{{rdfs:label@en|}}}|<!-- no message -->| | {{#if:{{{rdfs:label@en|}}}|<!-- no message -->| | ||
<tr> | <tr> | ||
<td | <td colspan="2">please define labels, at least for English (en): <nowiki>labels={{label|en|...}}</nowiki></td> | ||
</tr> | </tr> | ||
}} | }} |
Revision as of 12:09, 12 May 2012
The {{Datatype}} template can be used to define datatypes.
Usage
{{Datatype | labels = {{label|en|...}} {{label|..|...}} | comments = {{comment|en|...}} {{comment|..|...}} }}
The second argument of a label or comment is the language code, for example en, ko, it, and so on.
For backwards compatibilty, the following format for labels and comments is also possible but deprecated:
{{Datatype | rdfs:label@en = | rdfs:label@.. = | rdfs:comment@en =