Extension:Parsoid

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png
Parsoid

Release status: beta

Description Populate a Parsoid cache of pages on editing
Author(s) Parsoid team
MediaWiki 1.22
PHP 5.3+
Database changes No
License GPLv2+
Download

Translate the Parsoid extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

Phabricator:

Open tasks · Report a bug

The Parsoid service, which is written in Node, can use this PHP extension to populate and co-ordinate a cache with pages so that they are available immediately for users.

Required for MediaWiki 1.23 users of VisualEditor[edit | edit source]

For MediaWiki 1.23 users, it also provides a styling module that is a dependency of VisualEditor, so this extension must be installed for VisualEditor to work on MediaWiki 1.23. From MediaWiki 1.24 onwards, this styling module was upstreamed into MediaWiki itself, and so this extension is not required unless you have a deployed Varnish cache.

Installing[edit | edit source]

  • Download and extract the tarball in your extensions/ folder. It should generate a new folder called Parsoid directly inside your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/Parsoid/Parsoid.php";
  • Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.