#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 page | Syntax element | Description |
---|---|---|
#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 page | Syntax element | Description |
---|---|---|
#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 page | Syntax element | Description |
---|---|---|
#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]
- Help page on semantic search
- Help page on selecting pages
References
- ^ Semantic MediaWiki: GitHub issue gh:smw:2662
- ^ Semantic MediaWiki: GitHub issue gh:smw:2873
- ^ Semantic MediaWiki: GitHub issue gh:smw:3125
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2253
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2037
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2073
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2325
- ^ Semantic Cite: GitHub issue gh:sci:40
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2844
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2677
- a b Semantic MediaWiki: GitHub pull request gh:smw:2398 (Add support for @deferred mode)