Template:Datatype: Difference between revisions

From Mediawiki1
Jump to navigationJump to search
(<!-- no message -->)
(correct syntax in error message)
Line 9: Line 9:
<tr>
<tr>
  <td width="150px">rdfs:label@en</td>
  <td width="150px">rdfs:label@en</td>
  <td width="400px"><span style="color:red">please define labels</span>, at least for English (en): <nowiki>{{labels|
  <td width="400px"><span style="color:red">please define labels</span>, at least for English (en): <nowiki>labels={{label|en|...}}</nowiki></td>
{{label|en|English label}}
}}</nowiki></td>
</tr>
</tr>
}}
}}

Revision as of 12:07, 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        =