Template:Datatype: Difference between revisions
From Mediawiki1
Jump to navigationJump to search
(Created page with '<includeonly>{{DisclaimerDatatype}} <table class="wikitable"> <tr> <th colspan="2" style="text-align:left">Ontology class <small>([[Template:Datatype|<span style="cursor:help;"...') |
No edit summary |
||
(18 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
<table class="wikitable"> | <table class="wikitable"> | ||
<tr> | <tr> | ||
<th colspan="2" style="text-align:left"> | <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> | ||
<td>{{{rdfs:label@ar}}}</td></tr>}} {{#if:{{{rdfs:label@bn|}}}|<tr> | <td>{{{rdfs:label@ar}}}</td></tr>}} {{#if:{{{rdfs:label@bg|}}}|<tr> | ||
<td width="150px">rdfs:label@bg</td> | |||
<td>{{{rdfs:label@bg}}}</td></tr>}} {{#if:{{{rdfs:label@bn|}}}|<tr> | |||
<td width="150px">rdfs:label@bn</td> | <td width="150px">rdfs:label@bn</td> | ||
<td>{{{rdfs:label@bn}}}</td></tr>}} {{#if:{{{rdfs:label@ca|}}}|<tr> | <td>{{{rdfs:label@bn}}}</td></tr>}} {{#if:{{{rdfs:label@ca|}}}|<tr> | ||
Line 21: | 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 35: | 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 50: | 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> | ||
{{{specificProperties}}} }}</includeonly> | {{{specificProperties}}} }}</includeonly> | ||
<noinclude>The '''<nowiki>{{Datatype}}</nowiki>''' template can be used to define | <noinclude>The '''<nowiki>{{Datatype}}</nowiki>''' template can be used to define datatypes. | ||
=== Usage === | === Usage === | ||
Line 63: | 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 =