Difference between revisions of "Template:Validate and render identifier URI"
From TDWG Terms Wiki
m (+TODO) |
m (debug warning message) |
||
Line 43: | Line 43: | ||
|uri and page= {{#var: importNamespaceUri}} {{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}} ([[MediaWiki:Smw import {{{namespace prefix|}}}]]) | |uri and page= {{#var: importNamespaceUri}} {{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}} ([[MediaWiki:Smw import {{{namespace prefix|}}}]]) | ||
|uri={{#var: importNamespaceUri}}{{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}} | |uri={{#var: importNamespaceUri}}{{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}} | ||
− | }}<nowiki></nowiki> {{{info message|}}}{{Warning about conflict of concept URI with SMW import and Concept or Collection | + | }}<nowiki></nowiki> {{{info message|}}}<div style="display:none;" class="debug-template-Validate-and-render-identifier-URI">importURI: {{lc: {{{return value|}}}}}</div>{{Warning about conflict of concept URI with SMW import and Concept or Collection |
|import namespace URI={{#var: importNamespaceUri}} | |import namespace URI={{#var: importNamespaceUri}} | ||
|concept namespace prefix={{{namespace prefix|}}} | |concept namespace prefix={{{namespace prefix|}}} | ||
Line 56: | Line 56: | ||
|uri={{#var: importNamespaceUri}}{{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}} | |uri={{#var: importNamespaceUri}}{{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}} | ||
}}<nowiki></nowiki> {{{info message|}}} | }}<nowiki></nowiki> {{{info message|}}} | ||
− | |importURI_conflicts_with_definedURI={{Warning about conflict of concept URI with SMW import and Concept or Collection | + | |importURI_conflicts_with_definedURI=<div style="display:none;" class="debug-template-Validate-and-render-identifier-URI">importURI_conflicts_with_definedURI: {{lc: {{{return value|}}}}}</div>{{Warning about conflict of concept URI with SMW import and Concept or Collection |
|import namespace URI={{#var: importNamespaceUri}} | |import namespace URI={{#var: importNamespaceUri}} | ||
|concept namespace prefix={{{namespace prefix|}}} | |concept namespace prefix={{{namespace prefix|}}} | ||
Line 68: | Line 68: | ||
|uri=<!-- URI from e.g. "[[:Audubon Core|Audubon Core]] (http://rs.tdwg.org/ac/terms/)" | |uri=<!-- URI from e.g. "[[:Audubon Core|Audubon Core]] (http://rs.tdwg.org/ac/terms/)" | ||
-->{{#replace: {{#sub: {{#var: namespaceURIpageList}} | {{#expr: {{#pos:{{#var: namespaceURIpageList}} | ( }} + 1 }} | -1 }} | ) | {{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}}) }} | -->{{#replace: {{#sub: {{#var: namespaceURIpageList}} | {{#expr: {{#pos:{{#var: namespaceURIpageList}} | ( }} + 1 }} | -1 }} | ) | {{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}}) }} | ||
− | }}{{Warning about conflict of concept URI with SMW import and Concept or Collection | + | }}<div style="display:none;" class="debug-template-Validate-and-render-identifier-URI">definedURI: {{lc: {{{return value|}}}}}</div>{{Warning about conflict of concept URI with SMW import and Concept or Collection |
|import namespace URI={{#var: importNamespaceUri}} | |import namespace URI={{#var: importNamespaceUri}} | ||
|concept namespace prefix={{{namespace prefix|}}} | |concept namespace prefix={{{namespace prefix|}}} |
Revision as of 13:13, 15 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