Template:ImageStackPopup/doc

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

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

ParameterDescriptionDefaultStatus
startstartWhich image to start on1optional
listImage list pageA 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"emptyrequired
captioncaptionCaption to show in the pop-up below the image. Can include any wikitext.emptyoptional
titlePopup titleTitle of popup. Can only be plain text. Wikitext not supported.emptyoptional
filefileThe wikitext to include the image shown on the page. Example: [[File:Example.png|thumb|100px|caption text]]emptyrequired
looploopShould slider loop around. Set either \"yes\" or have no valueemptyoptional
widthwidthOverride image width from list pageemptyoptional
heightheightoverride height from list pageemptyoptional
noregisterimagesnoregisterimagesDisable translcuding the list page. This will cause this page not to be listed on the what links here for the images used.emptyoptional

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]]
}}
Try clicking play