Longer articles should be divided into sections using the section header syntax.
Creating sections[]
Creating sections is done using two to six equal signs (==, ===, ====, =====, or ======) on each side of the header text (see Editing).
==Section==
===Subsection===
====Sub-subsection====
=====Sub-sub-subsection=====
======Sub-sub-sub-subsection======
These headers are equivalent to the HTML tags H2 through H6. 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 and placed immediately before the first section header. It may be removed by adding at any point in the wikitext. It may be placed at a different point in the article by adding
to the wikitext at the spot you wish it to display. To force the table of contents to display floated to the right, add
{{TOCright}}
to the wikitext in the spot you wish it to display.
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]]).
Editing individual sections[]
You may edit a single section without editing opening the rest of the article in the editor by clicking on the edit link displayed next to each section header. 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 a previous revision of a page is displayed. 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 are part of the article as a whole, rather than just part of a section of the article. 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[]
Help |
---|