Extension:MiniPreview

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
MiniPreview
Release status: unmaintained
Implementation Parser extension
Description Displays small previews of other images in the same categories or displayed on the same pages next to an image
Author(s) Magnus Mansketalk
MediaWiki 1.11+
License GNU General Public License 2.0 or later
Download Template:WikimediaDownload/svn
Parameters
$wgMiniPreviewEnabled
$wgMiniPreviewExtPath
$wgMiniPreviewShowCategories
$wgMiniPreviewShowGalleries
$wgMiniPreviewGalleryNamespace
$wgMiniPreviewThumbnailSize
$wgMiniPreviewMaxCategories
$wgMiniPreviewMaxGalleries
$wgMiniPreviewMaxTotal
Hooks used
ImageOpenShowImageInlineBefore
Translate the MiniPreview extension if it is available at translatewiki.net
Check usage and version matrix.

MiniPreview extension displays small previews of other images in the same categories or displayed on the same pages next to an image.

Installation[edit]

To install this extension, download the source from SVN and add the following to LocalSettings.php:

require_once("$IP/extensions/MiniPreview/MiniPreview.php");

Configuration parameters[edit]

  • $wgMiniPreviewEnabled — Main switch. Defaults to true.
  • $wgMiniPreviewExtPath — Path to the extension files. Defaults to'/extensions/MiniPreview'.
  • $wgMiniPreviewShowCategories — Look for images in the same categories. Defaults to true.
  • $wgMiniPreviewShowGalleries — Look for images in the same galleries (Galleries = Main namespace pages on commons). Defaults to true.
  • $wgMiniPreviewGalleryNamespace — Default : Main namespace (for commons)
  • $wgMiniPreviewThumbnailSize — Last/next thumbnails will be $wgMiniPreviewThumbnailSize pixel squared. Defaults to 75.
  • $wgMiniPreviewMaxCategories — Maximum number of categories shown. Defaults to 10.
  • $wgMiniPreviewMaxGalleries — Maximum number of galleries shown. Defaults to 10.
  • $wgMiniPreviewMaxTotal — Maximum number of categories and galleries shown. Defaults to 15.