MediaWiki, Explained
iLoveConverter Team 2 min read
On this page
MediaWiki is the wikitext markup format behind Wikipedia, Wiktionary, and every wiki in the Wikimedia universe. Unlike HTML or Markdown, wikitext was designed for collaborative editing first — simple syntax, visible structure, and server-side expansion of templates make it the most successful wiki format ever created.
Technical details
Wikitext uses = for headings, * for unordered lists, # for ordered lists, and '''text''' for bold, ''text'' for italics. Links use double brackets ([[Article]]), external links use single brackets with a space ([https://example.com label]). Templates ({{Template|param=value}}) transclude reusable chunks. The software parses wikitext into HTML at render time.
| Feature | MediaWiki | Markdown | HTML |
|---|---|---|---|
| Headings | =…===== | #…###### | <h1>…<h6> |
| Links | [[target]] / [url label] | [label](url) | <a href> |
| Templates | `{{tpl | param}}` | None |
| Categories | [[Category:X]] | None | None |
| Citation | <ref> + {{cite}} | None | Manual |
Conversion
Converting MediaWiki to Markdown or HTML is straightforward for articles without heavy template use. The real challenge: Wikipedia articles rely on hundreds of templates ({{Infobox}}, {{cite web}}, {{Navbox}}) that render differently depending on parameters. Pandoc has a MediaWiki reader, but for accurate conversions you often need to pre-render with the MediaWiki API first.
Common problems
- Template explosion. Complex articles contain dozens of nested templates that are impossible to replicate in Markdown.
- Citation syntax.
<ref>tags and{{cite}}templates produce numbered references; porting them to other formats usually loses the numbering. - Manual wiki links. Articles full of
[[Article]]links work only on that specific wiki.
FAQ
What’s the difference between MediaWiki and Wikipedia?
MediaWiki is both the software and the markup language. Wikipedia is the site that runs on MediaWiki. The .wiki or .mediawiki file extension refers to the wikitext markup, not the server software.
Can I convert a Wikipedia article to Markdown?
Yes — Pandoc handles basic cases, but for full fidelity (including infoboxes and citations), use the Wikipedia REST API to fetch HTML first, then convert HTML to Markdown. This preserves more of the structure.
Why does Wikipedia use wikitext instead of Markdown?
Markdown lacks templates, categories, transclusion, and the semantic structure MediaWiki provides. Wikipedia’s collaborators have refined wikitext over 20 years; Markdown would need significant extensions to match.
What software reads MediaWiki?
The MediaWiki software itself, of course, plus Pandoc, mw2html, and various browser extensions. Unlike Markdown, wikitext is tightly coupled to the MediaWiki parser — there’s no single open spec that other renderers fully implement.
Is wikitext a good choice for new wikis?
For small, private wikis, Markdown is usually simpler and more portable. MediaWiki shines at Wikipedia scale — thousands of contributors, complex templates, active dispute resolution. Pick MediaWiki when you need that ecosystem; pick Markdown when you need portability.
Try it yourself — free, right in your browser
Everything mentioned in this guide runs locally on this site: no upload, no watermark, no sign-up.
Format deep-dives: MediaWiki (.mediawiki.wiki) , MD (.md.markdown)