Extension:TemplateRest

From MediaWiki.org
Jump to navigation Jump to search


MediaWiki extensions manual
OOjs UI icon advanced.svg
TemplateRest
Release status: beta
Implementation API , Ajax
Description RESTful api for manipulating template transclusions.
Author(s) Andreas Jonssontalk
Latest version 1.1 (2016-01-25)
MediaWiki 1.25
License GNU General Public License 3.0
Download
Translate the TemplateRest extension if it is available at translatewiki.net
Check usage and version matrix.

TemplateRest is a RESTful API module that takes advantage of a Parsoid to manipulate template transclusions in MediaWiki articles. It also supports manipulating categories. A Backbone-based Javascript model is included.

Installation[edit]

  • Install a parsoid server Parsoid/Setup
  • Configure parsoid access in LocalSettings.php ($wgVirtualRestConfig['modules']['parsoid']['url'])
  • Install Extension:JSModules (if you want to use the included javascript model.)
  • Download and copy the TemplateRest extension to extensions folder of your MediaWiki installation
  • add wfLoadExtension('TemplateRest'); to LocalSettings.php
  • Yes Done – Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.


Documentation[edit]

See the GitHub page.