#ask: deferred query marker

From semantic-mediawiki.org
Jump to: navigation, search
#ask: syntax elements#ask: deferred query marker
Syntax
@deferred
Description Marks an inline query as deferred from regular parsing1
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 @deferred marker will postpone (defer) the result generation until after a page has been processed and its static HTML content was published by making use of the MediaWiki API (where the parser cache is not in effect) and thus improve the loading time of pages with inline queries (via the #ask or #show parser function) and at the same provide up-to-date results.

Only selected result formats support the @deferred query marker.1 This marker in turn allows for the usage of the @control query marker.

Example

Syntax
{{#show:
 {{FULLPAGENAME}} 
 |link=none
 |@deferred
}}

or

{{#ask:
 [[Category:Foo]]
 |link=none
 |@deferred
}}

See also

References

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