MediaWiki Markup
Introduction
Cheat sheet on MediaWiki Markup. Also known as wiki code.
Basic
Bold
'''bold'''
Headers
Use header 2 (== Header 2==), 3 (=== Header 3 ===), or 4 (==== Header 4 ====) in documents. Avoid going deeper, if you feel you need to, it could mean you should separate contents into another page.
It is recommended to skip header 1 as it matches the header of the document on top of the page.
Italic
''italic''
Alias
Allows you to put words on the page that is searchable by the search bar but doesn't actually appear on the page.
<div style="display: none"> MediaWiki Markup Guide </div>
Category
Categories are like tags. You can mark several pages with a category. The marker would appear on the bottom of the page. You can click on the category to see a list of pages marked with the same category.
[[Category:Certificate]]
Images
Template:
[[File:filename.extension|options|caption]]
Extension have been added allowing you to reference any image from Wikimedia Commons[1]
Example wiki code:
[[File:Ramsau_bei_Berchtesgaden_(DE),_Milchstraße_über_Hochkalter_&_Hintersee_--_2024_--_1018-50.jpg|100px|center|Night sky]]
Result:

Gallery
Gallery Template
<gallery widths=700 heights=600 mode="packed-hover"> File:Zelle-age-error.png|frame|center|Have to be above 16 File:Invalid Address.png|frame|center|Invalid address error </gallery>
Gallery Types
- packed-hover
- slideshow
Tables
Example wiki code:
{| class="wikitable" style="margin:auto"
|+ Caption text
|-
! Header text !! Header text !! Header text
|-
| Example || Example || Example
|-
| Example || Example || Example
|-
| Example || Example || Example
|}
Result:
| Header text | Header text | Header text |
|---|---|---|
| Example | Example | Example |
| Example | Example | Example |
| Example | Example | Example |
Link
Link Page
Example wiki code:
[[Link Name]]
Result:
Links to a page. If the page doesn't exist, the link text will be red. In this scenario, you can still click on the link to navigate to the page and start adding content to the page.
Link Page As
Example wiki code:
[[Java (Programming Language)|Java]]
Result:
Use in cases where the context of the link makes sense with a shorter name. Also, if you want to format the text to make it fit better in a sentence, utilizing to change capitalization and pluralization.
External Links
Example wiki code:
[https://www.mediawiki.org/wiki/MediaWiki MediaWiki]
Result:
Allows you to link to an external page. You'll see an outward arrow indicating that you're leaving the website.
Reference
Example wiki code:
Sigmund Freud dissected hundreds of eels hoping to find one with a male sex organ<ref>[https://en.wikipedia.org/wiki/Sigmund_Freud Sigmund Freud]</ref>
Result:
Sigmund Freud dissected hundreds of eels hoping to find one with a male sex organ[2]
Note: If your page has references, the references, will automatically pool to the bottom of the page. It is recommended that you add a dedicated section for your references like so:
== References == <references />