Help:Wikitext Guide

Revision as of 01:39, 10 August 2007 by Cfremon (talk | contribs) (→‎Table of Contents: Adding Forced TOC code)

Wikitext language (also known as Wiki markup) can be used to change the format and layout of text in Wiki articles.

This article contains examples and explanations of commonly used Wikitext language.

Basic Character and Paragraph Formatting

Basic formatting helps readers easily see warnings, code, and other important information. You can apply more than one format to text.

Name Wikitext Example
Italic ''Italic'' Italic
Bold '''Bold''' Bold
Code Use a single space before a line of code
Code
New paragraph Use a single blank line before the start of a new paragraph

Use a single blank line

before the start of a new paragraph

Headings

Markup for headings should be used within your article in order to break-up and organize sections of information. Because the title of the page is already displayed in Heading 1 markup at the top of the page, any headings you include should begin with Heading 2 markup.

Name Wikitext Example
Heading 1 =Heading 1=
Heading 1
Heading 2 ==Heading 2==
Heading 2
Heading 3 ===Heading 3===
Heading 3
Heading 4 ====Heading 4====
Heading 4

Table of Contents

Using four headings or more within an article will automatically generate a Table of Contents (TOC). This TOC will appear above the first heading in the document.

To force a TOC to appear in an article with less than four headings:

__FORCETOC__

To place this TOC at a specific point in the document, use this markup at the insertion point:

 <nowiki> __TOC__

To eliminate a TOC from your article, use the following markup:

__NOTOC__

Linking to Sections

You can also link directly to a section that has a heading using the following markup:

[[Article Name#Heading Name]]

For example, to link to the Sections and Headings section of the Wikitext article:

[[Wikitext#Sections and Headings]]

Lists

Lists can use numbers, bullets, or indents. If a numbered list is interrupted, the next numbered item will start at 1. You can mix and match Wikitext to create bulleted lists within numbered lists, or in order to indent a bulleted or numbered list. (E.g. #*Bulleted list within a numbered list, ::*Double indented bullet, etc.)

Name Wikitext Example
Numbered list #List item
  1. List item
Numbered list, second level ##Second level list item
  1. Second level list item
Numbered list, third level ###Third level list item
  1. Third level list item
Bullet *Bullet item
  • Bullet item
Bullet, second level **Second level bullet item
  • Second level bullet item
Bullet, third level ***Third level bullet item
  • Third level bullet item
Indent :Indented text
Indented text
Indent, second level ::Second level indent
Second level indent
Jump to: navigation, search