Page MenuHomePhabricator

Some headings are missing on the main page on Meta-Wiki in Parsoid rendering
Closed, ResolvedPublicBUG REPORT

Description

Some of the headings on the main page on Meta-Wiki have no content in the Parsoid HTML.

(reported in T299583)

Event Timeline

Tacsipacsi changed the subtype of this task from "Task" to "Bug Report".Jan 21 2022, 9:54 PM
Tacsipacsi subscribed.

The wikitext contains

{{ Template:Main Page/WM News
  | lang = <translate><!--T:15--> en</translate> | dir = {{dir|{{int:lang}}}}<!-- TO BE MIGRATED -->
}}

Probably the <translate> tags are not removed, and they cause issues in {{LangSwitch}}. Actually, this translation unit shouldn’t be there in the first place, the above code block should be replaced by {{Main Page/WM News|lang={{PAGELANGUAGE}}}} to avoid translators doing unnecessary work and breaking the output with the legacy parser as well.

T295834: Add special handling for annotation tags in template arguments is related and might solve this if @Tacsipacsi's analysis is correct (we haven't yet looked at this).

Change 737825 had a related patch set uploaded (by Isabelle Hurbain-Palatin; author: Subramanya Sastry):

[mediawiki/services/parsoid@master] Strip annotations seen in template arguments for now

https://gerrit.wikimedia.org/r/737825

Change 737825 abandoned by Subramanya Sastry:

[mediawiki/services/parsoid@master] Strip annotations from template arguments

Reason:

We can revisit this at a later time. Abandoning for now.

https://gerrit.wikimedia.org/r/737825