#ask: syntax elements

From semantic-mediawiki.org

Table of Contents

This page provides an overview of the syntax elements available for the #ask/#show parser function.

This table is not yet complete. See also this help page.

Query Condition

Help pageSyntax elementDescription
#ask: syntax – "depth" hierarchy restrictor
Restricts the hierarchy depth of a query1
#ask: syntax – "in" search operator
Convenience operator for proximity and wide proximity searches2
#ask: syntax – "phrase" search operator
Convenience operator for wide proximity searches with terms appearing in the same order3

Query Printout

Help pageSyntax elementDescription
#ask: syntax – "align" printout formatter
Defines an alignment for the content of a printout column
#ask: syntax – "hl" printout highlighter
Allows to highlight search tokens within a result set4
#ask: syntax – "lang" printout language filter
Allows to filter a language specific printout5
#ask: syntax – "order" printout sorter
Defines the sorting order for printout statements (dot chain syntax)6
#ask: syntax – "raw" printout formatter
Allows embedded annotation markup within text to retain its raw format789
#ask: syntax – "width" printout formatter
Defines a width for a printout column10

Query Marker

Help pageSyntax elementDescription
#ask: syntax – "annotation" query marker
Marks an inline query as part of an annotation11
#ask: syntax – "control" query marker
Allows to dynamically alter a result display without the need to reload a page12
#ask: syntax – "deferred" query marker
Marks an inline query as deferred from regular parsing12

See also


  1. ^  Semantic MediaWiki: GitHub issue gh:smw:2662
  2. ^  Semantic MediaWiki: GitHub issue gh:smw:2873
  3. ^  Semantic MediaWiki: GitHub issue gh:smw:3125
  4. ^  Semantic MediaWiki: GitHub pull request gh:smw:2253
  5. ^  Semantic MediaWiki: GitHub pull request gh:smw:2037
  6. ^  Semantic MediaWiki: GitHub pull request gh:smw:2073
  7. ^  Semantic MediaWiki: GitHub pull request gh:smw:2325
  8. ^  Semantic Cite: GitHub issue gh:sci:40
  9. ^  Semantic MediaWiki: GitHub pull request gh:smw:2844
  10. ^  Semantic MediaWiki: GitHub pull request gh:smw:2677
  11. ^  Semantic MediaWiki: GitHub pull request gh:smw:2572
  12. a b  Semantic MediaWiki: GitHub pull request gh:smw:2398 (Add support for @deferred mode)