Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:P

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

A shorthand template for one item in Template:Carousel.

Usage

Main article: Template:Carousel
{{Carousel
|width = 
|align = 
|list=
<div class="jcarousel-item">[[File:exampleimage1.jpg]]</div>
<div class="jcarousel-item">[[File:exampleimage2.jpg]]</div>
...
}}

{{Carousel
|width = 
|align = 
|list=
{{p|[[File:exampleimage1.jpg|thumb|300px]]}}
{{p|[[File:exampleimage2.jpg]]}}
...
}}


Shorthand using "images" parameter instead of "list"

  • List images to have them automatically sized to the given "width" of the carousel. List each item on a separate line.
  • Split width, captions, etc. by semicolons
{{Carousel
|width=300
|images=
image 1.png;300px;Image caption
image 2.png;This is an image caption
}}