Page MenuHomePhabricator

Special:ExpandTemplates - Preview seems to be parsed twice
Open, NormalPublic

Description

Author: a.d.bergi

Description:
Try out http://de.wikipedia.org/wiki/Spezial:Vorlagen_expandieren?generate_xml=1&input={{((}}Vorlage{{!}}X{{))}}

de.wikipedia has two templates, "((" expands to "{{" and "))" to "}}". When they are used on normal wiki pages, you are shown the braces as expected.
But in ExpandTemplates, while the xml tree is right, when the result is something parseable is will be expanded for the preview.

This behavior can also be found at http://de.wikipedia.org/wiki/Spezial:Vorlagen_expandieren?generate_xml=1&input=<p<includeonly/>re>X</pre>
Normally, nesting xmlishElements into another tag does not work (often used to insert includeonly tags at preloads), in ExpandTemplates it works for the preview.


Version: 1.23.0
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=46115

Details

Reference
bz28616

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 21 2014, 11:33 PM
bzimport set Reference to bz28616.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.Apr 20 2011, 7:53 AM

special page was moved to core

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 22 2016, 6:17 PM
Aklapper removed a project: Parser.Sun, Oct 6, 10:02 PM
Aklapper removed a subscriber: wikibugs-l-list.
Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptSun, Oct 6, 10:02 PM