Difference between revisions of "Template:Validate and render identifier URI"
From TDWG Terms Wiki
m (fix bug {{#switch) |
m (fix docu syntax, +parameter info message (to be displayed) between URI output and possible warning messages) |
||
Line 42: | Line 42: | ||
|page and uri= [[MediaWiki:Smw import {{{namespace prefix|}}}]] ({{#var: importNamespaceUri}}{{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}}) | |page and uri= [[MediaWiki:Smw import {{{namespace prefix|}}}]] ({{#var: importNamespaceUri}}{{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}}) | ||
|uri={{#var: importNamespaceUri}}{{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}} | |uri={{#var: importNamespaceUri}}{{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}} | ||
− | }}{{Warning about conflict of concept URI with SMW import and Concept or Collection | + | }}<nowiki></nowiki> {{{info message|}}}{{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 49: | Line 49: | ||
|page and uri= {{#replace: {{#var: namespaceURIpageList}} | ) | {{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}}) }} | |page and uri= {{#replace: {{#var: namespaceURIpageList}} | ) | {{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}}) }} | ||
|uri={{#var: importNamespaceUri}}{{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}} | |uri={{#var: importNamespaceUri}}{{#explode: {{{concept page|{{PAGENAME}}}}}|:|1}} | ||
− | }} | + | }}<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={{Warning about conflict of concept URI with SMW import and Concept or Collection | ||
|import namespace URI={{#var: importNamespaceUri}} | |import namespace URI={{#var: importNamespaceUri}} | ||
Line 62: | Line 62: | ||
|concept namespace prefix={{{namespace prefix|}}} | |concept namespace prefix={{{namespace prefix|}}} | ||
}} | }} | ||
− | |#default={{#vardefine: hasConflict | 1 }}Warning: no namespace URI defined yet [[File:Warning_icon.svg|x10px|link=]] | + | |#default={{#vardefine: hasConflict | 1 }}Warning: no namespace URI defined yet [[File:Warning_icon.svg|x10px|link=]]<nowiki></nowiki> {{{info message|}}} |
}} | }} | ||
}}{{ | }}{{ | ||
Line 76: | Line 76: | ||
<div class="no-pre-border no-pre-margin no-pre-padding" style="margin-left:1.5em;"> | <div class="no-pre-border no-pre-margin no-pre-padding" style="margin-left:1.5em;"> | ||
<nowiki>{{</nowiki>Check URI conflict | <nowiki>{{</nowiki>Check URI conflict | ||
− | + | {{!}}'''namespace prefix='''<!-- e.g. biorel --> | |
− | + | {{!}}concept page=<!-- optional (default is <nowiki>{{PAGENAME}}</nowiki>) --> | |
− | + | {{!}}set management category=<!-- optional: value may be any string, e.g. "true", "1" ("0", "no", "false" is false) --> | |
− | + | {{!}}return value=<!-- optional: "page and URI" or "URI" (default return: void or a collapsible warning message box) --> | |
+ | {{!}}info message=<!-- optional: message that appears after URI but before any warnings, e.g. for forms with <nowiki>{{#info: message=text}}</nowiki> --> | ||
<nowiki>}}</nowiki></div> | <nowiki>}}</nowiki></div> | ||
}} | }} | ||
Line 94: | Line 95: | ||
{{!}}set management category=<!-- optional: value may be any string, e.g. "true", "1" ("0", "no", "false" is false) --> | {{!}}set management category=<!-- optional: value may be any string, e.g. "true", "1" ("0", "no", "false" is false) --> | ||
{{!}}return value=<!-- optional: "page and URI" or "URI" (default return: void or a collapsible warning message box) --> | {{!}}return value=<!-- optional: "page and URI" or "URI" (default return: void or a collapsible warning message box) --> | ||
+ | {{!}}info message=<!-- optional: message that appears after URI but before any warnings, e.g. for forms with <nowiki>{{#info: message=text}}</nowiki> --> | ||
<nowiki>}}</nowiki></div> | <nowiki>}}</nowiki></div> | ||
}} | }} |
Revision as of 14:04, 25 October 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