قالب:Scalable image
| هذا القالب يستخدم أنماط القوالب: |
This template allows you to include a big image. If the image is too wide, the size of thumbnail frame will be smaller.
Usage
{{Scalable image|name|image width|caption|box width|alignment|alt=alt text}}
- An
image widthvalue is required; specify a number of pixels, followed by "px". 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
captionoption 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=captionin the place of|caption. If the caption supplied is exactly equal to image syntax such asthumb, the image's tooltip will no longer display the caption, but instead default to the name of the image. - The
box widthoption 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
alignmentoption is also optional but requires box width to be defined. If given a value ofrightorleft, the entire wide image will float to the right or left. If given a value ofnonethe image will not float. - The
alt textdescribes 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.
Example
Without caption
{{scalable image|Dew on grass Luc Viatour.jpg|2500px|
|alt=Dews on grass}}smaller
{{scalable image|Dew on grass Luc Viatour.jpg|500px|
|alt=Dews on grass}}With caption
{{scalable image|Dew on grass Luc Viatour.jpg|2500px|Dews on grass
|alt=Dews on grass}}Without tooltip
{{scalable image|Dew on grass Luc Viatour.jpg|2500px|Dews on grass
|alt=Dews on grass
|tooltip=no}}TemplateData
See the monthly error report for this template.
TemplateData for Scalable image
Allows you to include a big image. If the image is too wide, the size of thumbnail frame will be smaller.
| وسيط | وصف | نوع | حالة | |
|---|---|---|---|---|
| Filename | 1 | Name of the file to display. Example: Dew on grass Luc Viatour.jpg | نص | مطلوب |
| Image width | 2 | Give the width in pixels (like: 1600px) that you want the included image to be | نص | مطلوب |
| Caption | 3 | A caption for the image that will be shown below image | نص | اختياري |
| Width of frame | 4 | Limit the width of the frame enclosing the picture. Example: "400px" or "40%" | نص | اختياري |
| Frame alignment | 5 align | Either of: left, right, center or none. When specified also requires you to set the "Width of frame" option
| نص | اختياري |
| Textual alternative | alt | Describes the image's visual appearance to visually disabled readers. Please see WP:ALT for details | نص | اختياري |
| Show tooltip | tooltip | Use the value 'no' to make the tooltip of the image not shown inside the frame
| نص | اختياري |
انظر أيضاً
- {{Wide image}}—with a scrollbar
- {{Panorama}}—with an option to set the height
- {{PanoViewer}}—with a viewer to reproduce 360° surround photographs
| The above documentation is transcluded from قالب:Scalable image/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |