This is the foundation for making your text stand out.
Feature
Syntax
Example Input
Example Output
Italic Text
Two apostrophes
This text is italic.
This text is italic.
Bold Text
Three apostrophes
This text is bold.
This text is bold.
Bold & Italic
Five apostrophes
This text is both.
This text is both.
Inline Code
<code> tags
Use the <code>git commit</code> command.
Use the git commit command.
Strikethrough
<s> tags
<s>This is no longer valid.</s>
<s>This is no longer valid.</s>
2. Headings and Sections
Headings structure your document and automatically create a Table of Contents (TOC). The page title is Level 1, so you should always start your own headings at Level 2.
Level
Syntax
Example Output
Level 2
== Section Heading ==
<h2>Section Heading</h2>
Level 3
=== Subsection Heading ===
<h3>Subsection Heading</h3>
Level 4
==== Sub-subsection ====
<h4>Sub-subsection</h4>
Note: A Table of Contents is automatically generated once you have 4 or more headings.
3. Lists
Unordered (Bulleted) Lists
Use an asterisk (*) at the beginning of each line. Use more asterisks for sub-levels.
Syntax:
* First item
* Second item
** Sub-item 2.1
** Sub-item 2.2
* Third item
Output:
First item
Second item
Sub-item 2.1
Sub-item 2.2
Third item
Ordered (Numbered) Lists
Use a hash symbol (#) at the beginning of each line.
Syntax:
# First step
# Second step
## Sub-step 2.1
# Third step
This must be the very first line of a page. It makes the current page automatically forward the user to the target page. Useful for handling synonyms or acronyms.
Categories:
Adds the page to a specific category, usually displayed at the very bottom of the page. This is crucial for organizing content.
Preventing Wiki Markup:<nowiki>
To show wikitext syntax without it being processed, enclose it in <nowiki> tags.
Example: <nowiki>This is not bold</nowiki> will display as This is not bold.
Footnotes/References:<ref> and <references />
Place a citation or note inside <ref> tags directly after the statement it supports.
Create a “References” section at the bottom of your article and place a single <references /> tag there. MediaWiki will automatically collect all your <ref> tags and list them in that spot.
Syntax:
The sky is blue.<ref>Source: "A Study of Atmospheres", page 12.</ref> The sun is bright.<ref>Source: "Facts about Stars", chapter 2.</ref>
== References ==
<references />
This covers about 95% of what you’ll need for everyday document writing on a MediaWiki site. A great tip is to find a well-formatted page on the wiki you’re using and click “Edit” or “View source” to see exactly how it was done.