Template:Imagestack/doc

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

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 using the mousewheel or by dragging with the left mouse button. 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]

Usage[edit]

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

See also[edit]