Template:Imagestack

Da Wikimedia Commons, l'archivio di file multimediali liberi
Vai alla navigazione Vai alla ricerca
Documentationview · edit · history · purge ]
This documentation is transcluded from Template:Imagestack/doc.

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]

Usage[modifica]

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[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]

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

Parametri template[Modifica dati del modello]

Questo template preferisce la formattazione a blocco dei parametri.

ParametroDescrizioneTipoStato
alignalign

nessuna descrizione

Contenutoconsigliato
borderborder

nessuna descrizione

Sconosciutofacoltativo
backgroundbackground

nessuna descrizione

Contenutoconsigliato
looploop

nessuna descrizione

Booleanoconsigliato
titletitle

nessuna descrizione

Contenutoconsigliato
widthwidth

nessuna descrizione

Sconosciutoconsigliato
11

nessuna descrizione

Nome della paginaobbligatorio
22

nessuna descrizione

Sconosciutofacoltativo
33

nessuna descrizione

Sconosciutofacoltativo
44

nessuna descrizione

Sconosciutofacoltativo
55

nessuna descrizione

Sconosciutofacoltativo
66

nessuna descrizione

Sconosciutofacoltativo
77

nessuna descrizione

Sconosciutofacoltativo
88

nessuna descrizione

Sconosciutofacoltativo
99

nessuna descrizione

Sconosciutofacoltativo