Template:Imagestack
Function of the template
[edit]The template Imagestack provides functionality to scroll through a stack of images such as computertomography- or MRI- series. The scrolling can be done by hovering over the image and rolling the scroll wheel, dragging the image up or down, or clicking the < or the > above each stack. While scrolling, there may be flickering the first time each image appears in the stack. The javascript code for this can be found in MediaWiki:Gadget-ImageStack.js which will be automatically loaded in the MediaWiki:Common.js if needed.
Examples
[edit]- Scrollable computed tomography images of normal anatomy
- Category:Pansinusitis Case 001
- Category:Normal barium swallow Case 001
- Category:Cerebral arteriovenous malformation MRT TOF MIP Case 001
- Category:Arteria lusoria MRA MIP Case 001
- Category:COVID-19 pneumonia - case 001
- See also: Commons:Image sets § Image stacks
Usage
[edit]The code below gives the result on the right:
{{Imagestack
|width=200
|title=Gastric banding
|align=right
|loop=no
|background=green
|Image:Magenband 52jw - CT Volumen Rendering - 001.jpg|Foo 1
|Image:Magenband 52jw - CT Volumen Rendering - 002.jpg|Bar 2
|Image:Magenband 52jw - CT Volumen Rendering - 003.jpg|Fizz 3 bluh
|Image:Magenband 52jw - CT Volumen Rendering - 004.jpg|Buzz 4 blah
}}
If an image caption contains a special sign like "=", it has to be shown like <nowiki>=</nowiki>
.
A Bash command to create a typical image list looks like this:
for i in $(seq -f "%02g" 0 53); do echo "|File:Menger sponge diagonal section $i.png|"; done
The 2 in "%02g"
is the desired number of leading zeros. (Used here.)
Every fourth images among 720 is $(seq -f "%03g" 0 4 719)
. (Used here.)
Categories for stack images
[edit]If there is an own category for the images of one stack/series it is recommended to use the Template:Imagestackcat in the first line of the description page like this:
{{Imagestackcat}}
{{Imagestack
...
Categories marked in that way are sorted in category Image stacks.
See also
[edit]- {{Moviestack}}
- {{Imagestackcat}} mark the category containing the images
- {{Imagestackimg}} mark the single images belonging to the series
- {{ImageStackPopup}} Show the image stack in a pop-up dialog with a dark background.
The template Imagestack provides functionality to scroll through a stack of images
Parameter | Description | Type | Status | |
---|---|---|---|---|
align | align | no description | Content | suggested |
border | border | no description | Unknown | optional |
background | background | no description | Content | suggested |
loop | loop | no description | Boolean | suggested |
title | title | no description | Content | suggested |
width | width | no description | Unknown | suggested |
1 | 1 | no description | Page name | required |
2 | 2 | no description | Unknown | optional |
3 | 3 | no description | Unknown | optional |
4 | 4 | no description | Unknown | optional |
5 | 5 | no description | Unknown | optional |
6 | 6 | no description | Unknown | optional |
7 | 7 | no description | Unknown | optional |
8 | 8 | no description | Unknown | optional |
9 | 9 | no description | Unknown | optional |