Open main menu
Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Imagestack/doc.

Function of the templateEdit

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.

ExamplesEdit

UsageEdit

{{Imagestack
|width=100
|title=left with background and loop
|align=left
|background=#b8b878
|loop=yes
|Image:Braunes-Fett-PET-00.jpg|00
|Image:Braunes-Fett-PET-01.jpg|01
|Image:Braunes-Fett-PET-02.jpg|02
|Image:Braunes-Fett-PET-03.jpg|03
}}
Lorem ipsum dolor...
Warning The template Imagestack requires additional javascript-code. It doesn't work if javascript is switched off.
left with background and loop
00
01
02
03

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.

{{Imagestack
|title=Only title -> width=200
|Image:Braunes-Fett-PET-00.jpg|00
|Image:Braunes-Fett-PET-01.jpg|01
|Image:Braunes-Fett-PET-02.jpg|02
|Image:Braunes-Fett-PET-03.jpg|03
}}
Lorem ipsum...
Warning The template Imagestack requires additional javascript-code. It doesn't work if javascript is switched off.
Only title -> width=200
00
01
02
03

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.

Categories for stack imagesEdit

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
...

See alsoEdit