Page MenuHomePhabricator

Table of contents on ZH Wikivoyage lacks all section title strings (due to code in MediaWiki:Common.js)
Closed, InvalidPublic

Description

Error display in the directory column on ZH-Wikivoyage, can everyone fix the function not to display? After all, this is the wrong display!

Error display in the directory column.jpg (768×1 px, 346 KB)

Example source- https://zh.wikivoyage.org/wiki/%E8%87%BA%E6%9D%B1%E7%B8%A3

Event Timeline

Aklapper renamed this task from Error display in the directory column on ZH-Wikivoyage to Table of contents on ZH Wikivoyage lacks all section title strings.Nov 6 2021, 5:08 PM

This looks like a gadget problem.
The table of contents displays at this URL: https://zh.wikivoyage.org/wiki/%E8%87%BA%E6%9D%B1%E7%B8%A3?safemode=1

Please remove:

/* 讓橫幅的章節標題文字可以繁簡轉換,直接抓取真實章節標題文字 */
$('.toctext').each(function(i, e) {
    $(e).text($($('.mw-headline').get(i)).text().trim())
})

from https://zh.wikivoyage.org/wiki/MediaWiki:Common.js

Sorry... the title is wrong, we need hidden the table of contents, not display in page left, Wikivoyage page banner has table of contents, we need as like other wikivoyage language version , not display the table of contents in page left.

@Yuriy_kosygin that is https://phabricator.wikimedia.org/T295003 and I'll be backporting a fix for in 2 hrs and 30 mins that should address that issue.

Please remove:

/* 讓橫幅的章節標題文字可以繁簡轉換,直接抓取真實章節標題文字 */
$('.toctext').each(function(i, e) {
    $(e).text($($('.mw-headline').get(i)).text().trim())
})

from https://zh.wikivoyage.org/wiki/MediaWiki:Common.js

Fixed in https://zh.wikivoyage.org/w/index.php?title=MediaWiki:Common.js&diff=prev&oldid=177894

Xiplus changed the task status from Duplicate to Invalid.Nov 8 2021, 4:56 PM

The problem described in the title and description is solved on wiki.
This task is not a duplicate of T295187 or T295003.

Aklapper renamed this task from Table of contents on ZH Wikivoyage lacks all section title strings to Table of contents on ZH Wikivoyage lacks all section title strings (due to code in MediaWiki:Common.js).Nov 9 2021, 1:36 PM

In Yandex, Google Chrome and Microsoft Edge browser to see 北竿, the left TOC same still display! Wikivoyage page banner have TOC, we Wikivoyage no need this TOC, Please remove left TOC!

2021-11-12_21-26-09.png (768×1 px, 313 KB)

I don't see the table of contents here:
https://zh.wikivoyage.org/wiki/%E5%8C%97%E7%AB%BF?safemode=1

Screen Shot 2021-11-12 at 11.57.14 AM.png (1×2 px, 1 MB)

Is it possible an old version is being cached?