Property link parser function
De Semantic MediaWiki - Sandbox
This page demonstrates the #property_link parser function, added in Semantic MediaWiki 7.2.0. It links to a property page the way the [[Foo::@@@]] annotation syntax does, without using the annotation syntax. Documentation: Help:Property links.
Property link
The link carries the property's tooltip; hover over it.
- Syntax
{{#property_link:Has date}}
- Result
Custom label
- Syntax
{{#property_link:Has date|Date}}
- Result
Tooltip without a link
- Syntax
{{#property_link:Has date|#}}
- Result
Has date
Same output as the annotation syntax
| Annotation syntax | Parser function |
|---|---|
[[Has number::@@@]] |
{{#property_link:Has number}}
|
| Has number | Has number |
Property without a page
A property that has no page yet renders as a red link to its property page.
- Syntax
{{#property_link:Has nonexistent property}}
- Result
A label does not annotate
Annotation syntax inside the label is shown as its text and stores nothing.
- Syntax
{{#property_link:Has date|[[Has text::Not an annotation]]}}
- Result
Verification
Special:Browse for this page lists no value for "Has text" and no other property values from the examples: property links do not annotate, and neither does a label carrying annotation syntax.