Module:ImageStackPopup/doc
Appearance
This is a documentation subpage for Module:ImageStackPopup. It contains usage information, categories and other content that is not part of the original Module page. |
This module is rated as beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected. |
Module Quality
[edit]Usage
[edit]{{#invoke:ImageStackPopup|image}}
{{#invoke:ImageStackPopup|gallery}}
Create an image that has a play button which popups a viewer showing a slideshow of some other images. Intended for use in viewing a series of medical images. See {{ImageStackPopup }} and {{ImageStackPopupGallery }} for more details.
This Module is a template gadget that requires the ImageStackPopup gadget to work. Follow the installation instructions to get it working in your wiki.
Installation
[edit]To install this template in your wiki:
- Copy the pages Module:ImageStackPopup, Template:ImageStackPopup and Template:ImageStackPopupGallery to your wiki.
- Create MediaWiki:Gadget-ImageStackPopup.js with the following code:
/** * ImageStackPopup: Creates a popup gallery viewer suitable for medical images * Documentation: https://www.mediawiki.org/wiki/ImageStackPopup * Source code: https://www.mediawiki.org/wiki/MediaWiki:Gadget-Global-ImageStackPopup.js */ mw.loader.load( '//www.mediawiki.org/w/load.php?modules=ext.gadget.Global-ImageStackPopup' );
- Add the following gadget to MediaWiki:Gadgets-definition:
ImageStackPopup[ResourceLoader|hidden|default|categories=Gadget:ImageStackPopup]|ImageStackPopup.js
Done! Add your template to any page to verify that the installation was successful.