Extension:Figures

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
MediaWiki extensions manual
Figures
Release status: beta
Implementation Parser function
Description Allows to define figures and refer them elsewhere in the wiki
Author(s) Nischay Nahata (Nischayn22talk)
Latest version 0.0.0
MediaWiki 1.29+
PHP 5.5+
Database changes No
License MIT License
Download
README
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').
Translate the Figures extension if it is available at translatewiki.net

The Figures extension allows to define figures and refer them elsewhere in the wiki. Figures can be images, tables or other kinds of media.

It is also a dependency for the DocBookExport extension.

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/Figures</tvar>|Download]] and move the extracted <tvar name=name>Figures</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Figures
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'Figures' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

Usage

To create a figure define it using the figure parser function. See examples below:

{{#figure: |label=Figure 1.2 |content=[[File:wiki.png]] }}

To refer to the figure elsewhere in the wiki use:

{{#xref: |page=Main Page |label=Figure 1.2 }}

The xref parser function will create an anchor tag which takes you to the figure on clicking.

Credits

This extension has been written by Nischay Nahata for wikiworks.com

Development and Help

Please contact wikiworks.com for consulting on further developments, feature requests or bug fixes on this extension.