• 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 Template adds lines if optional fields not filled out

    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 Template adds lines if optional fields not filled out

    • Issue Tools
      • View Changes
    1. issueid=5398 April 28, 2018 6:43 AM
      expanserpb expanserpb is offline
      Junior Member
      Table Template adds lines if optional fields not filled out

      Example page:
      https://www.theexpanse-rp.com/wiki/Characters/Bohdi-Xin
      Using template:
      https://www.theexpanse-rp.com/wiki/T...racter-Infobox


      This table has optional fields like this:
      [if="{{{Relatives|}}}"]| style="color: #{{{Fontcolor|e38836}}}" | Relatives
      | style="background: #{{{Secondary|434566}}}; color:#{{{Fontcolor2|C1CDCD}}}" | {{{Relatives}}}
      |-[/if]

      However, for every optional field an empty line space is going into the page that uses the template above the table.

      This could be an error in how I've put the IF statements into the template table, so apologies if this is user error!
    Issue Details
    Issue Number 5398
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Templates
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 4.0.21
    Fixed Version 4.0.24
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 28, 2018 10:05 AM
      pegasus pegasus is online now
      VaultWiki Team
      Fixed in the next release. In vault/core/model/parser/handle/table/vw.php, find:
      Code:
      				$this->buffer .= $splitter . $line;
      Replace with:
      Code:
      				if (!empty($this->open['td']))
      				{
      					$this->buffer .= $splitter . $line;
      				}
      Reply Reply  
    2. July 15, 2018 2:21 PM
      expanserpb expanserpb is offline
      Junior Member
      Had to make this fix again, did it not get merged into the release and overwritten?
      Reply Reply  
    3. July 15, 2018 8:34 PM
      pegasus pegasus is online now
      VaultWiki Team
      Thanks, looks like this did not get merged in. Pushed into the next version.
      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 10:31 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.