Difference between revisions of "Template:Concept translation/doc"
From TDWG Terms Wiki
m (→Technical documentation: +modified, issued, uri) |
m (→Usage: +status modified issued uri) |
||
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. | + | |language = ISO 639 code, eg: fr or de etc. <span style="color:gray"><!-- [[property: dc:language]] --></span> |
− | |label = translated label (mandatory) | + | |label = translated label (mandatory) <span style="color:gray"><!-- [[property: skos:prefLabel]] --></span> |
− | |alternative labels= (optional) | + | |alternative labels= (optional) <span style="color:gray"><!-- [[property: skos:altLabel]] --></span> |
− | |definition = translated definition (mandatory) | + | |definition = translated definition (mandatory) <span style="color:gray"><!-- [[property: skos:definition]] --></span> |
− | |example = optional a translated example | + | |example = optional a translated example <span style="color:gray"><!-- [[property: skos:example]] --></span> |
− | |notes = optional | + | |notes = optional <span style="color:gray"><!-- [[property: skos:note]] --></span> |
|is released = is it released? (yes/no) | |is released = is it released? (yes/no) | ||
+ | <span style="color:gray"><!-- for external reference --></span> | ||
+ | |issued = date of issue <span style="color:gray"><!-- ?add to [[property: dcterms:issued]] values en:issue-date, de:issue-date etc. ?? --></span> | ||
+ | |modified = date of modification <span style="color:gray"><!-- ?add to [[property: dcterms:modified]] values en:modified-date, de:modified-date etc. ?? --></span> | ||
+ | |uri = external uri <span style="color:gray"><!-- ?add to [[property: rdfs:isDefinedBy]] values en:uri, de:uri etc. ?? --></span> | ||
+ | |status = status of this translation <span style="color:gray"><!-- ?add to [[property: vs:term status]] values only english ??--></span> | ||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
Revision as of 11:56, 28 June 2013
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) <!-- for external reference --> |issued = date of issue <!-- ?add to property: dcterms:issued values en:issue-date, de:issue-date etc. ?? --> |modified = date of modification <!-- ?add to property: dcterms:modified values en:modified-date, de:modified-date etc. ?? --> |uri = external uri <!-- ?add to property: rdfs:isDefinedBy values en:uri, de:uri etc. ?? --> |status = status of this translation <!-- ?add to property: vs:term status values only english ??--> }}
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) Some parameters were added for external references ·─ Template: Concept translation/issued translated label of issued (add translation here) ├─ Template: Concept translation/modified translated label of modified (add translation here) ├─ Template: Concept translation/uri translation of label of uri (add translation here) ·…
Add supported translation for languages in above listed subtemplates …/definition, …/example, …/notes, …/also, …/issued, …/modified , …/uri and …/label. Translated languages so far are:
- de (Deutsch, German)
- en (English, English)
- es (Español, Spanish)
- fr (Français, French)
Forms
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"