Difference between revisions of "Template:Generate concept formlinks from SMW import page"
From TDWG Terms Wiki
m (warning icon) |
m (warning icon before edit pencil) |
||
Line 34: | Line 34: | ||
-->{{#ifexist: {{#var: thisFullPageName}}<!-- | -->{{#ifexist: {{#var: thisFullPageName}}<!-- | ||
− | then-->|[[{{#var: thisFullPageName}}|{{#var: thisVocabNoPrefix}}]] {{#formlink: | + | then-->|[[{{#var: thisFullPageName}}|{{#var: thisVocabNoPrefix}}]] <!-- |
+ | |||
+ | check Has type (create a warning if mismatch) | ||
+ | -->{{#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:{{#var: thisHasType}}” on page {{#ifeq: {{FULLPAGENAME}}|{{#var: thisFullPageName}}|this page|“{{#var: thisFullPageName}}”}}!|icon=warning}}}}<!-- | ||
+ | |||
+ | -->{{#formlink: | ||
form=Property setting<!-- | form=Property setting<!-- | ||
-->|link text=[[File:Pencil.png|x16px|link=]]<!-- | -->|link text=[[File:Pencil.png|x16px|link=]]<!-- | ||
Line 44: | Line 49: | ||
-->|tooltip=Edit this property page<!-- | -->|tooltip=Edit this property page<!-- | ||
-->}}<!-- | -->}}<!-- | ||
− | |||
− | |||
− | |||
else-->|{{#var: thisVocabNoPrefix}} {{#formlink: | else-->|{{#var: thisVocabNoPrefix}} {{#formlink: |
Revision as of 13:26, 26 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: