Page MenuHomePhabricator

Templated template names aren't handled by HTMLTemplateParameters
Closed, DuplicatePublic

Description

$ echo '{{{{echo|echo}}|hi}}' | tests/parse.js --addHTMLTemplateParameters --normalize=parsoid

<p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"{{echo|echo}}"},"params":{"1":{"wt":"hi","html":"hi"}},"i":0}}]}'>hi</p>

Ideally the target portion of the data-mw would have an html property, as well as the wt property.

This lack is exposed in the mwparserfromhell-like interface ( https://gerrit.wikimedia.org/r/226734 ) by the fact that the name of the template is a String, not a PNodeList. (In mwparserfromhell the name of the template is Wikicode not a string.)

See also T106852.

Event Timeline

cscott created this task.Jul 28 2015, 7:09 PM
cscott raised the priority of this task from to Low.
cscott updated the task description. (Show Details)
cscott added a project: Parsoid.
cscott added a subscriber: cscott.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 28 2015, 7:09 PM