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.
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 (||)
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.