Page MenuHomePhabricator

Using a template in a section heading causes unnecessary <span> HTML to appear on the translation page
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  1. Use a template (e.g., Template:ll) in a section heading.
  2. Make the section heading translatable and mark the page for translation.
  3. 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>

Event Timeline

Shirayuki renamed this task from Using a template in a section heading causes unnecessary span HTML to appear on the translation page to Using a template in a section heading causes unnecessary <span> HTML to appear on the translation page.Mon, Nov 20, 10:32 PM