Difference between revisions of "Template:Concept translation"

From Multilingual Bookbinding Dictionary
Jump to navigation Jump to search
Line 6: Line 6:
 
{{#ifeq: {{{status}}}|alternate|{{#set: skos:altLabel={{{label|}}}@{{{language|?language-code?}}} }}|{{#set: skos:prefLabel={{{label|}}}@{{{language|?language-code?}}} }}}}</includeonly>
 
{{#ifeq: {{{status}}}|alternate|{{#set: skos:altLabel={{{label|}}}@{{{language|?language-code?}}} }}|{{#set: skos:prefLabel={{{label|}}}@{{{language|?language-code?}}} }}}}</includeonly>
 
{{#set:
 
{{#set:
  |Has referenced translation={{#ifeq: {{{status}}}|alternate|{{#set: skos:altLabel={{{label|}}}@{{{language|?language-code?}}} }}|{{#set: skos:prefLabel={{{label|}}}@{{{language|?language-code?}}} }}}}[[Citation reference::{{source}}]]
+
  |Has referenced translation={{#if skos:prefLabel|skos:prefLabel[[Citation reference::{{source}}]]|}}
 
  |template=SetParserForValueInclusion
 
  |template=SetParserForValueInclusion
 
}}
 
}}
<!--
 
-->{{#ifeq:|en|[[Category:Terms with English translations]]}}<!--
 
-->{{#ifeq:|it|[[Category:Terms with Italian translations]]}}<!--
 
-->{{#ifeq:|fr|[[Category:Terms with French translations]]}}<!--
 
-->{{#ifeq:|de|[[Category:Terms with German translations]]}}<!--
 
-->{{#ifeq:|sv|[[Category:Terms with Swedish translations]]}}<!--
 
-->{{#ifeq:|da|[[Category:Terms with Danish translations]]}}<!--
 
-->{{#ifeq:|ru|[[Category:Terms with Russian translations]]}}<!--
 
-->{{#ifeq:|es|[[Category:Terms with Spanish translations]]}}<!--
 
-->{{#ifeq:|ja|[[Category:Terms with Japanese translations]]}}<!--
 
-->{{#ifeq:|nl|[[Category:Terms with Dutch translations]]}}<!--
 
-->{{#ifeq:|no|[[Category:Terms with Norwegian translations]]}}<!--
 
-->{{#ifeq:|fi|[[Category:Terms with Finnish translations]]}}<!--
 
-->{{#ifeq:|zh|[[Category:Terms with Chinese translations]]}}<!--
 
-->{{#ifeq:|ko|[[Category:Terms with Korean translations]]}}<!--
 
-->{{#ifeq:|mul|[[Category:Translingual translations]]}}<!--
 
-->{{#ifeq:|und|[[Category:Undefined translations]]}}<!--
 
 
-->{{redlink category|||template=t+}}<!--
 
 
-->
 

Revision as of 15:57, 29 August 2020

For the "Skos:prefLabel" annotation, the parser was unable to determine a language code (i.e. "foo@en").