• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • Table of contents breaks tables

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Table of contents breaks tables

    • Issue Tools
      • View Changes
    1. issueid=5973 March 7, 2020 11:40 AM
      Hilary Hilary is offline
      Junior Member
      Table of contents breaks tables
      When a table of contents is auto-generated for an article, the table in that article disappears

      Tables that contain headings disappear as soon as an article has an auto-generated table of contents.

      The ToC seems to be generated when you pass a certain number of headings. Thus this article will display correctly as a table:

      Code:
      [TABLE]
      [TR]
      [TD]
      [h="2"]Upper Canon[/h][/TD]
      
      [TD]
      [h="2"]Lower Canon[/h][/TD]
      
      [TD]
      [INDENT][h="2"]Trigrams[/h][/INDENT]
      [INDENT][b]'Treasure Chest'[/b][/INDENT]
      
      [/TD]
      [/TR]
      [/TABLE]
      But if there is one more heading, the table of contents appears, and the table vanishes:
      Code:
      [TABLE]
      [TR]
      [TD]
      [h="2"]Upper Canon[/h][/TD]
      
      [TD]
      [h="2"]Lower Canon[/h][/TD]
      
      [TD]
      [INDENT][h="2"]Trigrams[/h][/INDENT]
      
      [INDENT][h="2"]'Treasure Chest'[/h][/INDENT]
      
      [/TD]
      [/TR]
      [/TABLE]
    Issue Details
    Issue Number 5973
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Editing Pages
    Status Not a Bug
    Priority 3 - Loss of Functionality
    Affected Version 4.1.0 RC 1
    Fixed Version (none)
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. March 9, 2020 6:34 PM
      pegasus pegasus is offline
      VaultWiki Team
      Using only the code provided, I cannot reproduce the problem. On my XF 2.x forum, the second sample results in a page that shows both the TOC and the table. Is this the exact code that is failing, or is there other content on the page? Perhaps there is more required to reproduce the issue. You can send me the full BB-Code of any problematic page via PM.
      Reply Reply  
    2. March 9, 2020 7:01 PM
      Hilary Hilary is offline
      Junior Member
      Here it all is. This has just enough headings to trigger the ToC, and that means a blank space where the table should be.


      Code:
      [TABLE]
      [TR]
      [TD][h="2"]Upper Canon[/h]
      [LIST][*][wikiwing]Hexagram 1[/wikiwing][*][wikiwing]Hexagram 2[/wikiwing][*][wikiwing]Hexagram 3[/wikiwing][*][wikiwing]Hexagram 4[/wikiwing][*][wikiwing]Hexagram 5[/wikiwing][*][wikiwing]Hexagram 6[/wikiwing][*][wikiwing]Hexagram 7[/wikiwing][*][wikiwing]Hexagram 8[/wikiwing][*][wikiwing]Hexagram 9[/wikiwing][*][wikiwing]Hexagram 10[/wikiwing][*][wikiwing]Hexagram 11[/wikiwing][*][wikiwing]Hexagram 12[/wikiwing][*][wikiwing]Hexagram 13[/wikiwing][*][wikiwing]Hexagram 14[/wikiwing][*][wikiwing]Hexagram 15[/wikiwing][*][wikiwing]Hexagram 16[/wikiwing][*][wikiwing]Hexagram 17[/wikiwing][*][wikiwing]Hexagram 18[/wikiwing][*][wikiwing]Hexagram 19[/wikiwing][*][wikiwing]Hexagram 20[/wikiwing][*][wikiwing]Hexagram 21[/wikiwing][*][wikiwing]Hexagram 22[/wikiwing][*][wikiwing]Hexagram 23[/wikiwing][*][wikiwing]Hexagram 24[/wikiwing][*][wikiwing]Hexagram 25[/wikiwing][*][wikiwing]Hexagram 26[/wikiwing][*][wikiwing]Hexagram 27[/wikiwing][*][wikiwing]Hexagram 28[/wikiwing][*][wikiwing]Hexagram 29[/wikiwing][*][wikiwing]Hexagram 30[/wikiwing][/LIST][/TD]
      
      [TD][h="2"]Lower Canon[/h]
      [LIST][*][wikiwing]Hexagram 31[/wikiwing][*][wikiwing]Hexagram 32[/wikiwing][*][wikiwing]Hexagram 33[/wikiwing][*][wikiwing]Hexagram 34[/wikiwing][*][wikiwing]Hexagram 35[/wikiwing][*][wikiwing]Hexagram 36[/wikiwing][*][wikiwing]Hexagram 37[/wikiwing][*][wikiwing]Hexagram 38[/wikiwing][*][wikiwing]Hexagram 39[/wikiwing][*][wikiwing]Hexagram 40[/wikiwing][*][wikiwing]Hexagram 41[/wikiwing][*][wikiwing]Hexagram 42[/wikiwing][*][wikiwing]Hexagram 43[/wikiwing][*][wikiwing]Hexagram 44[/wikiwing][*][wikiwing]Hexagram 45[/wikiwing][*][wikiwing]Hexagram 46[/wikiwing][*][wikiwing]Hexagram 47[/wikiwing][*][wikiwing]Hexagram 48[/wikiwing][*][wikiwing]Hexagram 49[/wikiwing][*][wikiwing]Hexagram 50[/wikiwing][*][wikiwing]Hexagram 51[/wikiwing][*][wikiwing]Hexagram 52[/wikiwing][*][wikiwing]Hexagram 53[/wikiwing][*][wikiwing]Hexagram 54[/wikiwing][*][wikiwing]Hexagram 55[/wikiwing][*][wikiwing]Hexagram 56[/wikiwing][*][wikiwing]Hexagram 57[/wikiwing][*][wikiwing]Hexagram 58[/wikiwing][*][wikiwing]Hexagram 59[/wikiwing][*][wikiwing]Hexagram 60[/wikiwing][*][wikiwing]Hexagram 61[/wikiwing][*][wikiwing]Hexagram 62[/wikiwing][*][wikiwing]Hexagram 63[/wikiwing][*][wikiwing]Hexagram 64[/wikiwing][/LIST][/TD]
      
      [TD][INDENT][h="2"]Trigrams[/h][/INDENT]
      
      [INDENT][wikiwing]TRIGRAMS GENERAL[/wikiwing][/INDENT]
      [INDENT][wikiwing]Trigram Qian Heaven[/wikiwing][/INDENT]
      [INDENT][wikiwing]Trigram Kun Earth[/wikiwing][/INDENT]
      [INDENT][wikiwing]Trigram Zhen Thunder[/wikiwing][/INDENT]
      [INDENT][wikiwing]Trigram Xun Wind[/wikiwing][/INDENT]
      [INDENT][wikiwing]Trigram Kan Water[/wikiwing][/INDENT]
      [INDENT][wikiwing]Trigram Li Fire[/wikiwing][/INDENT]
      [INDENT][wikiwing]Trigram Gen Mountain[/wikiwing][/INDENT]
      [INDENT][wikiwing]Trigram Dui Lake[/wikiwing][/INDENT]
      [INDENT][wikiwing]Shuogua[/wikiwing][/INDENT]
      
      [INDENT][h="2"]'Treasure Chest'[/h][/INDENT]
      
      [INDENT](Change Circle members only):[/INDENT]
      [INDENT][URL='https://www.onlineclarity.co.uk/friends/index.php?wiki/&title=Treasure-Chest&do=list']Treasure Chest index[/URL][/INDENT]
      [INDENT][URL='http://www.onlineclarity.co.uk/amember/content/f/id/84/']Language of Change Yijing glossary[/URL] (pdf file)[/INDENT]
      [INDENT][WIKIWING]Yijing Terms[/WIKIWING][/INDENT]
      
      [INDENT][B][I]The Sequence[/I][/B][/INDENT]
      [INDENT]The King Wen [WIKIWING]Sequence[/WIKIWING][/INDENT]
      [INDENT][wikiwing]King Wen Sequence in Decades[/wikiwing][/INDENT]
      [INDENT][wikiwing]Shadow[/wikiwing][/INDENT]
      [INDENT][B][I]Hexagrams of context[/I][/B][/INDENT]
      [INDENT](and how we use them in interpretation)[/INDENT]
      
      [INDENT][wikiwing]Complement[/wikiwing][/INDENT]
      [INDENT][wikiwing]Nuclear hexagrams[/wikiwing][/INDENT]
      [INDENT][wikiwing]Hexagram pairs[/wikiwing][/INDENT][/TD]
      [/TR]
      [/TABLE]
      
      [WIKIWING=Help]How to contribute to WikiWing[/WIKIWING]
      Reply Reply  
    3. March 10, 2020 8:44 AM
      pegasus pegasus is offline
      VaultWiki Team
      I still could not reproduce this issue on my board so I had a look at yours. This turned out to be an issue with your custom style which was causing the TOC and the table to float side by side (the table was floating off the right edge of the page, because the TOC was also set to 100% width).

      I added the following rule to your vw_additional.less template:
      Code:
      .block.vw-toc-block {
      float: none;
      width: auto;
      }
      Since this was due to custom styling, this is closed as Not a Bug.
      Reply Reply  
    4. March 14, 2020 6:49 AM
      Hilary Hilary is offline
      Junior Member
      Thanks for the fix!
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 12:51 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.