Difference between revisions of "Extensions"
m |
m |
||
Line 11: | Line 11: | ||
==DynamicPageList== | ==DynamicPageList== | ||
− | Used for Bibliography list pages and image groups. Examples: [[Bibliography/View_All_-_A]] & [[Category:London,_British_Library,_MS_Arundel_60]] | + | Used for Bibliography list pages and image groups. Examples: [[Bibliography/View_All_-_A]] & [[:Category:London,_British_Library,_MS_Arundel_60]] |
require_once "$IP/extensions/DynamicPageList/DynamicPageList.php"; | require_once "$IP/extensions/DynamicPageList/DynamicPageList.php"; | ||
ExtDynamicPageList::$maxResultCount = 1000; | ExtDynamicPageList::$maxResultCount = 1000; |
Revision as of 19:50, 2 May 2017
This wiki uses a number of extensions. This page is for anyone interested.
Contents
CategoryTree
Used for drillable wiki menus. Example Category:The_Viking_Age_Compendium
## Extension CategoryTree $wgUseAjax = true; require_once( "$IP/extensions/CategoryTree/CategoryTree.php" );
CommonsMetadata
A prerequisite for MultimediaViewer.
DynamicPageList
Used for Bibliography list pages and image groups. Examples: Bibliography/View_All_-_A & Category:London,_British_Library,_MS_Arundel_60
require_once "$IP/extensions/DynamicPageList/DynamicPageList.php"; ExtDynamicPageList::$maxResultCount = 1000;
HarvardReferences
Used for creating book references. Example Swords
require_once("$IP/extensions/HarvardReferences/HarvardReferences.php"); $wgHarvardReferencesOn = true;
JavascriptSlideshow
Used to create an image slideshow. Not currently being used.
https://www.mediawiki.org/wiki/Extension:JavascriptSlideshow
## Extension JavascriptSlideshow require_once "$IP/extensions/JavascriptSlideshow/JavascriptSlideshow.php";
LabeledSectionTransclusion
Used to insert a part of one page into another.
Used in Referencing. Template:Ref and Template:ListRef
Used in Catalogues. Example Illuminated_Anglo-Saxon_Manuscripts_900-1066AD
## Extension Labeled Section Transclusion require_once "$IP/extensions/LabeledSectionTransclusion/lst.php";
MobileFrontEnd
Used to create the mobile view. Works with mediawiki:Mobile.css.
require_once "$IP/extensions/MobileFrontend/MobileFrontend.php"; $wgMFAutodetectMobileView = true;
Also you need to ensure that the wiki is setup to use Short URL's
## http://www.mediawiki.org/wiki/Manual:Short_URL $wgArticlePath = "{$wgScriptPath}/wiki/$1"; $wgUsePathInfo = true;
MsUpload
Used to help with bulk upload of pictures. It creates a drag and drop auto category upload.
require_once "$IP/extensions/MsUpload/MsUpload.php"; $wgMSU_showAutoCat = true; // If true, files uploaded while editing a category will be added to that category $wgMSU_checkAutoCat = true; // Whether the checkbox for the above mentioned case is checked by default $wgMSU_imgParams = '400px'; // The default parameters for inserted images $wgMSU_useDragDrop = true; // Should the drag & drop area be shown? $wgMSU_useMsLinks = false; // Should we allow to insert links in the style of the Extension:MsLinks? $wgEnableWriteAPI = true; // Enable the API $wgEnableUploads = true; // Enable uploads $wgAllowJavaUploads = true; // Solves problem with Office 2007 and newer files (docx, xlsx, etc.) $wgGroupPermissions['user']['upload'] = true; // Allow regular users to upload files // Make sure that the file types you want to upload are allowed: $wgFileExtensions = array( 'bmp', 'doc', 'docx', 'flac', 'gif', 'ico', 'jpeg', 'jpg', 'mp3', 'mpp', 'odg', 'odp', 'ods', 'odt', 'ogg', 'pdf', 'png', 'ppt', 'pptx', 'ps', 'rtf', 'svg', 'swf', 'tif', 'tiff', 'xls', 'xlsx', 'xml' );
MultimediaViewer
Used to create a lightbox image viewer for the full view. The mobile view of this is bundled in with the MobileFrontEnd extension. Example Sword_Scabbard_Chapes#/media/File:R516.jpg
## Extension MultimediaViewer require_once "$IP/extensions/CommonsMetadata/CommonsMetadata.php"; require_once "$IP/extensions/MultimediaViewer/MultimediaViewer.php";
ParserFunctions
Used to enable logical 'if' statements and to give a level of logical flow. Example Template:Ref
## Extension ParserFunctions wfLoadExtension( 'ParserFunctions' ); $wgPFEnableStringFunctions = true;