Help:Special property "External formatter URI"

From semantic-mediawiki.org
Jump to: navigation, search
External formatter URI
Declares an external URL with a place holder $1
Further Information
Provided by: Semantic MediaWiki
Added: 2.5.0
Removed: still in use
Alias: has no alias
Optional: no
Visible: yes
Annotable: yes
Declarative: yes
Key:
_PEFU
Setting: not specified
Focus: not specified
In this wiki: Property:External formatter URI

The External formatter URI property is a special property in Semantic MediaWiki with a built-in meaning: it holds the external URL with a place holder $1.1 This place holder $1 will be replaced during the annotation process with the value of the annotation to generate the external resource identifier. The respective value annotation must be of datatype "External identifier"Holds a value that associates it with with a external URI for formatting. It was introduced with Semantic MediaWiki 2.5.0Released on 14 March 2017 and compatible with MW 1.23.0 - 1.29.x..

See the property page External formatter URI to see which pages use this special property on this wiki.

Usage

[[External formatter uri::https://www.example.org/$1]]

Example

If you create a property called "Has Wikidata item ID" of datatype datatype "External identifier"Holds a value that associates it with with a external URI for formatting and specify an external formatter URI using this special property ([[External formatter uri::https://www.wikidata.org/entity/$1]]) when a value annotated to a page with e.g. [[Has Wikidata item ID::Q42406391]] will display the value "Q42406391" automatically linked to the respective Wikidata site entry like Q42406391.

References

  1. ^  Semantic MediaWiki: GitHub issue gh:smw:1708