Template:Imagestack/doc

From WikiProjectMed
Jump to navigation Jump to search

Function of the template

The template Imagestack provides functionality to scroll through a stack of images such as CT 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

Usage

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 Template:Catlink.)
Every fourth images among 720 is $(seq -f "%03g" 0 4 719). (Used Template:Catlink.)

Categories for stack images

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 Template:Catlink.

See also

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

Template parameters

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