Wikitext cheat sheet

From RetroWikipedia
Revision as of 16:22, 3 August 2025 by D2sk (talk | contribs) (Created page with "= Wikitext Cheat Sheet = == Text Formatting == * ''Italic'' → 2 apostrophes: <code>''Italic''</code> * '''Bold''' → 3 apostrophes: <code>'''Bold'''</code> * '''''Bold Italic''''' → 5 apostrophes: <code>'''''Bold Italic'''''</code> * <nowiki><nowiki>Text</nowiki></nowiki> → Renders raw wikitext * <code><nowiki>Code</nowiki></code> → For inline code (use <nowiki><syntaxhighlight></nowiki> for blocks) == Headings == Use equal signs (=) around text: <pre> = Headi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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
  1. Ordered list: # Step 1
    • Mixed list: #* Sub-step

Links

Media

Tables

{| class="wikitable"
! Header 1 !! Header 2
|-
| Row 1, Cell 1 || Row 1, Cell 2
|-
| Row 2, Cell 1 || Row 2, Cell 2
|}

Templates

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.