Template:Scrollcomic
Jump to navigation
Jump to search
[edit] [ ]
Template documentation

Template:Scrollcomic
This template creates a horizontally scrollable container to display a series of images, useful for sequential art like comics or photo series.
Parameters
Parameter | Description | Required/Optional | Accepted values | Default |
---|---|---|---|---|
alignment
|
Controls the horizontal alignment of the entire container box on the page. | Optional | left , center , right
|
center
|
title
|
Text to display as a title at the top of the container. | Optional | Any text | None |
width
|
Sets the maximum width of the entire container box. | Optional | Any valid CSS width value (e.g., 600px , 80% )
|
600px
|
slideWidth
|
Sets the width of each individual image slide within the scrollable area. | Optional | Any valid CSS width value (e.g., 90% , 400px )
|
90%
|
slideMargin
|
Sets the left margin for each image slide. The right margin is fixed at 5px except for the last slide. | Optional | Any valid CSS margin value (e.g., 5% , 20px )
|
5%
|
image1 to image5
|
The filename of the image to display in the respective slide. | Optional (at least one image parameter is needed for the template to display content) | A valid image filename on the wiki (e.g., Example.jpg )
|
None |
caption1 to caption5
|
A caption to display below the respective image. | Optional | Any text, including wikitext formatting. | None |
alt1 to alt5
|
Alt text for the respective image, important for accessibility. | Optional | Descriptive text for the image. | Polandball comic N (where N is the slide number)
|
imgwidth1 to imgwidth5
|
Sets the display width of the respective image within its slide. | Optional | Any valid CSS width value (e.g., 100% , 300px )
|
100%
|
link1 to link5
|
Specifies a page to link to when the image is clicked. Use :File:ImageName.jpg to link directly to the image file page.
|
Optional | A valid wiki page name or link. | Links to the image file page by default. |
Usage
Basic Usage
Creates a centered scrollable box with two images and default settings.
{{Scrollcomic |image1=Example1.png |caption1=The first panel. |image2=Example2.png |caption2=The second panel. }}
With Title and Custom Width
Creates a left-aligned scrollable box with a title and a specific overall width.
{{Scrollcomic |alignment=left |title=My Comic Strip |width=800px |image1=Example1.png |image2=Example2.png |image3=Example3.png }}
Customizing Slides
Adjusts the width of the individual slides and the displayed image size.
{{Scrollcomic |title=Adjusted Slides |slideWidth=80% |slideMargin=10% |image1=Example1.png |imgwidth1=80% |image2=Example2.png |imgwidth2=80% }}