Extension:TemplateRest

From Linux Web Expert

MediaWiki extensions manual
TemplateRest
Release status: unmaintained
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
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').

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

  • 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
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.


Documentation

See the GitHub page.