Difference between revisions of "Help:Basic Formatting"
Line 26: | Line 26: | ||
<pre> | <pre> | ||
*Bread | *Bread | ||
+ | *Dairy | ||
+ | **milk | ||
+ | **cheese | ||
+ | **eggs | ||
+ | *Fruits | ||
+ | **Apples | ||
+ | ***Red Delicious | ||
+ | ***Yellow Delicious | ||
+ | ***Granny Smith | ||
+ | **Bananas | ||
+ | **Cherries | ||
+ | *Vegetables | ||
+ | **Tomatoes | ||
+ | **Cucumbers | ||
+ | **Lettuce | ||
+ | </pre> | ||
+ | |||
+ | will produce this output: | ||
+ | |||
+ | *Dairy | ||
+ | **milk | ||
+ | **cheese | ||
+ | **eggs | ||
+ | *Fruits | ||
+ | **Apples | ||
+ | ***Red Delicious | ||
+ | ***Yellow Delicious | ||
+ | ***Granny Smith | ||
+ | **Bananas | ||
+ | **Cherries | ||
+ | *Vegetables | ||
+ | **Tomatoes | ||
+ | **Cucumbers | ||
+ | **Lettuce | ||
+ | |||
+ | ===Numbered Lists=== | ||
+ | To create a numbered list, precede each item with a hash (#). The hash must be the first item on the line; do not precede it with spaces or other characters. | ||
+ | |||
+ | Like bullet lists, numbered lists can also be nested. For example, this code: | ||
+ | |||
+ | <pre> | ||
*Dairy | *Dairy | ||
**milk | **milk |
Revision as of 23:31, 5 November 2013
Mediawiki uses fairly simple markup to format text on a page.
Contents
Type Formatting
Bold
To make type bold, add three apostrophes (''') before and after it.
Italic
To make type italic, add two apostrophes ('') before and after it.
Bold and Italic
To make type bold and italic, add five apostrophes (''''') before and after it.
Headings
To create a level two heading, place the heading text on a line all by itself, with two equal signs (==) before and after it. The equal signs must be the first character on the line. Do not precede them with spaces or other characters.
A level 3 heading is created with three equal signs, a level 4 with four equal signs, and so on. Headings are available through level 6.
Do not use level 1 headings, as these are reserved for page titles.
Lists
Bullet Lists
To make a bullet list, precede each item with an asterisk (*). The asterisk must be the first character on the line. Do not precede it with spaces or other characters.
To created a nested list, precede nested items with two asterisks (**).
This code:
*Bread *Dairy **milk **cheese **eggs *Fruits **Apples ***Red Delicious ***Yellow Delicious ***Granny Smith **Bananas **Cherries *Vegetables **Tomatoes **Cucumbers **Lettuce
will produce this output:
- Dairy
- milk
- cheese
- eggs
- Fruits
- Apples
- Red Delicious
- Yellow Delicious
- Granny Smith
- Bananas
- Cherries
- Apples
- Vegetables
- Tomatoes
- Cucumbers
- Lettuce
Numbered Lists
To create a numbered list, precede each item with a hash (#). The hash must be the first item on the line; do not precede it with spaces or other characters.
Like bullet lists, numbered lists can also be nested. For example, this code:
*Dairy **milk **cheese **eggs *Fruits **Apples ***Red Delicious ***Yellow Delicious ***Granny Smith **Bananas **Cherries *Vegetables **Tomatoes **Cucumbers **Lettuce
will produce this output:
- Dairy
- milk
- cheese
- eggs
- Fruits
- Apples
- Red Delicious
- Yellow Delicious
- Granny Smith
- Bananas
- Cherries
- Apples
- Vegetables
- Tomatoes
- Cucumbers
- Lettuce