#ask: control query marker

From semantic-mediawiki.org
Jump to: navigation, search
#ask: syntax elements#ask: control query marker
Syntax
@control=slider
Description Allows to dynamically alter a result display without the need to reload a page1
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 deferred query · dynamic query

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). It necessarily uses an option which is called 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

See also

References

  1. a b  Semantic MediaWiki: GitHub pull request gh:smw:2398 (Add support for @deferred mode)