---
name: mediawiki-wikitext
description: MediaWiki Wikitext markup language for Wikipedia and wiki-based sites. Use when creating or editing wiki articles, generating wikitext content, working with wiki tables/templates/references, or converting content to wikitext format. Triggers on requests mentioning Wikipedia, MediaWiki, wikitext, wiki markup, or wiki article creation.
---
# MediaWiki Wikitext
Generate and edit content using MediaWiki's wikitext markup language.
## Quick Reference
### Text Formatting
```wikitext
''italic'' '''bold''' '''''bold italic'''''
inline code subscript superscript
strikethrough underline
```
### Headings (line start only, avoid level 1)
```wikitext
== Level 2 ==
=== Level 3 ===
==== Level 4 ====
```
### Lists
```wikitext
* Bullet item # Numbered item ; Term
** Nested ## Nested : Definition
```
### Links
```wikitext
[[Page Name]] Internal link
[[Page Name|Display Text]] With display text
[[Page Name#Section]] Section link
[https://url Display Text] External link
[[File:image.jpg|thumb|Caption]] Image
[[Category:Name]] Category (place at end)
```
### Table
```wikitext
{| class="wikitable"
|+ Caption
|-
! Header 1 !! Header 2
|-
| Cell 1 || Cell 2
|}
```
### Templates & Variables
```wikitext
{{TemplateName}} Basic call
{{TemplateName|arg1|name=value}} With arguments
{{{parameter|default}}} Parameter (in template)
{{PAGENAME}} {{CURRENTYEAR}} Magic words
```
### References
```wikitext
TextCitation here
Citation Named reference
Reuse reference
{{Reflist}} Display footnotes
```
### Special Tags
```wikitext
preformatted blockPreformatted (no markup)