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

From TDWG Terms Wiki
Jump to: navigation, search
m (layout)
m (layout linbreakes)
Line 34: Line 34:
 
   -->{{#ifexist: {{#var: thisFullPageName}}<!--
 
   -->{{#ifexist: {{#var: thisFullPageName}}<!--
 
      
 
      
   then-->|[[{{#var: thisFullPageName}}|{{#var: thisVocabNoPrefix}}]]&#32;<!--  
+
   then-->|[[{{#var: thisFullPageName}}|{{#var: thisVocabNoPrefix}}]]&nbsp;<!--  
 
      
 
      
 
       check Has type (create a warning if mismatch)
 
       check Has type (create a warning if mismatch)
Line 51: Line 51:
 
     -->}}<!--
 
     -->}}<!--
 
      
 
      
   else-->|{{#var: thisVocabNoPrefix}}&#32;{{#formlink:  
+
   else-->|{{#var: thisVocabNoPrefix}}&nbsp;{{#formlink:  
 
     form=Property setting<!--   
 
     form=Property setting<!--   
 
     -->|link text=[[File:Add.png|x13px|link=]]<!--   
 
     -->|link text=[[File:Add.png|x13px|link=]]<!--   
Line 74: Line 74:
 
      
 
      
 
     -->{{#ifexist: {{#var: thisFullPageName}}<!--
 
     -->{{#ifexist: {{#var: thisFullPageName}}<!--
   then-->|[[:{{#var: thisFullPageName}}|{{#var: thisVocabNoPrefix}}]]&#32;{{#formlink:  
+
   then-->|[[:{{#var: thisFullPageName}}|{{#var: thisVocabNoPrefix}}]]&nbsp;{{#formlink:  
 
     form=Concept collection<!--   
 
     form=Concept collection<!--   
 
     -->|link text=[[File:Pencil.png|x16px|link=]]<!--   
 
     -->|link text=[[File:Pencil.png|x16px|link=]]<!--   
Line 84: Line 84:
 
     -->|tooltip=Edit this {{lc:{{ns:category}}}} page<!--   
 
     -->|tooltip=Edit this {{lc:{{ns:category}}}} page<!--   
 
     -->}}<!--
 
     -->}}<!--
   else-->|{{#var: thisVocabNoPrefix}}&#32;{{#formlink:  
+
   else-->|{{#var: thisVocabNoPrefix}}&nbsp;{{#formlink:  
 
     form=Concept collection<!--   
 
     form=Concept collection<!--   
 
     -->|link text=[[File:Add.png|x13px|link=]]<!--   
 
     -->|link text=[[File:Add.png|x13px|link=]]<!--   

Revision as of 11:59, 28 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: