v2.5.0+
Status: | effective |
Progress: | 100% |
Version: | 2.5.0+ |
#ask:
syntax – "hl" printout highlighter
From Linux Web Expert
#ask: syntax details:
| |
Syntax | #-hl |
Description | Property "Has description" (as page type) with input value "Allows to highlight search tokens within a result set[[CiteRef::gh:smw:2253" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. |
Datatype support | Datatype "Text "Holds text of arbitrary length |
Component | printout |
Software | Semantic MediaWiki |
Since version | Semantic MediaWiki 2.5.0 Released on an unknown date unknown versions of MediaWiki |
Keyword | search token · query token |
The #-hl
query printout highlighter of search tokens was introduced in Semantic MediaWiki 2.5.0Released on an unknown date unknown versions of MediaWiki.
Rationale
Allows to define search highlighting1 which is done by adding the #-hl
result formatter to the printout statement of the respective property.
Example
- Syntax
{{#ask: [[Has description::~*tokens*]] |?Has description#-hl |mainlabel=- |link=none |headers=hide }}
- Result
- Link
<sandbox.semantic-mediawiki.org>: More examples for this query parameter
See also
- Query with search highlighting
References
- ^ gh:smw:2253