Links in values

From Linux Web Expert

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.

Important notes

Annotation examples

Data value containing an internal and external link

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

[[Has text::This text contains an internal link to the Main Page 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

This is only possible starting with Semantic MediaWiki 2.5.0Released on an unknown date unknown versions of MediaWiki.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 [[Has page::Main PageProperty "Has text" (as page type) with input value "This text contains an annotated internal link to the [[Has page::Main Page" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. of this wiki.]]

Annotation as seen with special page "Browse"

Data value containing a hidden annotation

This is only possible starting with Semantic MediaWiki 3.1.0Released on an unknown date unknown versions of MediaWiki.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 [[Has page::Main PageProperty "Has text" (as page type) with input value "This text contains an annotated internal link to the [[Has page::Main Page" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. of this wiki.|]]

Annotation as seen with special page "Browse"

See also

#scite could not render a citation text for reference "gh:smw:3674" because type "pullrequest" was not assigned to a template.

References

  1. ^ gh:smw:2153 
  2. ^ gh:smw:3674