Difference between revisions of "Template:Generate concept formlinks from SMW import page"
From TDWG Terms Wiki
m (fix skip …) |
m (links with icons) |
||
Line 17: | Line 17: | ||
extract import definition, skip […] and [[…]] | extract import definition, skip […] and [[…]] | ||
− | -- | + | -->{{#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}}]] {{#formlink: |
form=Property setting<!-- | form=Property setting<!-- | ||
− | -->|link text= | + | -->|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=]] {{#formlink: | + | -->[[File:Folder-silk.png|link=]] [[{{ns:category}}:{{#explode: §|!|0}}|{{#explode: §|!|0}}]] {{#formlink: |
form=Concept collection<!-- | form=Concept collection<!-- | ||
− | -->|link text= | + | -->|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] [ ] Template documentation
This documentation is transcluded from Template:Generate concept formlinks from SMW import page/doc. (edit | history)
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: