Difference between revisions of "Help:Basic Formatting"
m |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[http://www.mediawiki.org Mediawiki] uses fairly simple markup to format text on a page. | [http://www.mediawiki.org Mediawiki] uses fairly simple markup to format text on a page. | ||
+ | |||
+ | ==Paragraphs== | ||
+ | ===Creating Paragraphs=== | ||
+ | To create a new paragraph, press "Enter" twice. There should be a blank line between each paragraph when editing. | ||
+ | |||
+ | ===Indenting Lines=== | ||
+ | To indent a paragraph, precede it with a colon (:). The colon should be the first character on the line; do not precede it with spaces or other characters. | ||
+ | |||
+ | This code: | ||
+ | |||
+ | <pre> | ||
+ | First line | ||
+ | :Second line | ||
+ | ::Third line | ||
+ | :::Fourth line | ||
+ | ::::Fifth line | ||
+ | :::::Sixth line | ||
+ | ::::::Seventh line | ||
+ | </pre> | ||
+ | |||
+ | will produce this output: | ||
+ | |||
+ | <div class="sample"> | ||
+ | First line | ||
+ | :Second line | ||
+ | ::Third line | ||
+ | :::Fourth line | ||
+ | ::::Fifth line | ||
+ | :::::Sixth line | ||
+ | ::::::Seventh line | ||
+ | </div> | ||
==Type Formatting== | ==Type Formatting== | ||
Line 45: | Line 76: | ||
will produce this output: | will produce this output: | ||
+ | <div class="sample"> | ||
*Dairy | *Dairy | ||
**milk | **milk | ||
Line 60: | Line 92: | ||
**Cucumbers | **Cucumbers | ||
**Lettuce | **Lettuce | ||
+ | </div> | ||
+ | |||
+ | ===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 | ||
+ | ##milk | ||
+ | ##cheese | ||
+ | ##eggs | ||
+ | #Fruits | ||
+ | ##Apples | ||
+ | ###Red Delicious | ||
+ | ###Yellow Delicious | ||
+ | ###Granny Smith | ||
+ | ##Bananas | ||
+ | ##Cherries | ||
+ | #Vegetables | ||
+ | ##Tomatoes | ||
+ | ##Cucumbers | ||
+ | ##Lettuce | ||
+ | </pre> | ||
+ | |||
+ | will produce this output: | ||
+ | |||
+ | <div class="sample"> | ||
+ | #Dairy | ||
+ | ##milk | ||
+ | ##cheese | ||
+ | ##eggs | ||
+ | #Fruits | ||
+ | ##Apples | ||
+ | ###Red Delicious | ||
+ | ###Yellow Delicious | ||
+ | ###Granny Smith | ||
+ | ##Bananas | ||
+ | ##Cherries | ||
+ | #Vegetables | ||
+ | ##Tomatoes | ||
+ | ##Cucumbers | ||
+ | ##Lettuce | ||
+ | </div> | ||
+ | |||
+ | ==Adding HTML== | ||
+ | HTML items such as <nowiki><sub>, <sup>, and <div></nowiki> can be added directly to each page. | ||
+ | |||
+ | The blue boxes around the sample output, for example, are created by adding <nowiki><div class="sample"></nowiki> before the text and <nowiki></div></nowiki> after it. | ||
+ | |||
+ | To see a complete list of the custom classes that can be used in this way, see the [[:MediaWiki:Common.css|custom style sheet]] for this wiki. |
Latest revision as of 23:46, 5 November 2013
Mediawiki uses fairly simple markup to format text on a page.
Contents
Paragraphs
Creating Paragraphs
To create a new paragraph, press "Enter" twice. There should be a blank line between each paragraph when editing.
Indenting Lines
To indent a paragraph, precede it with a colon (:). The colon should be the first character on the line; do not precede it with spaces or other characters.
This code:
First line :Second line ::Third line :::Fourth line ::::Fifth line :::::Sixth line ::::::Seventh line
will produce this output:
First line
- Second line
- Third line
- Fourth line
- Fifth line
- Sixth line
- Seventh line
- Sixth line
- Fifth line
- Fourth line
- Third line
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
Adding HTML
HTML items such as <sub>, <sup>, and <div> can be added directly to each page.
The blue boxes around the sample output, for example, are created by adding <div class="sample"> before the text and </div> after it.
To see a complete list of the custom classes that can be used in this way, see the custom style sheet for this wiki.