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

From TDWG Terms Wiki
Jump to: navigation, search
m (Usage: +notes)
m (Technical documentation: +notes)
Line 17: Line 17:
 
  {{FULLPAGENAME}}
 
  {{FULLPAGENAME}}
 
   ├─ [[Template: Concept translation/doc]] documentation
 
   ├─ [[Template: Concept translation/doc]] documentation
   ├─ [[Template: Concept translation/definition]] translated label of definition (additional translations here)
+
   ├─ [[Template: Concept translation/definition]] translated label of definition ([{{fullurl: {{#titleparts:{{FULLPAGENAME}}|1}}/definition|action=edit}} add translation here])
   ├─ [[Template: Concept translation/example]] translated label of example (additional translations here)
+
   ├─ [[Template: Concept translation/example]] translated label of example ([{{fullurl: {{#titleparts:{{FULLPAGENAME}}|1}}/example|action=edit}} add translation here])
   ├─ [[Template: Concept translation/also]] translated label of also (additional translations here)
+
  ├─ [[Template: Concept translation/notes]] translated label of notes ([{{fullurl: {{#titleparts:{{FULLPAGENAME}}|1}}/notes|action=edit}} add translation here])
   └─ [[Template: Concept translation/label]] translation of label itself (additional translations here)
+
   ├─ [[Template: Concept translation/also]] translated label of also ([{{fullurl: {{#titleparts:{{FULLPAGENAME}}|1}}/also|action=edit}} add translation here])
 
+
   └─ [[Template: Concept translation/label]] translation of label itself ([{{fullurl: {{#titleparts:{{FULLPAGENAME}}|1}}/label|action=edit}} add translation here])
Add supported translation for languages in above listed subtemplates [[template: Concept translation/definition|…/definition]], [[template: Concept translation/example|…/example]], [[Template: Concept translation/also |…/also]] and [[template: Concept translation/label|…/label]]. Translated languages so far are:
+
Add supported translation for languages in above listed subtemplates [[template: Concept translation/definition|…/definition]], [[template: Concept translation/example|…/example]], [[template: Concept translation/notes|…/notes]], [[Template: Concept translation/also |…/also]] and [[template: Concept translation/label|…/label]]. Translated languages so far are:
 
* {{#arraymap:de,en,es,fr|,|§|[[dc:language::§]] ({{ucfirst:{{language|§|§}}}}, {{language|§|en}})|<nowiki></nowiki>
 
* {{#arraymap:de,en,es,fr|,|§|[[dc:language::§]] ({{ucfirst:{{language|§|§}}}}, {{language|§|en}})|<nowiki></nowiki>
 
*}}
 
*}}

Revision as of 08:26, 17 October 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: dc:language
|label       = translated label (mandatory)        → property: skos:prefLabel
|alternative labels= (optional)                    → property: skos:altLabel
|definition  = translated definition (mandatory)   → property: skos:definition
|example     = optional a translated example       → property: skos:example
|notes       = optional                            → property: skos:note
|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 (add translation here)
 ├─ Template: Concept translation/example translated label of example (add translation here)
 ├─ Template: Concept translation/notes translated label of notes (add translation here)
 ├─ Template: Concept translation/also translated label of also (add translation here)
 └─ Template: Concept translation/label translation of label itself (add translation here)

Add supported translation for languages in above listed subtemplates …/definition, …/example, …/notes, …/also and …/label. Translated languages so far are:

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

TODO

Check if it is appropriate to generate hash IDs by #subobject SMW-parser-function like: #skos:prefLabel@en. This shows up then in RDF as rdf:resource="http://…/Special:URIResolver/wikiPageName#skos:prefLabel@en"

See also