FANDOM


Help icon  Contents → Section

Longer articles should be divided into sections using the section header syntax.

Creating sections

Creating sections is done using two or more equal signs (==) on each side of the header text (see Editing).

==Section==

===Subsection===

====Sub-Subsection====

These headers are equivalent to the HTML tags H2, H3, and H4. (The H1 tag is the article title itself.)

Table of contents

For articles that have three or more headers, a table of contents is automatically generated by the wiki engine based on the section headings.

The table of contents may be turned off in one of the following ways:

  • For a user, the preferences may be set to leave the table of contents turned off.
  • For a single article, in the edit box the code __NOTOC__ may be added anywhere in the article text, and the table of contents will be suppressed.

The table of contents will be placed immediately before the first section header. You are strongly encouraged to put some (short) introductory article text before the first header.

A user may set the preferences to number the sections automatically.

Section linking

You can use section linking to link to a specific section within the same article. Use the code [[#section name|displayed text]]. If there are two (or more) sections with identical names, the second section will be identified with a _2 marker to distinguish it from the first section. The third section will have a _3, and so forth.

To link to a specific section on a separate page, use the same format, but add the page name first (using [[page_name#section_name|displayed text]]).

Section linking does not work on redirect pages. You may use it anyway for purposes of clarification, but the reader will not be automatically redirected to the specific section of the new page.

Editing individual sections

Sections may be edited separately if the section editing feature is activated in your preferences. Each section will have its own edit link that will single out only that one section for editing.

This feature is most convenient for long and complicated articles, and for browsers that are restricted to the form field size limit.

Section editing does not work when the page is displayed with a table of differences between two versions (i.e. changes, current, diff, and last). Only the current revision may be edited by section.

Horizontal divider

Note that the horizontal divider, traditionally used to divide a page into sections, does not have that explicit purpose in sections of wiki articles. Instead, the divider bar is used to separate two or more meanings of a word or term that are listed on the same page.

Horizontal dividers are not recognized by the table of contents generator and do not initiate separate sections.

See also

"See also" sections

If an article is divided into sections and ends with one or more "see also" links that are relevant to the subject of the entire article, the links should be placed in a separate "See also" section at the end. This helps to make it clear that the links follow from the article as a whole, rather than just the last section. Placing the "see also" links in a separate section also adds this section to the table of contents, making it more obvious to the reader right from the start that relevant information on the subject is also available elsewhere.

A "see also" link that is relevant to just one section of the article should not be placed in its own section, but should be placed on an indented line within the relevant section with the "see also" highlighted in bold. However, if there is a number of "see also" links relevant to the section they may, for tidiness, be placed in a sub-section.

See also

This page will give you an idea of what some of the most basic text formatting looks like. To figure out how to actually perform this formatting, please see these instructions.

Headings

Break up long articles into sections to help the reader stay interested. To do this, use headings.

Format option What it will look like
Normal text Text in a regular paragraph format
Heading 2

is the highest (listed) level of paragraph formatting. This is meant for major section headings.

Heading 3

is a sub-header and can be used as a sub-section heading

Heading 4

is a smaller sub-header

Heading 5
is even smaller
Heading 6
is the smallest sub-header option

Lists

Lists can help to visually group related content and may be numbered or have bullet points.

  • Numbers: A numbered list will look like this:
  1. First item
  2. Second item
  3. Third item
  • Bullets: A bullet list will look like this:
  • First item
  • Second item
  • Third item

Code

Monospace text or preformatted text may be suitable for code or raw data.

Format option What it will look like
Code Inline technical text that should be displayed in a fixed-width font
Preformatted
A large amount of text that should be displayed in a fixed-width font

See also

Further help and feedback

Community content is available under CC-BY-SA unless otherwise noted.