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

From TDWG Terms Wiki
Jump to: navigation, search
m (+docu property mapping)
m (list supported languages)
Line 4: Line 4:
 
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:
 
  <nowiki>{{</nowiki>concept translation
 
  <nowiki>{{</nowiki>concept translation
  |language    = ISO 639 code, eg: fr or de etc.    → [[property: xml:lang]]
+
  |language    = ISO 639 code, eg: fr or de etc.    → [[property: xml:att_lang]]
 
  |label      = translated label (mandatory)      → [[property: skos:prefLabel]]
 
  |label      = translated label (mandatory)      → [[property: skos:prefLabel]]
 
  |definition  = translated definition (mandatory)  → [[property: skos:definition]]
 
  |definition  = translated definition (mandatory)  → [[property: skos:definition]]
Line 12: Line 12:
  
 
=== Technical documentation ===
 
=== Technical documentation ===
Used subtemplates:
+
Used subpages/subtemplates:
 
  {{FULLPAGENAME}}
 
  {{FULLPAGENAME}}
 
   ├─ [[template: concept translation/doc]] documentation
 
   ├─ [[template: concept translation/doc]] documentation
   ├─ [[template: concept translation/definition]] translated label of definition
+
   ├─ [[template: concept translation/definition]] translated label of definition (additional translations here)
   ├─ [[template: concept translation/example]] translated label of example
+
   ├─ [[template: concept translation/example]] translated label of example (additional translations here)
   └─ [[template: concept translation/label]] translation of label itself
+
   └─ [[template: concept translation/label]] translation of label itself (additional translations here)
 +
 
 +
Add supported languages in above listed subtemplates [[template: concept translation/definition|…/definition]], [[template: concept translation/example|…/example]] and [[template: concept translation/label|…/label]]. Supported languages so far are:
 +
* {{#arraymap: de, en, es, fr|,|§|[[xml:att_lang::§| ]]§ ({{ucfirst:{{language|§|§}}}}, {{language|§|en}})|<nowiki></nowiki>
 +
*}}
  
 
=== See also ===
 
=== See also ===

Revision as of 14:58, 5 September 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:att_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 subpages/subtemplates:

Template:Concept translation/doc
 ├─ template: concept translation/doc documentation
 ├─ template: concept translation/definition translated label of definition (additional translations here)
 ├─ template: concept translation/example translated label of example (additional translations here)
 └─ template: concept translation/label translation of label itself (additional translations here)

Add supported languages in above listed subtemplates …/definition, …/example and …/label. Supported languages so far are:

  • de (Deutsch, German)
  • en (English, English)
  • es (Español, Spanish)
  • fr (Français, French)

See also