• 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 block embeds in a strange way

    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 block embeds in a strange way

    • Issue Tools
      • View Changes
    1. issueid=3927 August 15, 2014 2:14 PM
      DragonSigh DragonSigh is offline
      Junior Member
      TOC block embeds in a strange way

      Here is the sample of my markup:

      Normal:

      Code:
      [B]RPG Maker VX Ace[/B] (яп. [I]RPGツクールVX Ace[/I]) или [B]RMVXAce[/B] в качестве сокращения — конструктор, выпущенный компанией [WIKI]Enterbrain[/WIKI] в декабре 2011 года, спустя четыре года после [WIKI]RPG Maker VX[/WIKI]. Является обновлённой версией своего предшественника с новыми функциями и возможностями.
      
      [TEMPLATE] Infobox - RPG Maker
      | Изображение = rmvxace_splash_zkG.png
      | Название = RPG Maker VX Ace
      | Версия = 1.02a
      | Разработчик = Enterbrain
      | Издатель = Kadokawa Games (в Японии)
      | Дата_выхода = Япония: 15 декабря, 2011 года
       В мире: 15 марта, 2012 года
      | URL = http://tkool.jp/products/rpgvxace/index.html
      [/TEMPLATE]


      Then I swap places of this two paragraphs.

      Bugged:

      Embeds somewhere inside Template bb-code.

      Code:
      [TEMPLATE] Infobox - RPG Maker
      | Изображение = rmvxace_splash_zkG.png
      | Название = RPG Maker VX Ace
      | Версия = 1.02a
      | Разработчик = Enterbrain
      | Издатель = Kadokawa Games (в Японии)
      | Дата_выхода = Япония: 15 декабря, 2011 года
       В мире: 15 марта, 2012 года
      | URL = http://tkool.jp/products/rpgvxace/index.html
      [/TEMPLATE]
      
      [B]RPG Maker VX Ace[/B] (яп. [I]RPGツクールVX Ace[/I]) или [B]RMVXAce[/B] в качестве сокращения — конструктор, выпущенный компанией [WIKI]Enterbrain[/WIKI] в декабре 2011 года, спустя четыре года после [WIKI]RPG Maker VX[/WIKI]. Является обновлённой версией своего предшественника с новыми функциями и возможностями.
      And we get a TOC inside of this template:





      "Infobox" Template code:

      Code:
      [TABLE] style="margin-left: 1em; margin-right: 0.5em; padding: 0.5em; vertical-align: middle; background-color:#F9F9F9; clear: right; float: right; font-size: 90%; border: 1px solid #AAAAAA;"
      |- 
      | [TABLE] 
       |- 
       | colspan="2" align="center" style="border-width:0px;" | [FILE]Изображение:{{{Изображение}}}|thumb|250px[/FILE]
       |- 
       ! colspan="2" align="center" style="font-size: 150%;" | [b]{{{Название}}}[/b]
       |-
       | colspan="2" align="center" | v{{{Версия}}}
       |-
       | [b]Разработчик[/b]
       | {{{Разработчик}}}
       |-
       | [b]Издатель[/b]
       | {{{Издатель}}}
       |-
       | [b]Дата выхода[/b]
       | {{{Дата_выхода}}}
       |-
       | [b]Сайт[/b]
       | [URL="{{{URL}}}"]ссылка[/URL]
      [/TABLE]
      |-
      [/TABLE]
    Issue Details
    Issue Number 3927
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category BB-Code Parsing
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 4.0.0 RC 1
    Fixed Version 4.0.0 RC 2
    Milestone VaultWiki 4.0 Gold
    Software DependencyvBulletin 4.x w/ ckEditor
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. August 15, 2014 3:00 PM
      pegasus pegasus is offline
      VaultWiki Team
      TOC embeds in between the first two paragraphs it finds (separated by line breaks). Unfortunately there is not a perfect way to automate the TOC positioning, because depending on your choice of styles, the paragraphs or containing elements could render in any number of ways once it gets to the browser (stylesheets, custom styles, etc).

      So if you find that the embed is occurring in an undesirable place, you can tell the TOC NO.
      Code:
      [TOC]NO[/TOC]
      You can then put the TOC wherever you want by using
      Code:
      [TOC][/TOC]
      If you want to be code-efficient, you can combine the two like this:
      Code:
      [TOC]NO|[/TOC]
      Reply Reply  
    2. August 16, 2014 12:42 AM
      DragonSigh DragonSigh is offline
      Junior Member
      Ok. Thanks. It works only if I put two bb-codes together like this:

      Code:
      [TOC]NO[/TOC]
      [TOC][/TOC]
      But TOC now showing at all with only this at the same place:

      Code:
      [TOC]NO|[/TOC]
      Reply Reply  
    3. August 16, 2014 11:06 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed the combination form of the TOC BB-Code in the next release.
      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 2:36 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.