Jump to content

MediaWiki — The Open-Source Wiki Engine That Powers Wikipedia

From Trackwiki

Overview

MediaWiki is a free and open-source wiki engine written in PHP, originally developed to serve Wikipedia and today used by thousands of public and private wiki communities around the world. It is released under the GPL-2.0-or-later license and is actively maintained by the Wikimedia Foundation together with a large volunteer developer community.

History

The software that eventually became MediaWiki was created in 2002 by Magnus Manske, a student who wrote a replacement for the older UseModWiki engine that Wikipedia had outgrown. The new engine was initially known simply as the "PHP script" or "phase II" software. When a rewritten "phase III" version stabilized, it was renamed MediaWiki in 2003 — a wordplay on the Wikimedia brand that has since become the de-facto standard name for the engine.

Key features

  • Wikitext markup — a lightweight syntax for links, headings, lists, tables and citations that keeps editing approachable while remaining expressive.
  • Full revision history — every edit is stored as a revision, with diffs, rollback, and per-user contribution views as first-class capabilities.
  • Namespaces and talk pages — content lives in namespaces such as the main, file and category namespaces, each with an attached discussion namespace.
  • Templates and transclusion — reusable page fragments (infoboxes, navigation boxes, maintenance tags) are transcluded at render time.
  • Lua scripting — the Scribunto extension embeds a Lua interpreter, replacing the older and slower template-based parser functions for complex logic.
  • Categories — a lightweight, automatically maintained classification system that powers browsing and listing across the wiki.

APIs and automation

MediaWiki ships with two programmatic interfaces. The classic Action API (api.php) exposes hundreds of modules — querying page content, listing category members, or editing pages with CSRF-protected action=edit requests. The newer REST API offers a resource-oriented surface for core operations. Together they make it possible to build bots, backlink dashboards, and publishing pipelines on top of a running wiki, which is one reason the engine is popular for structured content operations.

Extensions

Functionality beyond the core is delivered through extensions. Widely deployed examples include Cite (footnote references), VisualEditor (a WYSIWYG editing surface backed by Parsoid), Echo (notifications), and CentralAuth (shared login across wiki farms). Hundreds more are catalogued, covering spam filtering, semantic annotation, PDF export and syntax highlighting.

Deployment

A typical MediaWiki deployment pairs PHP with MariaDB/MySQL, PostgreSQL or SQLite, plus a web server and a cache layer. For larger farms, operators usually add object caching (Redis or Memcached), a dedicated job runner for deferred tasks, and CDN caching of rendered pages. The engine scales from single-signature laptops to the Wikimedia production fleet serving hundreds of millions of readers.

Where it is used

Beyond Wikipedia and its sister projects, MediaWiki powers community sites such as Fandom, wikiHow, and many corporate knowledge bases and documentation portals. Its combination of transparent revision control, low-friction editing and a mature API has made it a durable choice for collaborative knowledge bases for more than two decades.

See also