Menu

MediaWiki_Markup

Hugh Greene

This page forms a quick reference for editing. It is based of the more
detailed version at
Wikipedia.

Text Formatting

When making a website, you can format the contents of that page using
HTML tags. A tag consists of two parts; the start and the end. Different
tags have different effects on text. An example of a HTML tag is
<b>your text</b>, which appears as your text. Wiki markup uses
tags, but not neccessarily the same ones as HTML. For example, although
<b>your text</b> is HTML code, it will still produce your text if
you put it into a Wiki page. Below is a general outline of the Wiki
syntax; some code uses the HTML tag structure.

Format & Appearance

Code

Bold

'''text'''

Italics

''text''

Underline

<ins>text</ins>

Strikethrough

<del>text</del>

Indent

:text
Used when replying to a message on a Wiki page.

Unordered List

*text

Ordered List

#text

Code

<code>text</code>

Syntax highlighted text

<syntaxhighlight lang="text">text</syntaxhighlight>
Other languages you might want to use are edl, html4strict, html5, c, and cpp. All supported languages can be found here.

Link Type Code Preview
Link to page on wiki [Main_Page\](Main Page) Main Page
Link to page on wiki (renamed) [Main_Page\](Home) Home
Link to external page (with external page icon) [http://www.wikipedia.org Wikipedia] Wikipedia
Link to external page (without external page icon) <span class="plainlinks">[http://www.wikipedia.org Wikipedia]</span> Wikipedia
Link to non-existing page on wiki [NONEXISTINGPAGE\](NONEXISTINGPAGE) NONEXISTINGPAGE

See here
for more link types.

Tables

{| border="1" class="wikitable"
|+ Heading
! Column
! Column
! Column
|-
! Row
| Example || Example
|-
! Row
| Example
| Example
|}

Produces:

Column Column Column
Row Example Example
Row Example Example

Heading

Similarly,

{| class="wikitable"
|+ Heading
! Column !! Column !! Column
|-
| Row || Example || Example
|-
| Row || Example || Example
|-
| Row || Example || Example
|}

Produces:

Column Column Column
Row Example Example
Row Example Example
Row Example Example

Heading

See here for more information
about tables.

See Also


Related

Wiki: Article_maintenance
Wiki: Contribution_Guidelines
Wiki: Main_Page

MongoDB Logo MongoDB