Template:Datatype: Difference between revisions
From Mediawiki1
Jump to navigationJump to search
(prettier 'missing labels' message) |
No edit summary |
||
| Line 8: | Line 8: | ||
{{#if:{{{rdfs:label@en|}}}|<!-- no message -->| | {{#if:{{{rdfs:label@en|}}}|<!-- no message -->| | ||
<tr> | <tr> | ||
<td colspan="2">please define labels | <td colspan="2">please define labels: <code><nowiki>labels={{label|en|...}} ...</nowiki></code></td> | ||
</tr> | </tr> | ||
}} | }} | ||
Revision as of 12:13, 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 =