• 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
    • TOC Inserts Itself Into 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: TOC Inserts Itself Into Tables

    • Issue Tools
      • View Changes
    1. issueid=3999 September 2, 2014 3:37 PM
      Mokonzi Mokonzi is offline
      Senior Member
      TOC Inserts Itself Into Tables

      Many thanks Pegasus, it looks great. I've noticed an issue with the templates forcing a line break when used around the navigation menu. So as an example (I've trimmed out part of the cells structure to shorten this post):

      Code:
      [table] class="infoboxmain250box" align="right"
      |-
      | class="infoboxright" |
      [table] class="infoboxmain" align="right"
      |- 
      ! class="infohead" colspan="2" align="center" | [b]{{{Class}}}[/b]
      |-
      | class="alt3" colspan="2" | [b] Specifications: (General)[/b]
      |-
      | class="alt3" | [b]Role[/b]
      | class="alt3" | {{{Role}}}
      [/table][/table]
      Then inserted into a page like this (At the start before any other content):

      Code:
      [template]Infobox Ship Class
      | Class = Class Details
      | Role = Role Info
      [/template]
      Becomes this in the HTML source:

      HTML Code:
      <td><br>
      <br><nav class="vw-block vw-toc-block" id="toc_64">
      	<div class="vw-collapse-head" id="yui_3_15_0_1_1409686370906_106">
      		<a class="vw-collapse-ctrl fa vw-fa-hide" id="vw-collapse-ctrl_tocrow_64" href="wiki_index.php?title=Class-Details#top" title="" style="display: inline;"></a>
      		<h3>
      			
      			Contents
      		</h3>
      	</div>
      	<div class="vw-toc-links" id="vw-collapse_tocrow_64">
      		<ol class="vw-list level-0">
      			<li class="level-1"><a href="http://www.mysite.com/wiki_index.php?title=Class-Details#Link0"><span class="vw-toc-number">1</span>Specifications</a>
      	<ul class="vw-list level-2">
      		<li class="level-2"><a href="http://www.mysite.com/wiki_index.php?title=Class-Details#Link1"><span class="vw-toc-number">1.1</span>Info</a></li>	</ul></li>	<li class="level-1"><a href="http://www.mysite.com/wiki_index.php?title=Class-Details#Link2"><span class="vw-toc-number">2</span>History</a>
      	<ul class="vw-list level-2">
      		<li class="level-2"><a href="http://www.mysite.com/wiki_index.php?title=Class-Details#Link3"><span class="vw-toc-number">2.1</span>Current Class Details</a></li>	</ul></li>
      			<!-- template hook: table of contents -->
      		</ol>
      	</div>
      </nav>n="right"&gt;<table alig<br=""><tbody><tr><th colspan="2" align="center"><b>Class Details</b></th></tr><tr><td colspan="2"><b> Specifications: (General)</b></td></tr><tr><td><b>Role</b></td><td>Role Info</td></tr></tbody></table></td>
      Any ideas as to why it might have changed?
    Issue Details
    Issue Number 3999
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Page Output
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 4.0.0 RC 2
    Fixed Version 4.0.0 RC 3
    Milestone VaultWiki 4.0 Gold
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. September 2, 2014 6:02 PM
      pegasus pegasus is offline
      VaultWiki Team
      It looks like the automatic TOC is deciding that a good place to insert itself is in the middle of a TD tag. I'll have to spend a little time looking into how it even came to that decision before I know the best way to fix it.
      Reply Reply  
    2. September 13, 2014 11:18 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next release. Instead of forcing a max length to the first paragraph and then auto-closing broken tags, the preview builder will keep going past the end of that paragraph until all currently open tags have been closed. The result is that tables and other tags are no longer exploded.
      Reply Reply  
    3. September 14, 2014 5:35 AM
      Mokonzi Mokonzi is offline
      Senior Member
      Thanks Pegasus, sounds great.
      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 3:18 PM.
    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 © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.