Intranet/Intranet Extensions

From MediaWiki.org
Jump to navigation Jump to search
Warning Warning: This page is a work in progress

This article details a curated list of extensions. There are many extensions already installed but not activated when installing Mediawiki via Intranet/Intranet Installation and you should explore those at /var/www/html/mediawiki/extensions/. Other extensions are installed at /var/www/html/local-extensions/ in this documented scheme, which keeps them out of the way to avoid accidentally overwriting them.

LocalSettings.php[edit]

The scheme used here is as follows:

  • Provided extensions - these come with the installation and do not need downloading separately. Some of them need additional software, for example VisualEditor (already covered in Intranet/Intranet Installation) or Scribunto and Graph #### TODO indicate these.
  • Local maintained extensions - these are downloaded (usually with git) to /var/www/html/local-extensions/
  • Some extensions are disabled when using command line tools
  • Some extensions do not support the modern calling mechanism - wfLoadExtension - and have to be called via require_once
# Provided extensions
wfLoadExtension( 'ParserFunctions' );
wfLoadExtension( 'DynamicSidebar' );
wfLoadExtension( 'PdfHandler' );
wfLoadExtension( 'Nuke' );
wfLoadExtension( 'Gadgets' );
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
wfLoadExtension( 'Cite' );
wfLoadExtension( 'CiteThisPage' );
wfLoadExtension( 'PdfHandler' );
wfLoadExtension( 'UniversalLanguageSelector' );
wfLoadExtension( 'ImageMap' );
wfLoadExtension( 'Popups' );
wfLoadExtension( 'BetaFeatures' );
wfLoadExtension( 'WikiEditor' );
wfLoadExtension( 'VisualEditor' );
wfLoadExtension( 'InputBox' );
wfLoadExtension( 'TemplateData' );
wfLoadExtension( 'CodeEditor' );
wfLoadExtension( 'CategoryTree' );
wfLoadExtension( 'SubPageList3' );
wfLoadExtension( 'UploadWizard' );
wfLoadExtension( 'intersection' );
wfLoadExtension( 'Flow' );
wfLoadExtension( 'Scribunto' );
wfLoadExtension( 'PageTriage' );
wfLoadExtension( 'PageImages' );
wfLoadExtension( 'TextExtracts' );
wfLoadExtension( 'Elastica' );
wfLoadExtension( 'JsonConfig' );
wfLoadExtension( 'Graph' );
wfLoadExtension( 'AdvancedSearch' );
wfLoadExtension( 'wikihiero' );
wfLoadExtension( 'Math' );
wfLoadExtension( 'Echo' );

# CirrusSearch does not have an extension.json
require_once( "$IP/extensions/CirrusSearch/CirrusSearch.php" );

##### Locally maintained extensions
# These extensions have a nasty habit of breaking maint scripts, so are disabled for command line mode
if ( !$wgCommandLineMode ) {
     $wgExtensionDirectory = '/var/www/html/local-extensions';
     wfLoadExtension( 'Auth_remoteuser' );
     wfLoadExtension( 'ExternalData' );
     $wgExtensionDirectory = '$IP/extensions';
}

$wgExtensionDirectory = '/var/www/html/local-extensions';
# Other locals here
wfLoadExtension( 'WikiCategoryTagCloud' );
$wgExtensionDirectory = '$IP/extensions';

# Locally maintained extensions that don't support wfLoadExtension
require_once ( "$IP/../local-extensions/AdminLinks/AdminLinks.php" );
require_once   "$IP/../local-extensions/GraphViz/GraphViz.php";
require_once   "$IP/../local-extensions/MyVariables/MyVariables.php";
require_once   "$IP/../local-extensions/SimpleTooltip/SimpleTooltip.php";
require_once   "$IP/../local-extensions/IDisplay/iDisplay.php";
##### /Local

Additional software to support extensions[edit]

#### TODO