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

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

Query Printout[edit]

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

Query Marker[edit]

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

See also[edit]

References

  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. a b  Semantic MediaWiki: GitHub pull request gh:smw:2398 (Add support for @deferred mode)