#ask: syntax – "annotation" query marker

From semantic-mediawiki.org
#ask: syntax elements#ask: syntax – "annotation" query marker
Syntax
@annotation
Description Marks an inline query as part of an annotation1
Datatype support All datatypes
Component query marker
Software Semantic MediaWiki
First version supported Semantic MediaWiki 3.0.0 Released on an unknown date and compatible with MW 1.27.0 - 1.30.x.
Keyword self-reference · post process · annotation

The @annotation query marker was introduced in Semantic MediaWiki 3.0.0Released on an unknown date and compatible with MW 1.27.0 - 1.30.x..

Rationale

To clearly identify which inline query using either the #ask or #show parser function is used as input for an annotation process, the @annotation marker is used to distinguish them, e.g. [[Another property::{{#show: {{FULLPAGENAME}} |?Some property |link=none |@annotation }}]] (display and annotate) as opposed to {{#show: {{FULLPAGENAME}} |?Some property |link=none }} (display) which is the default behavior.

Example

Syntax
{{#show:
 {{FULLPAGENAME}} 
 |?AnotherProperty
 |link=none
 |@annotation
}}
[[SomeProperty:: {{#show: {{FULLPAGENAME}} |?AnotherProperty |link=none |@annotation }}]]

See also

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2572