This wiki is being moved to a new server and cannot be edited. Please sit tight. Thank you.

#ask: syntax – "raw" printout formatter

From semantic-mediawiki.org
< #ask: syntax elements
#ask: syntax elements#ask: syntax – "raw" printout formatter
#ask: syntax details:
Syntax
#-raw
Description Allows embedded annotation markup within text to retain its raw format123
Datatype support Datatype "Text "Holds text of arbitrary length
Component printout
Software Semantic MediaWiki
Since version Semantic MediaWiki 2.5.0 Released on 14 March 2017 and compatible with MW 1.23.0 - 1.29.x.
Keyword in-text annotation · raw format · annotation markup · wiki markup

The #-raw printout formatter was introduced in Semantic MediaWiki 2.5.0Released on 14 March 2017 and compatible with MW 1.23.0 - 1.29.x. as #-ia but renamed to its current name in Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x..

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 filtered4 which is the default behavior.

This printout formatter was renamed from #-ia to #-raw in Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x. to make its purpose more intuitive to grasp.3 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 11 October 2018 and compatible with MW 1.27.0 - 1.31.x..

Example[edit]

Syntax
{{#ask:
 [[{{FULLPAGENAME}}]]
 |?Has description
 |?Has description#-raw
 |mainlabel=-
 |link=none
 |headers=hide
}}
Result
Allows embedded annotation markup within text to retain its raw formatgh:smw:2325gh:sci:40gh:smw:2844Allows embedded annotation markup within text to retain its raw format123



References

  1. a b  Semantic MediaWiki: GitHub pull request gh:smw:2325
  2. a b  Semantic Cite: GitHub issue gh:sci:40
  3. a b c  Semantic MediaWiki: GitHub pull request gh:smw:2844
  4. ^  Semantic MediaWiki: GitHub pull request gh:smw:1314