Appearance
Headings & TOC
Section headings
Wrap a line in equals signs. The number of = on both sides must match and sets the level (1 = biggest, 6 = smallest):
= Top level =
== Section ==
=== Subsection ===
====== Smallest ======| You type | Level |
|---|---|
= Title = | 1 |
== Title == | 2 |
=== Title === | 3 |
| … | … |
====== Title ====== | 6 |
Each heading automatically gets:
- An anchor derived from its text (spaces become
_, special characters are dot-encoded), so you can link to it:[[#Section]]on the same page, or[[Page#Section]]from elsewhere. Duplicate heading names get_2,_3, … suffixes. - A section number (
1,1.1,1.2,2, …), computed from the heading hierarchy. - Collapsibility — click a heading to fold or unfold everything under it.
Table of contents
A table of contents is generated automatically once a page has 4 or more headings, placed just before the first heading. You can override that with a behavior switch — type one of these anywhere on the page (they're removed from the output):
| Switch | Effect |
|---|---|
__TOC__ | Force the TOC on and pin it here, exactly where you put the marker. If you write it more than once, the first wins and the rest are dropped. |
__FORCETOC__ | Force the TOC on even with fewer than 4 headings (in the default position). |
__NOTOC__ | Suppress the TOC entirely. |
The TOC renders as a collapsible Contents box listing every heading with its number.
Recognized but currently no-ops
__NOGALLERY__, __NOEDITSECTION__, __NOCONTENTCONVERT__, and __NOTITLECONVERT__ are accepted and stripped, but have no effect in this version.