Wikitext cheat sheet
Wikitext Cheat Sheet
Text Formatting
- Italic → 2 apostrophes:
Italic
- Bold → 3 apostrophes:
Bold
- Bold Italic → 5 apostrophes:
Bold Italic
- <nowiki>Text</nowiki> → Renders raw wikitext
Code
→ For inline code (use <syntaxhighlight> for blocks)
Headings
Use equal signs (=) around text:
= Heading 1 = == Heading 2 == === Heading 3 ===
Lists
- Unordered list:
* Item
- Nested list:
** Sub-item
- Ordered list:
# Step 1
- Mixed list:
#* Sub-step
- Mixed list:
Links
- Internal page:
PageName
- Custom text:
Display Text
- Section link:
PageName#Section
- External link:
[1]
- External w/ text:
Label
Media
- Image:
Caption - Audio:
File:Audio.ogv
- Video:
Tables
{| class="wikitable" ! Header 1 !! Header 2 |- | Row 1, Cell 1 || Row 1, Cell 2 |- | Row 2, Cell 1 || Row 2, Cell 2 |}
Templates
- Use a template:
Template:TemplateName
- With parameters:
Template:TemplateName
Block Elements
- Horizontal rule:
----
- Indent text:
:
at the start of a line - Definition list:
; Term : Definition
Code Highlighting
Use syntax highlighting for code blocks:
<syntaxhighlight lang="c"> int main() { return 0; } </syntaxhighlight>
Magic Words
- Hide Table of Contents:
- Force TOC:
- Current page name:
Wikitext cheat sheet
- Current user:
Template:USER
Category Tags
Add pages to categories:
Useful HTML Tags
Allowed: <div>
, <span>
, <br />
, <pre>
, <small>
, <sub>
, <sup>
Tips
- Use <nowiki></nowiki> to display literal wiki markup
- Combine templates with parser functions for dynamic content
- Use the Preview button before saving!
This cheat sheet is for contributors helping preserve digital history on RetroWikipedia.