#ask: annotation query marker

From semantic-mediawiki.org
Jump to: navigation, search
#ask: syntax elements#ask: 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

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