Difference between revisions of "Template:Validate and render identifier URI"

From TDWG Terms Wiki
Jump to: navigation, search
m (debug warning message)
m
Line 49: Line 49:
 
   |importURI_is_definedURI={{#switch: {{lc: {{{return value|}}}}}
 
   |importURI_is_definedURI={{#switch: {{lc: {{{return value|}}}}}
 
     |page and uri= {{#replace: {{#var: namespaceURIpageList}} | ) | {{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}}) }}
 
     |page and uri= {{#replace: {{#var: namespaceURIpageList}} | ) | {{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}}) }}
     |uri and page= <!-- TODO: check if neccessary → {{#var: importNamespaceUri}} --> {{#sub: {{#var: namespaceURIpageList}} | {{#expr: {{#pos:{{#var: namespaceURIpageList}} | ( }} + 1 }} | -1 }} ({{
+
     |uri and page= <!-- TODO: check if neccessary → {{#var: importNamespaceUri}} --> {{#sub: {{#var: namespaceURIpageList}} | {{#expr: {{#pos:{{#var: namespaceURIpageList}} | ( }} + 1 }} | -1 }}{{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}} ({{
 
       #sub: {{#var: namespaceURIpageList}}  
 
       #sub: {{#var: namespaceURIpageList}}  
 
         | 0 | {{#expr: {{#pos: {{#var: namespaceURIpageList}} | ] }} + {{#len: ]] }} }}  
 
         | 0 | {{#expr: {{#pos: {{#var: namespaceURIpageList}} | ] }} + {{#len: ]] }} }}  

Revision as of 11:31, 16 November 2012

Technical documentation

Dependent on: Template:Warning about conflict of concept URI with SMW import and Concept or Collection

Sets management category: Category: Check semantic properties (suppressed by parameter "set management category=no")

Uses variables: hasConflict, importNamespaceUri, namespaceURIpageList