« Escape accolade » : différence entre les versions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 5 : | Ligne 5 : | ||
* Accolade {{#set: | * Accolade {{#set:Has text=Accolade-left: {end}} | ||
* HTML character entity reference - {{#set: | * HTML character entity reference - {{#set:Has text=HTML entity reference: {end}} | ||
* nowiki - {{#set: | * nowiki - {{#set:Has text=nowiki: <nowiki>{</nowiki> end}} | ||
* [[Template:Accolade left|template]] curly bracket in it - {{#set: | * [[Template:Accolade left|template]] curly bracket in it - {{#set:Has text=Template with nowiki: {{Accolade left}} end}} | ||
* [[ | * [[Has text::semantic link: { end]] | ||
{{DISPLAYTITLE:escaped { }} | {{DISPLAYTITLE:escaped { }} | ||
==default-result (broadtable)== | ==default-result (broadtable)== | ||
{{#ask: [[Escape accolade]] | {{#ask: [[Escape accolade]] | ||
|? | |?Has text | ||
|propsep=; | |propsep=; | ||
|valuesep=<br /> | |valuesep=<br /> | ||
Ligne 20 : | Ligne 20 : | ||
{{#ask: [[Escape accolade]] | {{#ask: [[Escape accolade]] | ||
|? | |?Has text | ||
|format=ul | |format=ul | ||
|limit=250 | |limit=250 | ||
Ligne 30 : | Ligne 30 : | ||
{{#ask: [[Escape accolade]] | {{#ask: [[Escape accolade]] | ||
|? | |?Has text | ||
|format=ul | |format=ul | ||
|limit=250 | |limit=250 | ||
Ligne 37 : | Ligne 37 : | ||
==ol== | ==ol== | ||
{{#ask: [[Escape accolade]] | {{#ask: [[Escape accolade]] | ||
|? | |?Has text | ||
|format=ol | |format=ol | ||
|limit=250 | |limit=250 | ||
Ligne 45 : | Ligne 45 : | ||
==plainlist== | ==plainlist== | ||
{{#ask: [[Escape accolade]] | {{#ask: [[Escape accolade]] | ||
|? | |?Has text | ||
|format=plainlist | |format=plainlist | ||
|limit=250 | |limit=250 | ||
Ligne 53 : | Ligne 53 : | ||
==list== | ==list== | ||
{{#ask: [[Escape accolade]] | {{#ask: [[Escape accolade]] | ||
|? | |?Has text | ||
|format=list | |format=list | ||
|limit=250 | |limit=250 | ||
Ligne 63 : | Ligne 63 : | ||
{{#ask: [[Escape accolade]] | {{#ask: [[Escape accolade]] | ||
|? | |?Has text | ||
|format=csv | |format=csv | ||
|limit=250 | |limit=250 | ||
Ligne 73 : | Ligne 73 : | ||
{{#ask: [[Escape accolade]] | {{#ask: [[Escape accolade]] | ||
|? | |?Has text | ||
|format=rdf | |format=rdf | ||
|limit=250 | |limit=250 | ||
Ligne 81 : | Ligne 81 : | ||
}} | }} | ||
{{#ask: [[Escape accolade]] | {{#ask: [[Escape accolade]] | ||
|? | |?Has text | ||
|format=rdf | |format=rdf | ||
|limit=250 | |limit=250 | ||
Ligne 93 : | Ligne 93 : | ||
{{#ask: [[Escape accolade]] | {{#ask: [[Escape accolade]] | ||
|? | |?Has text | ||
|format=json | |format=json | ||
|limit=250 | |limit=250 |
Dernière version du 20 septembre 2023 à 12:36
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: { end
default-result (broadtable)
Has text | |
---|---|
escaped { | Accolade-left: {end HTML entity reference: {end <nowiki>nowiki: { end</nowiki> Template with nowiki: { end semantic link: { end |
ul
- escaped { (Has text: Accolade-left: {end
HTML entity reference: {end
<nowiki>nowiki: { end</nowiki>
Template with nowiki: { end
semantic link: { end)
Verify it's not the valuesep=br, by ommitting it:
- escaped { (Has text: Accolade-left: {end, HTML entity reference: {end, <nowiki>nowiki: { end</nowiki>, Template with nowiki: { end, semantic link: { end)
ol
- escaped { (Has text: Accolade-left: {end
HTML entity reference: {end
<nowiki>nowiki: { end</nowiki>
Template with nowiki: { end
semantic link: { end)
plainlist
escaped { (Has text: Accolade-left: {end
HTML entity reference: {end
<nowiki>nowiki: { end</nowiki>
Template with nowiki: { end
semantic link: { end)
list
escaped { (Has text: Accolade-left: {end
HTML entity reference: {end
<nowiki>nowiki: { end</nowiki>
Template with nowiki: { end
semantic link: { end)
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'.