Links in values

From semantic-mediawiki.org
(Redirected from Links in values)

This help page on links in values describes the possibility to add links using wikitext like e.g. [[...]] (internal links) or [...] (external links) or even an annotation [[Property::Property value]] within the property values added/annotated to datatype "Text"Holds text of arbitrary length with in-text annotations.

Table of Contents

Important notes[edit]

Annotation examples[edit]

Data value containing an internal and external link[edit]

Syntax

[[Has text::This text contains an internal link to the [[Main Page]] of this wiki and an external link to the [https://sandbox.semantic-mediawiki.org/wiki/Main_Page Main Page] of another wiki.]]

Result

This text contains an internal link to the Semantic MediaWiki of this wiki and an external link to the Main Page of another wiki.

Annotation as seen with special page "Browse"

Data value containing an annotation[edit]

This is only possible starting with Semantic MediaWiki 2.5.0Released on 14 March 2017 and compatible with MW 1.23.0 - 1.29.x..1
Syntax

[[Has text::This text contains an annotated internal link to the [[Has page::Main Page]] of this wiki.]]

Result

This text contains an annotated internal link to the Semantic MediaWiki of this wiki.

Annotation as seen with special page "Browse"

Data value containing a hidden annotation[edit]

This is only possible starting with Semantic MediaWiki 3.1.0Released on 23 September 2019 and compatible with MW 1.31.0 - 1.33.x..2
Syntax

[[Has text::This text contains an annotated internal link to the [[Has page::Main Page]] of this wiki.|]]

Result

This text contains an annotated internal link to the Semantic MediaWiki of this wiki.|

Annotation as seen with special page "Browse"

See also[edit]

References

  1. ^  |  Semantic MediaWiki: GitHub pull request gh:smw:2153
  2. ^  Semantic MediaWiki: GitHub pull request gh:smw:3674