Template:Datatype: Difference between revisions
From Mediawiki1
Jump to navigationJump to search
(Usage) |
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 an English label: | <td colspan="2">please define an English label: <nowiki>labels = {{label|en|...}} ...</nowiki></td> | ||
</tr> | </tr> | ||
}} | }} | ||
| Line 75: | Line 75: | ||
<pre> | <pre> | ||
{{Datatype | {{Datatype | ||
| labels = | | labels = | ||
{{label|en|...}} | {{label|en|...}} | ||
{{label|..|...}} | {{label|..|...}} | ||
| comments = | | comments = | ||
{{comment|en|...}} | {{comment|en|...}} | ||
{{comment|..|...}} | {{comment|..|...}} | ||
Revision as of 12:39, 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 =