#ask: syntax – "control" query marker

From Linux Web Expert

#ask: syntax details:
Syntax @control
Description Property "Has description" (as page type) with input value "Allows to dynamically alter a result display without the need to reload a page[[CiteRef::gh:smw:2398" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
Datatype support All datatypes
Component query marker
Software Semantic MediaWiki
Since version Semantic MediaWiki 3.0.0 Released on an unknown date unknown versions of MediaWiki
Keyword deferred query · dynamic query

The @control query marker was introduced in Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki.

Rationale

The @control marker allows to dynamically alter a result display without the need to reload a page (where the parser cache is not in effect) and at the same time provides dynamic up-to-date results for pages with inline queries (via the #ask parser function). At the moment it necessarily uses an option which is called slider, i.e. @control=slider.

Only queries using the @deferred query marker1 support the usage of the @control query marker.

Example

Syntax
{{#ask:
 [[Category:Foo]]
 |?Bar
 |link=none
 |@deferred
 |@control=slider
}}

or

{{#ask:
 [[Category:Foo]]
 |?Bar
 |link=none
 |@deferred
 |@control=slider
}}
Link

<sandbox.semantic-mediawiki.org>: More examples for this query marker

See also

References

  1. ^ gh:smw:2398