Templat:Multiple image/doc

Daripada Wikipedia, ensiklopedia bebas.
Lompat ke: pandu arah, cari
Edit-copy green.svg
Ini merupakan pendokumenan sublaman untuk Templat:Multiple image (sila lihat laman tersebut untuk templat asal).
Ia mengandungi maklumat penggunaan, kategori dan kandungan lain yang bukan sebahagian daripada templat halaman asal.

This template creates a box with two to five images arranged vertically or horizontally with captions for the entire box and/or for each images.

Usage[sunting | sunting sumber]

  • align defaults to "center"
  • direction defaults to "horizontal"
  • header_align defaults to "center"
  • footer_align defaults to "left"
  • width will overrides width1, width2, width3, width4, and width5. If you want each image to be different sizes, do not provide the width parameter.
  • header, footer, and captions are optional.
{{multiple image
 | align     = left/right/center
 | direction = horizontal/vertical
 | header    = 
 | header_align = left/right/center
 | header_background = 
 | footer    = 
 | footer_align = left/right/center
 | footer_background = 
 | width     = 
 | image1    = 
 | width1    = 
 | caption1  = 
 | image2    = 
 | width2    = 
 | caption2  = 
 | image3    = 
 | width3    = 
 | caption3  = 
 | image4    = 
 | width4    = 
 | caption4  = 
 | image5    = 
 | width5    = 
 | caption5  = 
}}

Examples[sunting | sunting sumber]

{{{box_caption}}}
{{{box_caption}}}
Players are cautioned with a yellow card, and sent off with a red card, which is sometimes round.
{{multiple image
 | footer    = Players are cautioned...
 | width     = 60
 | image1    = Yellow card.svg
 | image2    = Red card.svg
}}


PNG transparency demonstration
A PNG image with an 8-bit transparency layer...
A PNG image with an 8-bit transparency layer...
...here overlaid onto a checkered background.
...here overlaid onto a checkered background.
{{multiple image
 | align     = left
 | direction = vertical
 | header    = [[PNG]] transparency demonstration
 | width     = 200
 | image1    = PNG transparency demonstration 1.png
 | caption1  = A PNG image...
 | image2    = PNG transparency demonstration 2.png
 | caption2  = ...here overlaid...
}}


Number 2
Number 2
Number 3
Number 3
Number 4
Number 4
When a user has many of one type of barnstar, they can represent them with ribbons and these numerals to indicate the count.
{{multiple image
 | footer   = When a user has...
 | width    = 60
 | image1   = Ribbon numeral 2.png
 | caption1 = Number 2
 | image2   = Ribbon numeral 3.png
 | caption2 = Number 3
 | image3   = Ribbon numeral 4.png
 | caption3 = Number 4
}}


See also[sunting | sunting sumber]