×
Create a new article
Write your page title here:
We currently have 142 articles on The Sonic the Hedgehog Wiki. Type your article name above or click on one of the titles below and start writing!



The Sonic the Hedgehog Wiki

Template:Multiple image/doc

Revision as of 10:14, 22 December 2024 by Sonic City (talk | contribs) (Created page with "{{Documentation subpage}} ==Usage== {{Lua|Module:Multiple image}} This template is used to display multiple images in a box as if they were a single one, serving as an alternative to Fandom's slideshow galleries. The template supports up to ten images and offers a variety of styles. To use it in a page, type this: <pre> {{Multiple image |align = |direction = |width = |total_width = |caption_align =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This subpage contains documentation, categories and other content that is not part of the template.
To view the template page itself, see Template:Multiple image.

Usage[edit source]

This template is used to display multiple images in a box as if they were a single one, serving as an alternative to Fandom's slideshow galleries. The template supports up to ten images and offers a variety of styles. To use it in a page, type this:

{{Multiple image
|align         = 
|direction     = 
|width         = 
|total_width   = 
|caption_align = 
|perrow        = 

|header_align  = 
|header        = 

|image1        = 
|width1        = 
|alt1          = 
|link1         = 
|caption1      = 

|image2        = 
|width2        = 
|alt2          = 
|link2         = 
|caption2      = 

|footer_align  = 
|footer        = 
}}

Parameters[edit source]

Some of the parameters allowed in the template are as follows:

  • align: The position of the images relative to the text. The options are "right" (default), "left", "center", and "none".
  • direction: The alignment of the images, either "horizontal" (default) or "vertical".
  • width: The width of all the images. Omit "px" from the value. It should not be used along with "total_width" below.
  • total_width: Sets a width for the entire thumbnail with the images therein sized accordingly. Omit "px" from the value. It should not be used along with "width" above.
  • caption_align: The text alignment of the thumbnail captions, either "left" (default), center, or right.
  • perrow: Use it to create an array of images with many rows.
  • header: A header text put above the images.
  • header_align: The text alignment of the header, either "center" (default), left, or right.
  • image[n]: The file name and extension of the desired image, omitting the "File:" and "Image:" prefix. At least two are required, and up to ten can be added.
  • width[n]: Sets an individual width for the desired image. Omit "px" from the value. Overriden by the "width" parameter above.
  • alt[n]: An alternative text for the desired image.
  • link[n]: A link to which the desired image leads when clicked on.
  • footer: A footer text put below the images.
  • footer_align: The text alignment of the footer, either "left" (default), center, or right.

Examples[edit source]

{{Multiple image
|align     = right
|direction = horizontal
|width     = 140

|image1    = Sonic-the-Hedgehog-3-Japanese-Cover.jpg
|image2    = Sonic_&_Knuckles_(JP).jpg

|footer    = ''Sonic 3'' and ''Sonic & Knuckles''
}}
Sonic Generations
The cover of the console/PC version...
...and the cover of the 3DS version.
{{Multiple image
|align             = left
|direction         = vertical
|width             = 160

|header            = ''Sonic Generations''

|image1            = Sonic_Generations.jpg
|caption1          = The cover of the console/PC version...

|image2            = SG_630992_210762_front.jpg
|caption2          = ...and the cover of the 3DS version.
}}
With links (link[n])
Click on the left image to go to the Sonic the Hedgehog page, and on the center one to go to the Tails page. The Knuckles image doesn't lead anywhere when clicked.
{{Multiple image
|align        = center
|header       = With links (link[n])

|image1       = Sonic-the-hedgehog-cdv2.png
|link1        = Sonic the Hedgehog
|image2       = Tails_1.png
|link2        = Tails
|image3       = Knuckles_Sonic3.png
|link3        = 

|footer_align = center
|footer       = Click on the left image to go to the [[Sonic the Hedgehog]] page, and on the center one to go to the [[Tails]] page. The Knuckles image doesn't lead anywhere when clicked.
}}
With many rows (with perrow)
Games released for the DS. Clockwise from top left: Sonic Rush, Sonic Rush Adventure, Sonic Colors, and Sonic Chronicles.
{{Multiple image
|align  = right
|header = With many rows (perrow)
|width  = 150
|perrow = 2

|image1 = Sonic-Rush-Box-Art-US.png
|image2 = Sonic_Rush_Adventure.jpg
|image3 = The Dark Brotherhood.jpg
|image4 = Sonic Colors (DS).jpg

|footer = Games released for the DS. Clockwise from top left: ''Sonic Rush'', ''Sonic Rush Adventure'', ''Sonic Colors'', and ''Sonic Chronicles''.
}}

External links[edit source]