No categories assigned

Table of Contents

Revision as of 15:55, 27 June 2017 by FlorianFuessl (talk | contribs)

A table of contents can help you to bring order in a long article in your wiki. It is automatically created if an article uses more than three header tags.

Using Behavior Switches to configure the table of contents

If you want to add a table of contents to an article with fewer headlines, you can use the behavior switch __TOC__. The table of contents will then be created at the spot in the article where you entered the tag.
Please note: You can also use this feature in articles with already existing tables of contents if you want to move the table to another part in the article (e.g. if you want to give the user a general introduction to a topic first, and then display the table of contents afterwards).

Other helpful behavior switches

__NOTOC__: Hides the table of contents in an article.
__FORCETOC__: Forces the table of contents to appear at its normal position (before the first header). Overrides __NOTOC__.

Change the depth of your tables of contents

Template:Beta-en

TOC_limit löst folgendes Problem:
Sie suchen eine bestimmte Stelle in einem Artikel, also sehen Sie im Inhaltsverzeichnis nach, unter welchen Punkt sich Ihre Information befinden könnte.
Der Artikel ist jedoch so lang, bzw. so stark gegliedert, sodass Sie bereits zum durchsehen des Inhaltsverzeichnisses eine gefühlte Ewigkeit brauchen würden. Die TOC limit Vorlage kürzt Ihr Inhaltsverzeichnis auf die gewünschte Oberpunktebene und ermöglicht so dem Leser ein übersichtlicheres Inhaltsverzeichnis.
Die Überschriften innerhalb der Seite bleiben erhalten, auch wenn sie nicht mehr im Inhaltsverzeichnis angezeigt werden.



Um dieses Tag nutzen zu können müssen sie jedoch zunächst einige Einstellungen vornehmen, sofern dies noch nicht von Ihrem zuständigen Administrator schon durchgeführt wurde:

1.
Das Template "Vorlage:TOC limit" muss erstellt werden: Eins.jpg
Fügen Sie nun folgenden Inhalt ein:

<div class="toclimit-{Template:1Template:TOC limit


1 Speisekarte
1.1 Frühstück
1.2 Mittagsgerichte
2 Öffnungszeiten

Beispiel mit unsauberer Gliederung

Werden Überschriftenebenen ausgelassen, werden die Überschriften dennoch dem Inhaltsverzeichnis hinzugefügt und fortlaufend nummeriert. In diesem Fall entspricht die Zahl des Parameters nicht mehr der Zahl der Überschriftenebene.

Mit

 {{TOC limit}}

<pre>== Speisekarte ==
==== Frühstück ====
=== Mittagsgerichte ===
== Anfahrt ==

wird trotzdem zu

1 Speisekarte
1.1 Frühstück
1.2 Mittagsgerichte
2 Anfahrt

da das Inhaltsverzeichnis zwei Gliederungsebenen anzeigt, auch wenn diese nicht semantisch korrekt direkt aufeinander folgen.

Attachments

Discussions