#ask: syntax – "raw" printout formatter

From Linux Web Expert

#ask: syntax details:
Syntax #-raw
Description Property "Has description" (as page type) with input value "Allows embedded annotation markup within text to retain its raw formatCiteRef::gh:smw:2325CiteRef::gh:sci:40[[CiteRef::gh:smw:2844" 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 in-text annotation · raw format · annotation markup · wiki markup

The #-raw printout formatter was introduced in Semantic MediaWiki 2.5.0Released on an unknown date unknown versions of MediaWiki as #-ia but renamed to its current name in Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki.

If for some use cases a text that contains an in-text annotation wishes to retain that content in its raw (parsed) form then the #-raw printout formatter can be used to perform that action. Otherwise it gets filtered1 which is the default behavior.

This printout formatter was renamed from #-ia to #-raw in Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki to make its purpose more intuitive to grasp.2 At the same time #-ia remains to be an alias #-raw to avoid breakage of existing queries. However you are advised to migrate to the new printout formatter. See also this version of the documentation available for releases prior to Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki.

Example

Syntax
{{#ask:
 [[{{FULLPAGENAME}}]]
 |?Has description
 |?Has description#-raw
 |mainlabel=-
 |link=none
 |headers=hide
}}
Result
#scite could not render a citation text for reference "gh:sci:40" because type "issue" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:1314" because type "pullrequest" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:2325" because type "pullrequest" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:2844" because type "pullrequest" was not assigned to a template.

References

  1. ^ gh:smw:1314 
  2. ^ gh:smw:2844