Template:Carousel/doc

Template page
< Template:Carousel
Revision as of 16:59, 7 September 2019 by Chao (talk | contribs) (for Template:Carousel)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 wide
align To have it float to the right, use floatright. To have it float to the left, use floatleft. To have it centered, use center. To have it without any, use null.
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

BlazBlue Cross Tag Battle Ragna the Bloodedge Main.png
BlazBlue Central Fiction Ragna the Bloodedge Main.png
BlazBlue Chrono Phantasma Ragna the Bloodedge Main.png

Icon banner arrow left.png Icon banner arrow right.png