Template:Imagestack

From Wikimedia Commons, the free media repository
(Redirected from Template:ImageStack)
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Imagestack/doc.

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]

Usage[edit]

The code below gives the result on the right:

Warning The template Imagestack requires additional javascript-code. It doesn't work if javascript is switched off.
Foo 1
Bar 2
Fizz 3 bluh
Buzz 4 blah
Gastric banding
{{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]

The template Imagestack provides functionality to scroll through a stack of images

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
alignalign

no description

Contentsuggested
borderborder

no description

Unknownoptional
backgroundbackground

no description

Contentsuggested
looploop

no description

Booleansuggested
titletitle

no description

Contentsuggested
widthwidth

no description

Unknownsuggested
11

no description

Page namerequired
22

no description

Unknownoptional
33

no description

Unknownoptional
44

no description

Unknownoptional
55

no description

Unknownoptional
66

no description

Unknownoptional
77

no description

Unknownoptional
88

no description

Unknownoptional
99

no description

Unknownoptional