From MediaWiki.org
Jump to navigation Jump to search

Other languages:
English • ‎日本語
MediaWiki extensions manual
Crystal Clear action run.svg
Release status: beta
Implementation User interface
Description Automatically replace "quotes" with “smart” quotes.
Author(s) Martin Tournoij (Carpetsmokertalk)
Latest version 1.0 (2015-02-07)
MediaWiki 1.25+
PHP 5.4+
License MIT License
Download Download
Hooks used
Translate the Typography extension if it is available at translatewiki.net
Check usage and version matrix.

Automatically replace "quotes" with “smart” quotes. Also replaces - with an em dash (—) and ... with an ellipsis (…).

Add __NOTYPO__ to disable it.


  • It uses "DOMDocument()" to parse the HTML, but only looks inside every tag.
  • So "some <strong>strange</strong> stuff!" won't work, as it sees "some, strange, and stuff".

This can (and should) be improved on at some point.


  • Download and place the files in a directory called Typography in your extensions/ directory.
  • Add the following code at the bottom of your LocalSettings.php:
  • Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.