Difference between revisions of "Extensions"

From The Viking Age Compendium
Jump to: navigation, search
m
m
 
(7 intermediate revisions by one other user not shown)
Line 2: Line 2:
  
 
==CategoryTree==
 
==CategoryTree==
 +
Used for drillable wiki menus. [[:Category:The_Viking_Age_Compendium|Example Category:The_Viking_Age_Compendium]]
 
  ## Extension CategoryTree
 
  ## Extension CategoryTree
 
  $wgUseAjax = true;
 
  $wgUseAjax = true;
 
  require_once( "$IP/extensions/CategoryTree/CategoryTree.php" );
 
  require_once( "$IP/extensions/CategoryTree/CategoryTree.php" );
 
==Cite==
 
 
==CiteThisPage==
 
  
 
==CommonsMetadata==
 
==CommonsMetadata==
Line 14: Line 11:
  
 
==DynamicPageList==
 
==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";
 
  require_once "$IP/extensions/DynamicPageList/DynamicPageList.php";
 
  ExtDynamicPageList::$maxResultCount = 1000;
 
  ExtDynamicPageList::$maxResultCount = 1000;
  
 
==HarvardReferences==
 
==HarvardReferences==
require_once("$IP/extensions/HarvardReferences/HarvardReferences.php");
+
Used for creating book references. [[Swords|Example Swords]]
 +
require_once("$IP/extensions/HarvardReferences/HarvardReferences.php");
 +
$wgHarvardReferencesOn = true;
  
 
==JavascriptSlideshow==
 
==JavascriptSlideshow==
 +
Used to create an image slideshow. Not currently being used.<br>
 +
https://www.mediawiki.org/wiki/Extension:JavascriptSlideshow
 
  ## Extension JavascriptSlideshow
 
  ## Extension JavascriptSlideshow
 
  require_once "$IP/extensions/JavascriptSlideshow/JavascriptSlideshow.php";
 
  require_once "$IP/extensions/JavascriptSlideshow/JavascriptSlideshow.php";
  
 
==LabeledSectionTransclusion==
 
==LabeledSectionTransclusion==
 +
Used to insert a part of one page into another.<br>
 +
Used in Referencing. [[Template:Ref]] and [[Template:ListRef]]<br>
 +
Used in Catalogues. [[Illuminated_Anglo-Saxon_Manuscripts_900-1066AD|Example Illuminated_Anglo-Saxon_Manuscripts_900-1066AD]]<br>
 +
 
  ## Extension Labeled Section Transclusion
 
  ## Extension Labeled Section Transclusion
 
  require_once "$IP/extensions/LabeledSectionTransclusion/lst.php";
 
  require_once "$IP/extensions/LabeledSectionTransclusion/lst.php";
  
 
==MobileFrontEnd==
 
==MobileFrontEnd==
 +
Used to create the mobile view. Works with [[mediawiki:Mobile.css]].
 
  require_once "$IP/extensions/MobileFrontend/MobileFrontend.php";
 
  require_once "$IP/extensions/MobileFrontend/MobileFrontend.php";
 
  $wgMFAutodetectMobileView = true;
 
  $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==
 
==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";
 
  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_showAutoCat = true; // If true, files uploaded while editing a category will be added to that category
Line 48: Line 60:
  
 
==MultimediaViewer==
 
==MultimediaViewer==
 +
Used to create a lightbox image viewer for the full view. The mobile view of this is bundled in with the MobileFrontEnd extension. [[Sword_Scabbard_Chapes#/media/File:R516.jpg|Example Sword_Scabbard_Chapes#/media/File:R516.jpg]]
 
  ## Extension MultimediaViewer
 
  ## Extension MultimediaViewer
 
  require_once "$IP/extensions/CommonsMetadata/CommonsMetadata.php";
 
  require_once "$IP/extensions/CommonsMetadata/CommonsMetadata.php";
Line 53: Line 66:
  
 
==ParserFunctions==
 
==ParserFunctions==
 +
Used to enable logical 'if' statements and to give a level of logical flow. [[Template:Ref|Example Template:Ref]]
 
  ## Extension ParserFunctions
 
  ## Extension ParserFunctions
 
  wfLoadExtension( 'ParserFunctions' );
 
  wfLoadExtension( 'ParserFunctions' );
 
  $wgPFEnableStringFunctions = true;
 
  $wgPFEnableStringFunctions = true;
  
==Variables==
+
==WikiEditor==
  ## Extension Variables (used in Manuscript pages)
+
  ## Extension WikiEditor
  require_once "$IP/extensions/Variables/Variables.php";
+
  require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );
  
 
[[Category:Wiki]]
 
[[Category:Wiki]]

Latest revision as of 19:47, 14 June 2017

This wiki uses a number of extensions. This page is for anyone interested.

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;

WikiEditor

## Extension WikiEditor
require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );