Some of the headings on the main page on Meta-Wiki have no content in the Parsoid HTML.
Normal read mode | Parsoid HTML |
---|---|
https://meta.wikimedia.org/wiki/Main_Page | https://meta.wikimedia.org/api/rest_v1/page/html/Main_Page |
(reported in T299583)
matmarex | |
Jan 20 2022, 7:10 PM |
F34924793: image.png | |
Jan 20 2022, 7:10 PM |
F34924796: image.png | |
Jan 20 2022, 7:10 PM |
Some of the headings on the main page on Meta-Wiki have no content in the Parsoid HTML.
Normal read mode | Parsoid HTML |
---|---|
https://meta.wikimedia.org/wiki/Main_Page | https://meta.wikimedia.org/api/rest_v1/page/html/Main_Page |
(reported in T299583)
Project | Branch | Lines +/- | Subject | |
---|---|---|---|---|
mediawiki/services/parsoid | master | +448 -322 | Strip annotations from template arguments |
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
This was fixed by https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Translate/+/762849
The patch in T299685#7694120 is on hold
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.