Escape accolade/complex

De Semantic MediaWiki - Sandbox

This is a more complex scenario/copy of escaped {. Now we use a string (phrase) which would break the parser function syntax.

Curly braces can't be used in parser functions like 'set' (or 'var'). Escaping them gives issues in different result formats.

In most cases, the 'nowiki'-tag is shown, wrapped around the full value (while it is only used at the end). Expected behaviour: the nowiki-tag is not shown.


  • Accolade {{#set:Has text=-{[a]b}c}}
  • HTML character entity reference -
  • nowiki -
  • template curly bracket in it -
  • -{[a]b}semantic link

{{DISPLAYTITLE:-{[a]b}c}}

default-result (broadtable)

 Has text
Escape accolade/complex-{[a]b}html character entity
<nowiki>-{[a]b}nowiki</nowiki>
-{[a]b}template
-{[a]b}semantic link

ul

Verify it's not the valuesep=br, by ommitting it:

ol

  1. Escape accolade/complex (Has text: -{[a]b}html character entity
    <nowiki>-{[a]b}nowiki</nowiki>
    -{[a]b}template
    -{[a]b}semantic link
    )

plainlist

Escape accolade/complex (Has text: -{[a]b}html character entity
<nowiki>-{[a]b}nowiki</nowiki>
-{[a]b}template
-{[a]b}semantic link)

list

Escape accolade/complex (Has text: -{[a]b}html character entity
<nowiki>-{[a]b}nowiki</nowiki>
-{[a]b}template
-{[a]b}semantic link)

csv

In CSV the displaytitle is not taken into account; the value for page name is the full page name.

CSV

rdf

In RDF-XML and RDF Turtle the displaytitle is ignored. The html character entity code is not decoded. The 'nowiki' tag is preserved.

RDF-XML RDF Turtle (TTL)

json

In JSON, the html entity character entity is not parsed and nowiki is shown *and* used. Also in the value for 'displaytitle'.

JSON

Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.