Skip to content

Extension:RelatedImages recommends other relevant images when viewing pages like File:Something.png.

License

Notifications You must be signed in to change notification settings

bahaipedia/mediawiki-RelatedImages

 
 

Repository files navigation

mediawiki-extension-RelatedImages

Extension:RelatedImages shows several "related images" on pages like [[File:Something.png]]. These recommended images are randomly chosen from the same categories as Something.png.

Configuration

Everything is optional:

$wgRelatedImagesMaxCategories = 1; // Default: 3
$wgRelatedImagesMaxImagesPerCategory = 4; // Default: 3
$wgRelatedImagesIgnoredCategories = [ 'Some_category', 'Another_category' ]; // Default: []
$wgRelatedImagesThumbnailWidth = 120; // Default: 50
$wgRelatedImagesThumbnailHeight = 100; // Default: 50

// If the wiki uses [https://commons.wikimedia.org/wiki/Help:Image-Annotator],
// this should disable annotations on recommendation thumbnails.
$wgRelatedImagesBoxExtraCssClass = 'wpImageAnnotatorControl wpImageAnnotatorOff';

// Default values:
$wgRelatedImagesDisableForExtensions = [ 'ogg', 'pdf' ];
$wgRelatedImagesDoNotRecommendExtensions = [ 'ogg', 'pdf' ];

About

Extension:RelatedImages recommends other relevant images when viewing pages like File:Something.png.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 77.1%
  • JavaScript 20.6%
  • CSS 2.3%