< Intranet
This article details a 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.
Extensions can be tricky to manage and here we present a scheme that should cover all ways of loading them
LocalSettings.php
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
##### $wgExtensionDirectory gets repeatedly redefined as needed and then reset back to the default
# These extensions have a nasty habit of breaking maint scripts, so are not loaded for command line mode
if ( !$wgCommandLineMode )
{
$wgExtensionDirectory = '/var/www/html/local-extensions';
wfLoadExtension( 'Auth_remoteuser' );
wfLoadExtension( 'ExternalData' );
$wgExtensionDirectory = '$IP/extensions';
}
# local extensions that are always loaded
$wgExtensionDirectory = '/var/www/html/local-extensions';
wfLoadExtension( 'WikiCategoryTagCloud' );
wfLoadExtension( 'GraphViz' );
wfLoadExtension( 'MyVariables' );
$wgExtensionDirectory = '$IP/extensions';
# local extensions that don't support wfLoadExtension
require_once ( "$IP/../local-extensions/AdminLinks/AdminLinks.php" );
require_once "$IP/../local-extensions/SimpleTooltip/SimpleTooltip.php";
##### /Locally maintained extensions
Many of these extensions need configuration. Comment out all of the above and then enable them one by one as required.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.