« Escape accolade » : différence entre les versions
De Semantic MediaWiki - Sandbox
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
Curly braces can't be used in parser functions like 'set' (or 'var'). Escaping them gives issues in different result formats. | 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 {{#set:Description_nl=Accolade-left: {}} | * Accolade {{#set:Description_nl=Accolade-left: {}} | ||
* HTML character entity reference - {{#set:Description_nl=HTML entity reference: {}} | * HTML character entity reference - {{#set:Description_nl=HTML entity reference: {}} | ||
* nowiki - {{#set:Description_nl=nowiki: <nowiki>{</nowiki> }} | * nowiki - {{#set:Description_nl=nowiki: <nowiki>{</nowiki> }} | ||
* [[Template:Accolade left|template]] | * [[Template:Accolade left|template]] curly bracket in it - {{#set:Description_nl=Template with nowiki: {{Accolade left}} }} | ||
* [[Description_nl::semantic link: {]] | * [[Description_nl::semantic link: {]] | ||
{{DISPLAYTITLE:escaped { }} | {{DISPLAYTITLE:escaped { }} | ||
Ligne 14 : | Ligne 18 : | ||
}} | }} | ||
==ul== | ==ul== | ||
{{#ask: [[Escape accolade]] | {{#ask: [[Escape accolade]] | ||
|?Description nl | |?Description nl | ||
Ligne 20 : | Ligne 25 : | ||
|propsep=; | |propsep=; | ||
|valuesep=<br /> | |valuesep=<br /> | ||
}} | |||
Verify it's not the valuesep=br, by ommitting it: | |||
{{#ask: [[Escape accolade]] | |||
|?Description nl | |||
|format=ul | |||
|limit=250 | |||
|propsep=; | |||
}} | }} | ||
==ol== | ==ol== | ||
Ligne 46 : | Ligne 60 : | ||
}} | }} | ||
==csv== | ==csv== | ||
In CSV the displaytitle is not taken into account; the value for page name is the full page name. | |||
{{#ask: [[Escape accolade]] | {{#ask: [[Escape accolade]] | ||
|?Description nl | |?Description nl | ||
Ligne 54 : | Ligne 70 : | ||
}} | }} | ||
==rdf== | ==rdf== | ||
In RDF-XML and RDF Turtle the displaytitle is ignored. The html character entity code is not decoded. The 'nowiki' tag is preserved. | |||
{{#ask: [[Escape accolade]] | |||
|?Description nl | |||
|format=rdf | |||
|limit=250 | |||
|propsep=; | |||
|filename=curly-bracket | |||
|searchlabel=RDF-XML | |||
}} | |||
{{#ask: [[Escape accolade]] | {{#ask: [[Escape accolade]] | ||
|?Description nl | |?Description nl | ||
Ligne 60 : | Ligne 86 : | ||
|propsep=; | |propsep=; | ||
|filename=curly-bracket | |filename=curly-bracket | ||
|syntax=turtle | |||
|searchlabel=RDF Turtle (TTL) | |||
}} | }} | ||
==json== | ==json== | ||
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
plainlist
list
csv
In CSV the displaytitle is not taken into account; the value for page name is the full page name.
rdf
In RDF-XML and RDF Turtle the displaytitle is ignored. The html character entity code is not decoded. The 'nowiki' tag is preserved.
json
In JSON, the html entity character entity is not parsed and nowiki is shown *and* used. Also in the value for 'displaytitle'. JSON