Page MenuHomePhabricator

The TOC is rendered twice on pages with Lingo terms (Vector 2022)
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue on MediaWiki REL1_39:

  • Install and enable Vector skin matching the branch.
  • Choose "Vector (2022)" in user preferences.
  • Install Lingo matching the branch
  • Create a term and definition on the Lingo page (by default "Terminology")
  • Create a test page with headings
  • Add the Lingo term to the test page

What happens?:

  • The TOC is displayed in the sidebar by design of Vector 2022
  • The TOC is also displayed within the page text before the first heading occurrence

What should have happened instead?:

  • The TOC should be displayed in the sidebar
  • The TOC should not appear in the main content area

Software version:

  • MediaWiki REL1_39
  • Vector REL1_39
  • Lingo REL1_39

Other information:

Expected behavior:

image.png (905×880 px, 78 KB)

Two TOCs with a Lingo term ("GU") added :

image.png (873×913 px, 163 KB)

Event Timeline

@Elcapitan68 Thank you! Not sure why I can no longer reply when logged in on the Lingo discussion post here (https://www.mediawiki.org/wiki/Topic:Xqj302c4jokdz1op), so thinking to follow up here, is there anyway to always show both TOC on sidebar and in-page at the same time? I actually liked it when they both are displayed :)

@Elcapitan68 Thank you! Not sure why I can no longer reply when logged in on the Lingo discussion post here (https://www.mediawiki.org/wiki/Topic:Xqj302c4jokdz1op), so thinking to follow up here, is there anyway to always show both TOC on sidebar and in-page at the same time? I actually liked it when they both are displayed :)

@Paulxu20 I think you can try to use custom javascript to clone and display TOC somewhere else, it is not the question of the Lingo extension.

Please, follow up here. There is no need to continue in two places )