Difference between revisions of "Template:Concept translation/doc"

From TDWG Terms Wiki
Jump to: navigation, search
m (link to template: concept)
m (+docu property mapping)
Line 3: Line 3:
 
=== Usage ===
 
=== Usage ===
 
This is the "Concept translation" template and holds the translation of a concept per language (see [[template: concept]]). It has the following parameter:
 
This is the "Concept translation" template and holds the translation of a concept per language (see [[template: concept]]). It has the following parameter:
<pre>
+
<nowiki>{{</nowiki>concept translation
{{Concept translation
+
|language    = ISO 639 code, eg: fr or de etc.   → [[property: xml:lang]]
|language    = ISO 639 code, eg: fr or de etc.
+
|label      = translated label (mandatory)       → [[property: skos:prefLabel]]
|label      = translated label (mandatory)
+
|definition  = translated definition (mandatory) → [[property: skos:definition]]
|definition  = translated definition (mandatory)
+
|example    = optional a translated example     → [[property: skos:example]]
|example    = optional a translated example
+
|is released = is it released? (yes/no)
|is released = is it released? (yes/no)
+
<nowiki>}}</nowiki>
}}
+
 
</pre>
+
 
=== Technical documentation ===
 
=== Technical documentation ===
 
Used subtemplates:
 
Used subtemplates:

Revision as of 12:31, 27 August 2012

This is a documentation subpage for Template:Concept translation (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

Usage

This is the "Concept translation" template and holds the translation of a concept per language (see template: concept). It has the following parameter:

{{concept translation
|language    = ISO 639 code, eg: fr or de etc.    → property: xml:lang
|label       = translated label (mandatory)       → property: skos:prefLabel
|definition  = translated definition (mandatory)  → property: skos:definition
|example     = optional a translated example      → property: skos:example
|is released = is it released? (yes/no)
}}

Technical documentation

Used subtemplates:

Template:Concept translation/doc
 ├─ template: concept translation/doc documentation
 ├─ template: concept translation/definition translated label of definition
 ├─ template: concept translation/example translated label of example
 └─ template: concept translation/label translation of label itself

See also