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

edwardspec/mediawiki-extension-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

Sponsor this project

Packages

No packages published