Help:Links in values
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]]
withing the property values added/annotated to datatype "Text"Holds text of arbitrary length with in-text annotations.

- By default it is not possible to do this and the property value will not be added to the property. In must be enabled for the wiki with configuration parameter
$smwgLinksInValues
Sets whether internal links in values for properties of datatype "Text" may be stored within property values. - When accessed the annotated values via Browsing interfaces, e.g. special page "Browse"Shows all properties and their values annotated to a page etc. the annotated links will not render as HTML.
Examples
- Annotating a 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:
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"
- Annotating a data value containing and annotation

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 Main Page of this wiki.
→ Annotation as seen with special page "Browse"
See also
- Help page on in-text annotation
- Help page on configuration parameter
$smwgLinksInValues
Sets whether internal links in values for properties of datatype "Text" may be stored within property values - Demo page on links in values - Describes a pre Semantic MediaWiki 2.5.0 workaround using the parser function
#set
avoiding to enable links in values via configuration.
References
- ^ ↑ Semantic MediaWiki: GitHub pull request gh:smw:2153