Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]

This template allows you to include a big image. If the image is too wide, the size of thumbnail frame will be smaller.

Cách sử dụng sửa

{{Scalable image|name|image width|caption|box width|alignment|alt=alt text}}
  • An image width option is required. This specifies the full width at which the image will be displayed, and is distinct from box width (the width of the box on the page).
  • A caption option is optional, and an image frame will be used if a caption is supplied. If the caption contains an equal sign, use the parameter |3=caption in the place of |caption. If the caption supplied is exactly equal to image syntax such as thumb, the image's tooltip will no longer display the caption, but instead default to the name of the image.
  • The box width option is optional, and if given a value in pixels followed by "px", or a value in percent followed by "%", will set the width of the box to that amount. For example, 45% would use 45% of the text section width, (not a percentage of the image width).
  • The alignment option is also optional but requires box width to be defined. If given a value of right or left, the entire wide image will float to the right or left. If given a value of none the image will not float.
  • The alt text describes the image's visual appearance to visually disabled readers. Please see WP:ALT for details.

To hide the tooltip, use |tooltip=no.

To align the caption, use |align-cap=.

To remove the outer frame, use |frame=no.

Ví dụ sửa

Không có chú thích sửa

{{scalable image|Dew on grass Luc Viatour.jpg|2500px|
|alt=Dews trên cỏ}}
Dews trên cỏ

nhỏ hơn sửa

{{scalable image|Dew on grass Luc Viatour.jpg|500px|
|alt=Dews trên cỏ}}
Dews trên cỏ

Có chú thích sửa

{{scalable image|Dew on grass Luc Viatour.jpg|2500px|Dews trên cỏ
|alt=Dews trên cỏ}}
Dews trên cỏ
Dews trên cỏ

Không có tooltip sửa

{{scalable image|Dew on grass Luc Viatour.jpg|2500px|Dews trên cỏ
|alt=Dews trên cỏ
|tooltip=no}}
Dews trên cỏ
Dews trên cỏ

Dữ liệu bản mẫu sửa

Đây là tài liệu Dữ liệu bản mẫu cho bản mẫu này được sử dụng bởi Trình soạn thảo trực quan và các công cụ khác; xem báo cáo sử dụng tham số hàng tháng cho bản mẫu này.

Dữ liệu bản mẫu cho Scalable image

Allows you to include a big image. If the image is too wide, the size of thumbnail frame will be smaller.

Tham số bản mẫu[Quản lý Dữ liệu bản mẫu]

Tham sốMiêu tảKiểuTrạng thái
Filename1

Name of the file to display. Example: Dew on grass Luc Viatour.jpg

Chuỗi dàibắt buộc
Image width2

Give the width in pixels (like: 1600px) that you want the included image to be

Chuỗi dàibắt buộc
Caption3

A caption for the image that will be shown below image

Chuỗi dàitùy chọn
Width of frame4

Limit the width of the frame enclosing the picture. Example: "400px" or "40%"

Chuỗi dàitùy chọn
Frame alignment5 align

Either of: left, right, center or none. When specified also requires you to set the "Width of frame" option

Mặc định
center
Chuỗi dàitùy chọn
Textual alternativealt

Describes the image's visual appearance to visually disabled readers. Please see WP:ALT for details

Chuỗi dàitùy chọn
Show tooltiptooltip

Use the value 'no' to make the tooltip of the image not shown inside the frame

Mặc định
yes
Chuỗi dàitùy chọn

Xem thêm sửa