Template:Datatype: Difference between revisions
From DBpedia Mappings
Jump to navigationJump to search
(bg) |
No edit summary |
||
(14 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
<th colspan="2" style="text-align:left">Datatype <small>([[Template:Datatype|<span style="cursor:help;">help</span>]])</small></th> | <th colspan="2" style="text-align:left">Datatype <small>([[Template:Datatype|<span style="cursor:help;">help</span>]])</small></th> | ||
</tr> | </tr> | ||
{{#if:{{{labels|}}}|{{{labels}}}| | |||
{{#if:{{{rdfs:label@en|}}}|<!-- no message -->| | |||
<tr> | <tr> | ||
<td | <td colspan="2">please define an English label: <nowiki>labels = {{label|en|...}} ...</nowiki></td> | ||
</tr> | </tr> | ||
}} | |||
}} | |||
{{#if:{{{rdfs:label@ar|}}}|<tr> | {{#if:{{{rdfs:label@ar|}}}|<tr> | ||
<td width="150px">rdfs:label@ar</td> | <td width="150px">rdfs:label@ar</td> | ||
Line 23: | Line 26: | ||
<td>{{{rdfs:label@de}}}</td></tr>}} {{#if:{{{rdfs:label@el|}}}|<tr> | <td>{{{rdfs:label@de}}}</td></tr>}} {{#if:{{{rdfs:label@el|}}}|<tr> | ||
<td width="150px">rdfs:label@el</td> | <td width="150px">rdfs:label@el</td> | ||
<td>{{{rdfs:label@el}}}</td></tr>}} {{#if:{{{rdfs:label@es|}}}|<tr> | <td>{{{rdfs:label@el}}}</td></tr>}} {{#if:{{{rdfs:label@en|}}}|<tr> | ||
<td width="150px">rdfs:label@en</td> | |||
<td>{{{rdfs:label@en}}}</td></tr>}} {{#if:{{{rdfs:label@es|}}}|<tr> | |||
<td width="150px">rdfs:label@es</td> | <td width="150px">rdfs:label@es</td> | ||
<td>{{{rdfs:label@es}}}</td></tr>}} {{#if:{{{rdfs:label@fr|}}}|<tr> | <td>{{{rdfs:label@es}}}</td></tr>}} {{#if:{{{rdfs:label@fr|}}}|<tr> | ||
Line 37: | Line 42: | ||
<td>{{{rdfs:label@hu}}}</td></tr>}} {{#if:{{{rdfs:label@it|}}}|<tr> | <td>{{{rdfs:label@hu}}}</td></tr>}} {{#if:{{{rdfs:label@it|}}}|<tr> | ||
<td width="150px">rdfs:label@it</td> | <td width="150px">rdfs:label@it</td> | ||
<td>{{{rdfs:label@it}}}</td></tr>}} {{#if:{{{rdfs:label@ko|}}}|<tr> | <td>{{{rdfs:label@it}}}</td></tr>}} {{#if:{{{rdfs:label@ja|}}}|<tr> | ||
<td width="150px">rdfs:label@ja</td> | |||
<td>{{{rdfs:label@ja}}}</td></tr>}} {{#if:{{{rdfs:label@ko|}}}|<tr> | |||
<td width="150px">rdfs:label@ko</td> | <td width="150px">rdfs:label@ko</td> | ||
<td>{{{rdfs:label@ko}}}</td></tr>}} {{#if:{{{rdfs:label@nl|}}}|<tr> | <td>{{{rdfs:label@ko}}}</td></tr>}} {{#if:{{{rdfs:label@nl|}}}|<tr> | ||
Line 52: | Line 59: | ||
<td width="150px">rdfs:label@tr</td> | <td width="150px">rdfs:label@tr</td> | ||
<td>{{{rdfs:label@tr}}}</td></tr>}} | <td>{{{rdfs:label@tr}}}</td></tr>}} | ||
{{{comments|}}} | |||
{{#if:{{{rdfs:comment@en|}}}| | |||
<tr> | <tr> | ||
<td>rdfs:comment@en</td> | <td>rdfs:comment@en</td> | ||
<td>{{{rdfs:comment@en | <td>{{{rdfs:comment@en}}}</td> | ||
</tr> | </tr> | ||
}} | |||
</table> | </table> | ||
{{#if:{{{specificProperties|}}}|<h3>Specific Properties</h3> | {{#if:{{{specificProperties|}}}|<h3>Specific Properties</h3> | ||
Line 65: | Line 75: | ||
<pre> | <pre> | ||
{{Datatype | {{Datatype | ||
| labels = | |||
{{label|en|...}} | |||
{{label|..|...}} | |||
| comments = | |||
{{comment|en|...}} | |||
{{comment|..|...}} | |||
}} | |||
</pre> | |||
==== Details ==== | |||
* '''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>). | |||
For backwards compatibilty, the following format for labels and comments is also possible but '''deprecated''': | |||
<pre> | |||
{{Datatype | |||
| rdfs:label@en = | | rdfs:label@en = | ||
| rdfs:label@.. = | | rdfs:label@.. = | ||
| rdfs:comment@en = | | rdfs:comment@en = | ||
</pre> | </pre> |
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 =