Last modified: 2014-06-11 04:42:45 UTC
Currently, … {{DISPLAYTITLE:''F''o'''o'''}} … round-trips to … <span about="#mwt1" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":" [[Main Page]]\n[[Category:","function":"displaytitle"},"params":{},"i":0}}]}" data-parsoid="{"dsr":[7,37,null,null],"pi":[[]]}"></span> … which presumably is just fragments of another page's parse?
I began looking into what might be needed to do this earlier, based on how defaultsort is handled (which seems to have needed a similar transclusion -> meta item change). Looking at parsoid/lib/ext.core.TemplateHandler.js, specifically the check on this.manager.env.conf.wiki.magicWords[property.trim()]). It'd be nice to be able to simply check that the result is 'displaytitle' (how the code works for defaultsort), but it seems that won't work without making 'DISPLAYTITLE:' an alias of 'DISPLAYTITLE' in MediaWiki core? Anyway this is all obviously best left for a Parsoid developer so I stopped there.
Change 138493 had a related patch set uploaded by Arlolra: Add DOM support for {{DISPLAYTITLE}} https://gerrit.wikimedia.org/r/138493
Change 138493 merged by jenkins-bot: Add DOM support for {{DISPLAYTITLE}} https://gerrit.wikimedia.org/r/138493
Change 138768 had a related patch set uploaded by Arlolra: Rename page property to displaytitle https://gerrit.wikimedia.org/r/138768
Change 138768 merged by jenkins-bot: Rename page property to displaytitle https://gerrit.wikimedia.org/r/138768