More actions
This is a documentation subpage for Template:Carousel. It contains usage information, categories, interlanguage links and other content that is not part of the original template page. |
This template is used for a slider made out of thumbnails.
A single list item also has the shortcut template Template:p.
Usage
{{Carousel |width = |align = |list= <div class="jcarousel-item">[[File:exampleimage1.jpg]]</div> <div class="jcarousel-item">[[File:exampleimage2.jpg]]</div> <div class="jcarousel-item">[[File:exampleimage3.jpg]]</div> ... }} {{Carousel |width = |align = |list= {{p|[[File:exampleimage1.jpg|thumb|300px]]}} {{p|[[File:exampleimage2.jpg|thumb|300px]]}} {{p|[[File:exampleimage3.jpg]]}} ... }}
Parameter list
width
Width of the slider. e.g.450
if the series of images are 450px widealign
To have it float to the right, usefloatright
. To have it float to the left, usefloatleft
. To have it centered, usecenter
. To have it without any, usenull
.list
For every slide, start a new line and put<div class="jcarousel-item">[[File:exampleimage.jpg]]</div>
, substituting exampleimage.jpg with the image you desire.
Example