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

From TDWG Terms Wiki
Jump to: navigation, search
m (fix skip )
m (links with icons)
Line 17: Line 17:
  
 
   extract import definition, skip […] and [[…]]
 
   extract import definition, skip […] and [[…]]
  --><span style="display:none;">{{#pos:§|[}}</span>{{#if: {{#pos:§|[}} <!-- empty, if [ is not found
+
  -->{{#if: {{#pos:§|[}} <!-- empty, if [ is not found
 
   then-->|<!-- [ was found → nothing
 
   then-->|<!-- [ was found → nothing
 
   else-->|<!--
 
   else-->|<!--
Line 24: Line 24:
  
 
     Property pages
 
     Property pages
     -->{{#formlink:  
+
     -->[[{{ns:property}}:{{#explode: §|!|0}}|{{#explode: §|!|0}}]]&#32;{{#formlink:  
 
     form=Property setting<!--   
 
     form=Property setting<!--   
     -->|link text={{#explode: §|!|0}}<!--   
+
     -->|link text=[[File:Pencil.png|x16px|link=]]<!--   
 
     -->|query string=<!--  
 
     -->|query string=<!--  
 
       -->Property setting[imported from]={{{ns prefix|}}}:{{#explode: §|!|0}}<!--  
 
       -->Property setting[imported from]={{{ns prefix|}}}:{{#explode: §|!|0}}<!--  
Line 36: Line 36:
 
     Category pages
 
     Category pages
 
   -->| Category | Class | #default = <!-- Category pages
 
   -->| Category | Class | #default = <!-- Category pages
     -->[[File:Folder-silk.png|link=]]&nbsp;{{#formlink:  
+
     -->[[File:Folder-silk.png|link=]]&nbsp;[[{{ns:category}}:{{#explode: §|!|0}}|{{#explode: §|!|0}}]]&#32;{{#formlink:  
 
     form=Concept collection<!--   
 
     form=Concept collection<!--   
     -->|link text={{#explode: §|!|0}}<!--   
+
     -->|link text=[[File:Pencil.png|x16px|link=]]<!--   
 
     -->|query string=<!--  
 
     -->|query string=<!--  
 
         -->Concept collection[imported from]={{{ns prefix|}}}:{{#explode: §|!|0}}<!--   
 
         -->Concept collection[imported from]={{{ns prefix|}}}:{{#explode: §|!|0}}<!--   

Revision as of 15:08, 24 September 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: