[go: up one dir, main page]

Page MenuHomePhabricator

Put DISPLAYTITLE in its own span
Open, Needs TriagePublicFeature

Description

See also T306440 and T318772.

Feature summary: When the title is modified using {{DISPLAYTITLE:title}}, put the new title in its own span like <span class="mw-page-title-displaytitle">new title</span>.

Use case(s): Any page using DISPLAYTITLE

Benefits: This allows VE (and maybe other tools) to change the title without overwriting the entire header which breaks all events within it and can wipe links/buttons that were added by gadgets/scripts.

Event Timeline

Jdlrobson subscribed.

Since VE is mentioned as benefit adding some VE developers to confirm.

Yes, this was proposed in discussion on T318772 and I said it seems like a good idea.

In my mind, the extra markup would be added somewhere in the parser, which means that no changes in skin code would be necessary (skins already treat the page title as an opaque HTML fragment).