• 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 3.x Series
    • Bug
    • TOC ist not working

    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 ist not working

    • Issue Tools
      • View Changes
    1. issueid=2206 January 23, 2011 10:12 AM
      rcforum rcforum is offline
      New Member
      TOC ist not working
      TOC will be shown up but is empty

      TOC will be created but without content in articles.
      Is there a fix out or a workaround?
    Issue Details
    Issue Number 2206
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Wiki Pages
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 3.0.9
    Fixed Version 3.0.10
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. January 23, 2011 3:54 PM
      pegasus pegasus is offline
      VaultWiki Team
      I think we fixed this as part of this report: http://www.vaultwiki.org/issues/2189/

      Please try to create an article here that has the same number and types of headings as your article that you're having problems with.
      Reply Reply  
    2. January 24, 2011 3:56 PM
      rcforum rcforum is offline
      New Member
      I use the following template to create an article

      Code:
      [table]style="width:100%;"
      |-
      |style="width:80%; vertical-align:top;"|[table]style="width:100%;"
      |-
      |style="width:25%; vertical-align:top;"|[TOC][/TOC][TOC]NO[/TOC][b][/b]
      |style="width:75%; vertical-align:middle;"|[div] style="margin-left:15px"|[comment] Einleitungstext [/comment]{{{Einleitung}}}[/div][b][/b]
      |-
      |colspan="2"style="width:100%; vertical-align:top;"|[h=2]Beschreibung[/h]
      [comment] Modell-Beschreibung [/comment]{{{Beschreibung}}}
      [comment] Links [/comment][h=2]Links[/h]
      [LIST]{{{Links}}}[/LIST]
      [comment] Quellenangabe [/comment][h=2]Quellen[/h]{{{Quellen}}}
      [comment] Kategorie [/comment][Kategorie]{{{Kategorie|}}}[/Kategorie]
      [/table][b][/b]
      |style="width:20%; vertical-align:top;"|[vorlage]Infobox-Auto-Modelle
      [comment] Modelldaten [/comment]
      |Name={{{Name}}}
      |Bild={{{Bild}}}
      |Kurzname={{{Kurzname}}}
      |Chassis={{{Chassis}}}
      |Hersteller={{{Hersteller}}}
      |Artikelnummer={{{Artikelnummer}}}
      |Typ={{{Typ}}}
      |Maßstab={{{Maßstab}}}
      |Modellart={{{Modellart}}}
      |Antriebsart={{{Antriebsart}}}
      |Vertrieb={{{Vertrieb}}}
      |PreisEVP={{{PreisEVP}}}
      [comment] Antriebstechnik [/comment]
      |Motor={{{Motor}}}
      |Antriebstyp={{{Antriebstyp}}}
      [comment] Abmessungen [/comment]
      |Länge={{{Länge}}}
      |Breite={{{Breite}}}
      |Höhe={{{Höhe}}}
      |Radstand={{{Radstand}}}
      |Spurbreite={{{Spurbreite}}}
      |Räder={{{Räder}}}
      |Felgenaufnahme={{{Felgenaufnahme}}}
      |Tankinhalt={{{Tankinhalt}}}
      |Gewicht={{{Gewicht}}}
      [/vorlage]
      [/table]
      [noinclude][Kategorie]Vorlage-Auto-Modelle[/Kategorie][/noinclude]
      Articles based on that template have e.g this code:

      Code:
      [vorlage]Seite-Auto-Modelle
      [comment] Seite [/comment]
      |Einleitung=
      Hier kann eine kurze Einleitung zum Modell stehen.
      |Beschreibung=Hier beginnt die Modellbeschreibung.
      Diese Beschreibung könnte auch Unterpunkte enthalten.
      [comment] Überschrift Ebene 3 [/comment]
      [h=3]Überschrift 2.1[/h]
      Text zu Unterpunkt 2.1
      [h=3]Überschrift 2.2[/h]
      Text zu Unterpunkt 2.2
      [comment] Bei Links muss am Anfang einer Zeile immer "[*]" stehen. [/comment]
      |Links=[*][http://www.rc-forum.de RC-Forum]
      |Quellen=Quellenangaben
      [comment] Kategorie unbedingt angeben: Car-Onroad, Car-Rallye, Car-Offroad [/comment]
      |Kategorie=Car-Onroad
      [comment] Infobox [/comment]
      [comment] Listenzeile-Auto-Modelle [/comment]
      [comment] [vorlage] [/comment]
      |Name=
      |Bild=
      |Kurzname=
      |Chassis=
      |Hersteller=
      |Artikelnummer=
      |Typ=
      |Maßstab=
      |Modellart=
      |Antriebsart=
      |Vertrieb=
      |PreisEVP=
      |Bewertung=
      [comment] Antriebstechnik [/comment]
      |Motor=
      |Antriebstyp=
      [comment] Diese Zeile kann durch einen weiteren Zeilenblock ersetzt werden. [/comment]
      [comment] [/vorlage] [/comment]
      [comment] Abmessungen [/comment]
      |Länge=
      |Breite=
      |Höhe=
      |Radstand=
      |Spurbreite=
      |Räder=
      |Felgenaufnahme=
      |Tankinhalt=
      |Gewicht=
      [/vorlage]
      [h=3]x[/h]
      [h=3]x[/h]
      With the last 2 lines in the article i get the first 2 headlines, without this 2 lines i get only an empty TOC. This behavior is very strange. The problems are always the same, code will not work in nested templates or parameters of templates.
      Reply Reply  
    3. January 24, 2011 6:30 PM
      rcforum rcforum is offline
      New Member
      In articles TOC has also no content if i use headlines in tables
      Reply Reply  
    4. January 24, 2011 11:06 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed for the next release. In vault/functions/postbit.php, find:
      Code:
      			'#\<h([1-6]) class="vw-head" id="vw-head-\d+"\>\<span class="top_link"\>.*\<\/h\1\>#siU',
      Replace with:
      Code:
      			'#\<h([1-6]) class="vw-head(?: ignore)?" id="vw-head-\d+"\>\<span class="top_link"\>.*\<\/h\1\>#siU',
      The missing "ignore" class was added to disable editing of sections that appear inside templates, since they technically aren't part of the immediate source.

      The rest is just discussing an issue I ran into investigating this that you may have already fixed in your templates, but wasn't in mine. It may or may not apply to you and is included here for reference.

      ---
      Note that if you insert a multi-line parameter (by hard return, not word wrap) into a table cell that has single-line separator syntax (||), the table will not render as you expect. Instead, you should always start table cells in templates on their own line to avoid this possibility.

      Example:
      Code:
      [table]
      |-
      | {{{Text1}}} takes up
      more than one line || Text 2
      [/table]
      In this case the || are treated literally. This conforms to the table markup used in MediaWiki:
      Consecutive table data cells may be added on same line separated by double marks (||)
      - http://www.mediawiki.org/wiki/Table#...markup_summary
      Reply Reply  
    5. January 25, 2011 5:23 PM
      rcforum rcforum is offline
      New Member
      Thanks for that TOC fix it works for me
      and also for the hint in multi line data.

      Now I have a new problem with images, but this is a different story
      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:11 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.