Module:ImageStackPopup/doc
![]() | This is a documentation subpage for Module:ImageStackPopup (see that page for the module itself). It contains usage information, categories and other content that is not part of the original module page. |
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=ImageStackPopup.js]|ImageStackPopup.js
Done! Add your template to any page to verify that the installation was successful.