MediaWiki Markup
Jump to navigation
Jump to search
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 | Additional notes | |
---|---|---|---|
Bold | '''text'''
|
||
Italics | ''text''
|
Use for variable names | |
Underline | <ins>text</ins>
|
||
<del>text</del>
|
Use this when removing something you said in a discussion, without removing it entirely | ||
|
:text
|
Use this when replying to someone's message on a Wiki Discussion page | |
|
*text
|
Use **multiple asterisks to change the level of the list
| |
|
#text
|
Use ##multiple hash symbols to change the level of the list
| |
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. |
Hyperlinks
Link Type | Code | Preview |
---|---|---|
Link to page on wiki | [[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 |
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 |
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 |
See here for more information about tables.