m (Header Nav, prev) |
m (Cleanup) |
||
Line 5: | Line 5: | ||
== Text formatting markup == | == Text formatting markup == | ||
{| | {|{{prettytable}} | ||
!Description | |||
!You type… | |||
!You get… | |||
|- | |- | ||
! colspan="3" align="center" | ''Applies anywhere'' | |||
|- | |- | ||
|Italic text | |Italic text | ||
Line 29: | Line 28: | ||
|<nowiki>no ''markup''</nowiki> | |<nowiki>no ''markup''</nowiki> | ||
|- | |- | ||
! colspan="3" align="center" | ''Only at the beginning of the line'' | |||
|- | |- | ||
|Headings of<br /> | |Headings of<br /> | ||
different sizes | different sizes | ||
| | | | ||
<tt><nowiki>== | <tt><nowiki>==Level 1==</nowiki></tt><br /> | ||
<tt><nowiki>=== | <tt><nowiki>===Level 2===</nowiki></tt><br /> | ||
<tt><nowiki>==== | <tt><nowiki>====Level 3====</nowiki></tt><br /> | ||
<tt><nowiki>===== | <tt><nowiki>=====Level 4=====</nowiki></tt> | ||
| | | | ||
==Level 1== | ==Level 1== |
Revision as of 13:35, 12 July 2007
You can format your text using wiki markup. This consists of normal characters like asterisks, single quotes or equation marks which have a special function in the wiki, sometimes depending on their position. For example, to format a word in italic, you include it in two single quotes like ''this''. Also note that when editing a page there are buttons that can help you if you forget such code, the ones at the top that look like this: By clicking them, an example will appear with the wikitext and text for you to replace.
Text formatting markup
Description | You type… | You get… |
---|---|---|
Applies anywhere | ||
Italic text | ''italic'' | italic |
Bold text | '''bold''' | bold |
Bold and italic | '''''bold & italic''''' | bold & italic |
Escape wiki markup | <nowiki>no ''markup''</nowiki> | no ''markup'' |
Only at the beginning of the line | ||
Headings of different sizes |
==Level 1== |
Level 1Level 2Level 3Level 4 |
Horizontal rule |
---- |
|
Bullet list |
* one |
|
Numbered list |
# one |
|
Mixture of bulleted and numbered lists |
# one |
|
Definition list |
;Definition |
|
Preformatted text |
preformatted text is done with |
preformatted text is done with a space at the beginning of the line |
Paragraphs
MediaWiki ignores normal line breaks. To start a new paragraph, leave an empty line. You can also start a newline with the HTML tag <br />.
HTML
Some HTML tags are allowed in MediaWiki; for example <code>, <div>, <span> and <font>.
Automated Table of Contents
Although an automated Table of Contents will appear on pages with enough headings, sometimes you don't want this. You can force pages to always display a table of contents (for instance if you have only two very long sections) or never display a table of contents (usually for aesthetic purposes).
To force a table of contents, or to change the position of the table of contents, use __TOC__ at the top of your page. To never show a table of contents, use __NOTOC__.
Note that this is not the same as a guide's /Table of Contents subpage. For information on creating and modifying those see Organizing the pages.
More advanced formatting
Beyond the basic text formatting markup shown above, there are some more advanced formatting tricks: