Steps to replicate the issue (include links if applicable):
- Use a template (e.g., Template:ll) in a section heading.
- Make the section heading translatable and mark the page for translation.
- Translate translation units other than the section heading.
What happens?:
An unnecessary span HTML tag appears just before the respective section heading on the translation page.
What should have happened instead?:
If adding an untranslated section heading, the HTML should not be visible.
Other information (browser name/version, screenshots, etc.):
I was able to reproduce it on MediaWiki.org.
Examples:
https://www.mediawiki.org/w/index.php?title=Help:System_message/fr&oldid=6165852#Expect_untranslated_words
https://www.mediawiki.org/wiki/Manual:FAQ/ja#How_do_I_remove_a_tab_on_all_pages
https://www.mediawiki.org/wiki/Help:System_message/fr#Separate_times_from_dates_in_sentences
<translate> === Use <tvar name="1">{{tag|code|open}}</tvar>, <tvar name="2">{{tag|var|open}}</tvar>, and <tvar name="3">{{tag|kbd|open}}</tvar> tags where needed === <!--T:719--> </translate>