Template:Wide image
Template:TOCRight This template allows you to easily include a panorama image. If the image is too wide, scrollbars will be added. If you do not want the image to use a thumbnail frame, you can use the template {{wide image-noborder}} instead.
Usage
[सम्पादन]{{Wide image|name|image width|caption|box width|alignment|alt=alt text}}
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 "%",[clarification needed] will set the width of the box to that amount.
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 the to 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 change the scroll direction from left-to-right to right-to-left, use |dir=rtl
.
Example
[सम्पादन]Without caption
[सम्पादन]{{wide image|Helsinki z00.jpg|1800px| |alt=Panorama of city with mixture of five to ten story buildings}}
smaller
[सम्पादन]{{wide image|Helsinki z00.jpg|400px| |alt=Panorama of city with mixture of five to ten story buildings}}
With caption
[सम्पादन]{{wide image|Helsinki z00.jpg|1800px|[[Helsinki]] panorama |alt=Panorama of city with mixture of five to ten story buildings}}
Right aligned
[सम्पादन]{{wide image|Helsinki z00.jpg|1800px|[[Helsinki]] panorama|45%|right |alt=Panorama of city with mixture of five to ten story buildings}} This text goes after the ''wide image'' template. [[Lorem ipsum]] dolor sit amet...
This text goes after the wide image template. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Left aligned
[सम्पादन]{{wide image|Helsinki z00.jpg|1800px|[[Helsinki]] panorama|45%|left |alt=Panorama of city with mixture of five to ten story buildings}} This text goes after the ''wide image'' template. Lorem ipsum dolor sit amet...
This text goes after the wide image template. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
No alignment
[सम्पादन]{{wide image|Helsinki z00.jpg|1800px|[[Helsinki]] panorama|45%|none |alt=Panorama of city with mixture of five to ten story buildings}} This text goes after the ''wide image'' template. Lorem ipsum dolor sit amet...
This text goes after the wide image template. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Scroll right to left
[सम्पादन]{{wide image|Helsinki z00.jpg|1800px|[[Helsinki]] panorama |alt=Panorama of city with mixture of five to ten story buildings |dir=rtl}}
Template data
[सम्पादन]Allows you to easily include a panorama image. If the image is too wide, scrollbars will be added.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Filename | 1 | Name of the file to display. Example: Helsinki z00.jpg | String | required |
Image width | 2 | Give the width in pixels (like: 1600px) that you want the included image to be | String | required |
Caption | 3 | A caption for the image that will be shown below image | String | optional |
Width of frame | 4 | Limit the width of the frame enclosing the picture. Example: "400px" or "40%" | String | optional |
Frame alignment | 5 | Either of: left, right, center or none. When specified also requires you to set the "Width of frame" option
| String | optional |
Picture alignment | dir | Use the value 'rtl' to make the right side of the image the initial visible portion inside the scroll frame
| String | optional |
Textual alternative | alt | Describes the image's visual appearance to visually disabled readers. Please see WP:ALT for details | String | optional |
See also
[सम्पादन]विकिमिडिया मंका य् थ्व विषय नाप स्वापु दुगु मिडिया दु: Template:Wide image |
- {{Wide image-noborder}} - without the thumb-border, and defaults to the actual size
- {{Panorama}} - with an option to set the height
- {{Wide template}}
- {{Tall image}}
The above documentation is transcluded from Template:Wide 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. |