v3.0.0+
Status: | effective |
Progress: | 100% |
Version: | 3.0.0+ |
#ask:
syntax – "deferred" query marker
From Linux Web Expert
#ask: syntax details:
| |
Syntax | @deferred |
Description | Property "Has description" (as page type) with input value "Marks an inline query as deferred from regular parsing[[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 @deferred
query marker was introduced in Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki.
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 }}
- Link
<sandbox.semantic-mediawiki.org>: More examples for this query marker
See also
- Help page on result formats supporting this query marker
- Help page on query marker
@control
- Help page on embedded query updates
References
- ^ gh:smw:2398