#ask: annotation markup raw format

From semantic-mediawiki.org
Jump to: navigation, search
#ask: syntax elements#ask: annotation markup raw format
Syntax
#-ia
Description Allows embedded annotation markup within text to retain its raw (parsed) format12
Datatype support Datatype "Text "Holds text of arbitrary length
Component printout
Software Semantic MediaWiki
First version supported 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

Rationale

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 #-ia printout formatter can be used to perform that action. Otherwise it gets filtered3 which is the default behavior.

Example

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


References

  1. a b  Semantic MediaWiki: GitHub pull request gh:smw:2325
  2. a b  Semantic MediaWiki: GitHub issue gh:scite:40
  3. ^  Semantic MediaWiki: GitHub pull request gh:smw:1314