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

From TDWG Terms Wiki
Jump to: navigation, search
m (+Technical documentation)
m
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Documentation/subpage}}
 
{{Documentation/subpage}}
  
=== 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.     <span style="color:gray">&lt;!--  [[property: dc:language]] --&gt;</span>
|language    = ISO 639 code, eg: fr or de etc.
+
|label      = translated label (mandatory)       <span style="color:gray">&lt;!--  [[property: skos:prefLabel]] --&gt;</span>
|label      = translated label (mandatory)
+
|alternative labels= (optional)                    <span style="color:gray">&lt;!--  [[property: skos:altLabel]] --&gt;</span>
|definition  = translated definition (mandatory)
+
|definition  = translated definition (mandatory)   <span style="color:gray">&lt;!--  [[property: skos:definition]] --&gt;</span>
|example    = optional a translated example
+
|example    = optional a translated example       <span style="color:gray">&lt;!--  [[property: skos:example]] --&gt;</span>
|is released = is it released? (yes/no)
+
|notes      = optional                            <span style="color:gray">&lt;!--  [[property: skos:note]] --&gt;</span>
}}
+
|is released = is it released? (yes/no)
</pre>
+
<span style="color:gray">&lt;!-- for external reference --&gt;</span>
=== Technical documentation ===
+
|issued      = date of issue                      <span style="color:gray">&lt;!-- ?add to [[property: dcterms:issued]] values en:issue-date, de:issue-date etc. ?? --></span>
Used subtemplates:
+
|modified    = date of modification                <span style="color:gray">&lt;!-- ?add to [[property: dcterms:modified]] values en:modified-date, de:modified-date etc. ?? --></span>
 +
|uri        = external uri                        <span style="color:gray">&lt;!-- ?add to [[property: rdfs:isDefinedBy]] values en:uri, de:uri etc. ?? --></span>
 +
|status      = status of this translation          <span style="color:gray">&lt;!-- ?add to [[property: vs:term status]] values only english ??--></span>
 +
<nowiki>}}</nowiki>
 +
 
 +
== Technical documentation ==
 +
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 ([{{fullurl: {{#titleparts:{{FULLPAGENAME}}|1}}/definition|action=edit}} add translation in template code])
   ├─ [[template: concept translation/example]] translated label of example
+
   ├─ [[Template: Concept translation/example]] translated label of example ([{{fullurl: {{#titleparts:{{FULLPAGENAME}}|1}}/example|action=edit}} add translation in template code])
   └─ [[template: concept translation/label]] translation of label itself
+
   ├─ [[Template: Concept translation/notes]] translated label of notes ([{{fullurl: {{#titleparts:{{FULLPAGENAME}}|1}}/notes|action=edit}} add translation in template code])
 +
  ├─ [[Template: Concept translation/also]] translated label of also ([{{fullurl: {{#titleparts:{{FULLPAGENAME}}|1}}/also|action=edit}} add translation in template code])
 +
  └─ [[Template: Concept translation/label]] translation of label itself ([{{fullurl: {{#titleparts:{{FULLPAGENAME}}|1}}/label|action=edit}} add translation in template code])
 +
  Some parameters were added for external references
 +
  ·─ [[Template: Concept translation/issued]] translated label of issued ([{{fullurl: {{#titleparts:{{FULLPAGENAME}}|1}}/issued|action=edit}} add translation in template code])
 +
  ├─ [[Template: Concept translation/modified]] translated label of modified ([{{fullurl: {{#titleparts:{{FULLPAGENAME}}|1}}/modified|action=edit}} add translation in template code])
 +
  ├─ [[Template: Concept translation/uri]] translation of label of uri ([{{fullurl: {{#titleparts:{{FULLPAGENAME}}|1}}/uri|action=edit}} add translation in template code])
 +
  ├─ [[Template: Concept translation/status]] translation of label of status ([{{fullurl: {{#titleparts:{{FULLPAGENAME}}|1}}/status|action=edit}} add translation in template code])
 +
  ·…
 +
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]], [[Template: Concept translation/issued |…/issued]], [[Template: Concept translation/modified |…/modified]], [[Template: Concept translation/uri |…/uri]] , [[Template: Concept translation/status |…/status]] and [[template: Concept translation/label|…/label]]. Translated languages so far are:
 +
* {{#arraymap:de,en,es,fr|,|§|[[dc:language::§]] ({{ucfirst:{{language|§|§}}}}, {{language|§|en}})|<nowiki></nowiki>
 +
*}}
 +
=== Forms ===
 +
* [[Form:Concept]]
 +
=== TODO ===
  
=== See also ===
+
Check if it is appropriate to generate hash IDs by #subobject {{abbr|SMW}}-parser-function like: ''#skos:prefLabel@en''. This shows up then in RDF as <code><nowiki>rdf:resource="http://…/Special:URIResolver/wikiPageName#skos:prefLabel@en"</nowiki></code>
  
 +
== See also ==
 +
* [[template: concept]]
 
<includeonly>
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Templates used for ontologies]]
+
[[{{ns:category}}:Helper tool for ontologies]]
 
</includeonly>
 
</includeonly>

Latest revision as of 11:56, 14 September 2016

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)
<!-- 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 in template code)
 ├─ Template: Concept translation/example translated label of example (add translation in template code)
 ├─ Template: Concept translation/notes translated label of notes (add translation in template code)
 ├─ Template: Concept translation/also translated label of also (add translation in template code)
 └─ Template: Concept translation/label translation of label itself (add translation in template code)
 Some parameters were added for external references
 ·─ Template: Concept translation/issued translated label of issued (add translation in template code)
 ├─ Template: Concept translation/modified translated label of modified (add translation in template code)
 ├─ Template: Concept translation/uri translation of label of uri (add translation in template code)
 ├─ Template: Concept translation/status translation of label of status (add translation in template code)
 ·…

Add supported translation for languages in above listed subtemplates …/definition, …/example, …/notes, …/also, …/issued, …/modified, …/uri , …/status 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"

See also