Template:ImageStackPopup
![]() | Uses Lua: |
Used to generate an image with a play button. When you click it, it shows a popup with images in a slider viewer, suitable for looking at series of medical data.
Usage
{{ImageStackPopup
|start =
|list =
|caption =
|title =
|file =
|loop =
}}
The list
parameter references a page with a fragment. E.g. Template:ImageStackPopup/list#medical, will use the image list with the id "medical" from the page Template:ImageStackPopup/list as the list of images. Keep in mind that all images should have the same size (and especially same aspect ratio). Generally the list page would have code like <gallery widths=700 height=700 id="medical">File:first.png...</gallery>
on it.
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
start | start | Which image to start on | 1 | optional |
list | Image list page | A page name and fragment to load the image list from. For example, if you put MyPage#myGallery, then it is assumed there is a <gallery id=\"myGallery\">...</gallery> on the page MyPage which is used as the list of images. Example: "MyPage#myGallery" | empty | required |
caption | caption | Caption to show in the pop-up below the image. Can include any wikitext. | empty | optional |
title | Popup title | Title of popup. Can only be plain text. Wikitext not supported. | empty | optional |
file | file | The wikitext to include the image shown on the page. Example: [[File:Example.png|thumb|100px|caption text]] | empty | required |
loop | loop | Should slider loop around. Set either \"yes\" or have no value | empty | optional |
width | width | Override image width from list page | empty | optional |
height | height | override height from list page | empty | optional |
noregisterimages | noregisterimages | Disable translcuding the list page. This will cause this page not to be listed on the what links here for the images used. | empty | optional |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Relies on:
ImageStackPopup gadget
See also
Example
{{ImageStackPopup |start = 177 |list = Template:ImageStackPopup/list#medical |caption = This is my caption |title = Window Title |file = [[File:Appendicitis (CT angiogram) (Radiopaedia 154713-127660 Axial 1).jpg|link=|thumb|Try clicking play]] }}
![](https://upload.wikimedia.org/wikipedia/commons/thumb/e/e7/Appendicitis_%28CT_angiogram%29_%28Radiopaedia_154713-127660_Axial_1%29.jpg/220px-Appendicitis_%28CT_angiogram%29_%28Radiopaedia_154713-127660_Axial_1%29.jpg)