Open gbeine opened 1 year ago
Would you mind to expand a bit on the issue?
Hi there, not OP, but I found this ticket when searching for a solution to the same problem (or at least a related issue).
On pages where I have the Citizen skin enabled and have tabs from TabberNeue, the Table of Contents displays a blank entry even though there are more than three headers in a given tab. The "Contents" title still appears and floats with the article body text as normal, but it is empty. I have checked for conflicting extensions but have not seen anything immediately obvious for conflicts, and this persists even if I append TOC to an article to try and "force" it to load the Table of Contents.
This can be contrasted with pages that do not have a table of contents normally (i.e. fewer than 3 header sections) where the table of contents correctly does not appear at all (blank or otherwise).
My wiki is on MediaWiki 1.39.
@pencildragon do you have a demo page with the issue? It is difficult to debug this without a live demo since it involves multiple extensions/skins. TOC generation is decided by MediaWiki core and Citizen takes the data from core to generate a TOC. I'm not sure how MW core interacts with Tabber to get data for the TOC since I can't reproduce this.
@alistair3149 Thanks for the quick reply. I have made a demo page here for you to investigate. You can see it tries to create the table of contents, but then it fails to populate it.
https://chronostars.com/wiki/Demo has tabs. https://chronostars.com/wiki/Demo/NoTabs has... no tabs, but the content is otherwise the same.
This will take some time to look into since I am not familiar with how MediaWiki core handles ToC currently. I would appreciate a lot if there is someone who has additional insights!
Is there a way to enable the TOC for the selected tab? Maybe, it's a layer 8 problem, but I'm not able to display a TOC on any tab on pages where I use TabberNeue.