Template:Concept to imported URI

From ZooTerms (Dictionary of Invertebrate Zoology)
Revision as of 10:26, 4 September 2013 by Andreas Plank (Talk | contribs) (Created page with "<includeonly><!-- 2 alternativ approaches a) use the import page directly or alternatively b) use #ask → {{#ask: [[Property:{{{1|property not set}}}]] [[Equivalent URI::+...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This template gets the Equivalent URI of an imported concept from its MediaWiki import page, e.g. MediaWiki:Smw_import_impns. This template can be used only for SMW data types URL and Annotation URI. If you have data type Page you can make SMW to resolve to ther external URI by pointing to the property page where the impoert must be defined there (=has a [[Imported from::impns:conceptTerm]]).

Usage:
  [[my-URI-property::{{Concept to imported URI|dc:creator}}]]
  {{Concept to imported URI|property|default=}} → returns default (i.e. "". Usually it returns the string and *not* "")

Notes:

  • an SMW import page, e.g. MediaWiki:Smw_import_impns must exist

Technical documentation

Uses variables:

  • #var importNameSpace
  • #var importURI

See also