« Escape accolade » : différence entre les versions

De Semantic MediaWiki - Sandbox

Aucun résumé des modifications
Aucun résumé des modifications
Ligne 91 : Ligne 91 :
==json==
==json==
In JSON, the html entity character entity is not parsed and nowiki is shown *and* used. Also in the value for 'displaytitle'.
In JSON, the html entity character entity is not parsed and nowiki is shown *and* used. Also in the value for 'displaytitle'.
{{#ask: [[Escape accolade]]
{{#ask: [[Escape accolade]]
  |?Description nl
  |?Description nl

Version du 20 septembre 2023 à 12:32

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. In


  • Accolade
  • HTML character entity reference -
  • nowiki -
  • template curly bracket in it -
  • semantic link: {

default-result (broadtable)

 Description nl
escaped {

ul

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

ol

  1. escaped {

plainlist

escaped {

list

escaped {

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.