Extension:Torque

From mediawiki.org
MediaWiki extensions manual
OOjs UI icon advanced.svg
Torque
Release status: beta
Implementation other (invalid type)
Description Extension to connect to the Python django app django-torque, to provide permissioned access to data.
Author(s) OpenTechStrategies
Latest version 0.2.7 (March 28th, 2022)
MediaWiki > 1.35.0
PHP > 7.3
Database changes No
License GNU Affero General Public License 3.0 or later
Download [1]
[2]

Check usage and version matrix.

The Torque extension connects to a running instance of the torque django server to serve up information.

It stores external data as generic document/field data, with in wiki configuration of how to display that data (via jinja templates) and permission that data. Then the data is served via a custom hook to appear as MediaWiki pages.

Features include:

  • Granular permissions based on MediaWiki groups
  • python client for easy access of information via published API
  • Edit functionality for that data
  • Protection on uploaded files (as attachments)
  • Upload through command line interface

Installation[edit]

You need to:

And then:

  • NOTE: Make sure your system has PHP 7.3+
  • Download and place the file(s) in a directory called Torque in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php :
    wfLoadExtension( 'Torque' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration and documentation[edit]

See the extension's README in source control for all the updated documentation.