Templat:Multiple image

Daripada Wikipedia, ensiklopedia bebas.
Jump to navigation Jump to search
Pendokumenan templat[lihat] [sunting] [sejarah] [nyahcache]

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 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 sumber]

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...
...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 3
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
}}


TemplateData[sunting sumber]

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

Parameter templat

Templat ini lebih menyukai format parameter dalam blok.

ParameterKeteranganJenisStatus
Alignmentalign

Sets text-wrapping around image box, where "none" places the box on the left edge with no text-wrapping, "center" places the box at center with no text-wrapping and "left" and "right" refer to position of box on screen with text-wrapping.

Tersedia
right
Contoh
left/right/center/none
Rentetandisarankan
Directiondirection

Direction in which to tile the images.

Tersedia
horizontal
Contoh
horizontal/vertical
Rentetandisarankan
Frame widthtotal_width

Use to scale the images to the same height and this total width. Do not use both total_width and width. Integer width in pixels; no "px" suffix

Contoh
400
Angkadisarankan
Row layoutperrow

Create an array of images, with multiple rows. The value passed to may be a single number or a list of numbers with each row delimited by /. Can be combined with total_width for automatic sizing of images.

Contoh
1 / 2 / 1
Rentetanpilihan
Image widthwidth

Width overrides Width 1, Width 2, Width 3, etc. If you want the images to be different sizes, do not provide the width parameter. Integer width in pixels; no "px" suffix

Contoh
200
Angkapilihan
Background colorbackground color

Defines the background color between the border of the box and the images. Changing the background can be bad for accessibility, avoid when possible.

Contoh
#EEFFGG or red
Rentetanpilihan
Caption alignmentcaption_align

tiada keterangan

Tersedia
left
Contoh
left/right/center
Rentetanpilihan
Image 1image1

Image 1 is name of first image. Similarly for Image 2, etc. File name only; no "File:" or "Image:" prefix.

Contoh
example.jpg
Faildiperlukan
Width 1width1

width 1 is width of first image. Similarly for Width 2, etc.

Angkapilihan
Alt text 1alt1

The [[alt text]] of first image (see [[WP:ALT]]). Similarly for Alt text 2, etc.

Barisdisarankan
Caption 1caption1

Caption 1 is caption of first image. Similarly for Caption 2, etc.

Kandungandisarankan
Link 1link1

Where the first page links to. Similarly for Link 2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per [[WP:ALT]]. Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction.

Halamanpilihan
Thumbtime 1thumbtime1

If image1 is an Ogg Theora file, sets the time within the video that is used for the initial display. Either a number of seconds or hours:minutes:seconds. Similarly for Thumb time 2, etc.

Rentetanpilihan
Image 2image2

tiada keterangan

Contoh
example.jpg
Faildisarankan
Width 2width2

tiada keterangan

Angkapilihan
Alt text 2alt2

tiada keterangan

Barispilihan
Caption 2caption2

tiada keterangan

Kandungandisarankan
Link 2link2

tiada keterangan

Halamanpilihan
Thumbtime 2thumbtime2

tiada keterangan

Rentetanpilihan
Image 3image3

tiada keterangan

Contoh
example.jpg
Failpilihan
Width 3width3

tiada keterangan

Angkapilihan
Alt text 3alt3

tiada keterangan

Barispilihan
Caption 3caption3

tiada keterangan

Kandunganpilihan
Link 3link3

tiada keterangan

Halamanpilihan
Thumbtime 3thumbtime3

tiada keterangan

Rentetanpilihan
Image gapimg_gap

Override the distance between adjacent images. Integer width in pixels; no "px" suffix

Contoh
20
Angkapilihan
Image styleimage_style

Override the default styling of the image frame.

Rentetanpilihan
Headerheader

A header text to place above the entire frame.

Kandunganpilihan
Header backgroundheader_background

Defines the background color of the header field. Changing the background can be bad for accessibility, avoid when possible

Contoh
#EEFFGG or red
Rentetanpilihan
Header alignmentheader_align

tiada keterangan

Tersedia
center
Contoh
left/right/center
Rentetanpilihan
Footerfooter

tiada keterangan

Kandunganpilihan
Footer backgroundfooter_background

Defines the background color of the footer field. Changing the background can be bad for accessibility, avoid when possible

Contoh
#EEFFGG or red
Rentetanpilihan
Footer alignmentfooter_align

tiada keterangan

Tersedia
left
Contoh
left/right/center
Rentetanpilihan

See also[sunting sumber]