Difference between revisions of "Template:Generate concept formlinks from SMW import page"

From TDWG Terms Wiki
Jump to: navigation, search
m (#lc: → lc:)
m (typo)
Line 39: Line 39:
 
     -->{{#ifeq: {{#var: thisHasType}}|{{#var: thisHasTypeImport}}|<!-- then-->|<!-- else-->{{#info: message=Type:''{{#var: thisHasTypeImport}}'' on import page [[MediaWiki:Smw_import_{{{ns prefix|}}}]] does not match Has type:''{{#if: {{#var: thisHasType}}|{{#var: thisHasType}}|<span class="error">missing value</span>}}'' on page {{#ifeq: {{FULLPAGENAME}}|{{#var: thisFullPageName}}|this page|[[{{#var: thisFullPageName}}]]}}!{{#switch: {{lc:{{#var: thisHasTypeImport}}}}<!--
 
     -->{{#ifeq: {{#var: thisHasType}}|{{#var: thisHasTypeImport}}|<!-- then-->|<!-- else-->{{#info: message=Type:''{{#var: thisHasTypeImport}}'' on import page [[MediaWiki:Smw_import_{{{ns prefix|}}}]] does not match Has type:''{{#if: {{#var: thisHasType}}|{{#var: thisHasType}}|<span class="error">missing value</span>}}'' on page {{#ifeq: {{FULLPAGENAME}}|{{#var: thisFullPageName}}|this page|[[{{#var: thisFullPageName}}]]}}!{{#switch: {{lc:{{#var: thisHasTypeImport}}}}<!--
 
-->| uri = &#32;You probably mean “Type:URL”.<!--
 
-->| uri = &#32;You probably mean “Type:URL”.<!--
-->| page = &#32;“Type:Page” is most suited for reused concepts, to be resolved correctly point always to “Property:myns:myimportedconcept”.<!--
+
-->| page = &#32;“Type:Page” is most suited for reused concepts. To be resolved correctly point always to “Property:myns:myimportedconcept”.<!--
 
-->}}<!-- end switch
 
-->}}<!-- end switch
 
-->|icon=warning}}}}<!--  
 
-->|icon=warning}}}}<!--  

Revision as of 10:23, 12 November 2012

[edit] [purge] Template-info.svg Template documentation

Template “Generate concept formlinks from SMW import page” generates a list of formlinks based on a “MediaWiki:Smw_import-ns-prefix”-page

Usage

This template has the following parameter:

{{Generate concept formlinks from SMW import page
|ns prefix=    e.g. "dwc" or "rdf" etc.
|title=        optional title of the target page
|query string= form_name[field]=value&form_name[field2]=value3 “form_name” must be given, it will be replaced by an appropriate form
}}

Technical documentation

Dependencies: