#ask: syntax – "deferred" query marker

From semantic-mediawiki.org
< #ask: syntax elements(Redirected from Deferred)
#ask: syntax elements#ask: syntax – "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 and compatible with MW 1.27.0 - 1.32.x.
Keyword deferred query · dynamic query

The @deferred query marker was introduced in Semantic MediaWiki 3.0.0Released on and compatible with MW 1.27.0 - 1.32.x..

Rationale[edit]

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[edit]

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

or

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

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

See also[edit]

References

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