Template:Imagestack
Function of the template[modifica]
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[modifica]
- 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[modifica]
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[modifica]
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.
Vedi anche[modifica]
- {{Moviestack}}
- {{Imagestackcat}} mark the category containing the images
- {{Imagestackimg}} mark the single images belonging to the series
The template Imagestack provides functionality to scroll through a stack of images
Parametro | Descrizione | Tipo | Stato | |
---|---|---|---|---|
align | align | nessuna descrizione | Contenuto | consigliato |
border | border | nessuna descrizione | Sconosciuto | facoltativo |
background | background | nessuna descrizione | Contenuto | consigliato |
loop | loop | nessuna descrizione | Booleano | consigliato |
title | title | nessuna descrizione | Contenuto | consigliato |
width | width | nessuna descrizione | Sconosciuto | consigliato |
1 | 1 | nessuna descrizione | Nome della pagina | obbligatorio |
2 | 2 | nessuna descrizione | Sconosciuto | facoltativo |
3 | 3 | nessuna descrizione | Sconosciuto | facoltativo |
4 | 4 | nessuna descrizione | Sconosciuto | facoltativo |
5 | 5 | nessuna descrizione | Sconosciuto | facoltativo |
6 | 6 | nessuna descrizione | Sconosciuto | facoltativo |
7 | 7 | nessuna descrizione | Sconosciuto | facoltativo |
8 | 8 | nessuna descrizione | Sconosciuto | facoltativo |
9 | 9 | nessuna descrizione | Sconosciuto | facoltativo |