Template:Slider/doc

This template is a slider used on the main page.
 * Description

This template uses Slider generator and the following resources:
 * Dependencies

The "background images" are the ones displayed as background in each slide. They have the same dimension as the template itself which has a fixed height of 450px and a width which changes depending on the reader screen resolution. Assuming the template has all content space available:
 * Updating images


 * On screens with a width up to 1280px, the template will have a width of 664px.
 * On screens with a width from 1280px up to 1600px, the template will have a width of 704.
 * On screens with a width over 1600px, the template will have a width of 858px.

The "preview images" are those displayed in the main menù of the slider. The previews of the slides from #3 to #6 will be displayed with a resolution of 215x112.5px, while the preview of slide #2 will fully cover the template.

Therefore it's advised to use images with a resolution of 860x450px (and technically the preview images from #3 to #6 can have a resolution of just 125x113px). To update the image is sufficient to update the files, without having to edit any code.

Note: to increase performance and reduce loading time, it's advised to use images in JPG format, rather then PNG like this example, or alternately to compress them using a tool like this one.

Type Slider where you want the slider to appear.
 * Syntax


 * See Also
 * Slider generator.
 * Introduction.
 * Category:Slider Images.
 * Help:Galleries, Slideshows, and Sliders on how to create a simpler slider.