Difference between revisions of "Template:Concept translation"

From Meta-Omics Data of Collection Objects
Jump to: navigation, search
m (Import basic concepts, templates, terms, forms from http://terms.tdwg.org)
 
(Import basic concepts, templates, terms, forms from http://terms.tdwg.org)
Line 1: Line 1:
<includeonly><!--
+
#REDIRECT [[Template:Concept translation]]
-->{{#set: skos:prefLabel={{{language|?language-code?}}}:{{{label|missing label}}}}}<!--
+
-->{{#if: {{{definition|}}}<!-- no empty definition -->| {{#set: skos:definition={{{language|?language-code?}}}:{{{definition|}}}}} }}<!--
+
-->{{#if: {{{example|}}} | {{#set:skos:example={{{language|?language-code?}}}:{{{example}}}}} }}<!--
+
-->{{#if: {{{notes|}}} | {{#set:skos:note={{{language|?language-code?}}}:{{{notes}}}}} }}<!--
+
-->{{#if: {{{language|}}} | {{#set:dc:language={{{language|??}}}}} }}<!--
+
-->{{#if: {{{alternative labels|}}} | {{#arraymap: {{{alternative labels|}}} |;|§|{{#set: skos:altLabel={{{language|?language-code?}}}:§}}|}} }}<!--
+
 
+
  set a section only once
+
-->{{#if:{{#varexists: hasTranslations}}||
+
=== Translations ===
+
<nowiki></nowiki>}}<!--
+
 
+
  --><div style="font-weight:bold" lang="{{{language|}}}" >{{ucfirst:{{language| {{{language|}}} | {{{language|}}} }} }} (<span lang="en">{{ucfirst:{{language| {{{language|}}} | en}} }}</span>)</div><!--
+
 
+
--><table style="max-width:800px;"><!--
+
  --><tr><td lang="{{{language|}}}" style="vertical-align:top;padding-left:2em;"><!--
+
 
+
  <b>Label:</b> Definition
+
 
+
-->'''<span class="hover-explain"  title="skos:prefLabel = {{Concept translation/label|{{{language|en}}} }}, followed by skos:definition"><!--
+
  -->{{{label|''label is missing''}}}<!--
+
  --></span>{{
+
  #if: {{{alternative labels|}}}<!--
+
  then --> | &#32;(<span class="hover-explain" title="skos:altLabel" >{{Concept translation/also|{{{language|en}}}}} {{#arraymap: {{{alternative labels|}}} |;|§|[[skos:altLabel::§]]|,&#32;}}</span>)<!--
+
  end if altlabel: -->}}''': {{{definition|<span style="font-color:red">(“Definition” is missing, please add it.)<span>}}}<!--
+
--></td></tr><!--
+
 
+
  example
+
 
+
-->{{#if: {{{example|}}}<!--
+
then-->|<tr><td lang="{{{language|}}}" style="vertical-align:top;padding-left:2em;">''<span class="hover-explain" title="skos:example" >{{Concept translation/example|{{{language|en}}} }}</span>'': {{{example}}}</td></tr><!--
+
-->}}<!-- if end
+
 
+
  notes
+
 
+
-->{{#if: {{{notes|}}}<!--
+
then-->|<tr><td lang="{{{language|}}}" style="vertical-align:top;padding-left:2em;">''<span class="hover-explain" title="skos:note" >{{Concept translation/notes|{{{language|en}}} }}</span>'': {{{notes}}}</td></tr><!--
+
-->}}<!-- if end
+
-->{{#if: {{{is released|}}}|<tr><td lang="en">''Released:'' {{{is released}}}</td></tr>}}<!--
+
 
+
--></table><!--
+
 
+
-->{{#vardefine: hasTranslations|1}}<!--
+
--></includeonly><noinclude>
+
{{Documentation}}
+
</noinclude>
+

Revision as of 01:59, 8 September 2016