v3.0.0+
Status: | effective |
Progress: | 100% |
Version: | 3.0.0+ |
#ask: syntax details:
| |
Syntax | @deferred |
Description | Marks an inline query as deferred from regular parsing1 |
Datatype support | All datatypes |
Component | query marker |
Software | Semantic MediaWiki |
Since version | Semantic MediaWiki 3.0.0 Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x. |
Keyword | deferred query · dynamic query |
The @deferred
query marker was introduced in Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.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]
- Help page on result formats supporting this query marker
- Help page on query marker
@control
- Help page on embedded query updates
References
- a b Semantic MediaWiki: GitHub pull request gh:smw:2398 (Add support for @deferred mode)