ढाँचा:Panorama
यो ढाँचाले लुआ प्रयोग गर्दछ: |
TemplateData
सम्पादन गर्नुहोस्Panoramaको कागजात
Insert a wide image with configurable height. For standard height, use template "Wide image" instead.
मापदण्ड | विवरण | प्रकार | स्थिति | |
---|---|---|---|---|
Image | image | Title for the image file to display. Must start with "File:".
| String | आवश्यक |
Image height | height | How tall to display the image, in pixels. Must be set without any unit or suffix.
| सङ्ख्या | आवश्यक |
Viewport width | width | Limit the width of the scrollable viewport in which the image is displayed. Input is used as CSS width, as such it must include a unit (e.g. "px" or "%").
| String | वैकल्पिक |
Alternate text | alt | Alternate text to use instead of the image, for visually impaired readers. See the WP:ALT page for guidance. | String | वैकल्पिक |
Caption | caption | Caption to render below the image. | सामग्री | वैकल्पिक |
Viewport direction | dir | Set to "rtl" to start the viewport at the right-hand side of the image, with "right-to-left" scrolling.
| String | वैकल्पिक |
Examples
सम्पादन गर्नुहोस्The main function of {{Panorama}}, as opposed to {{Wide image}}, is that the template allows you to specify a desired height of the panorama.
Blank invocation
सम्पादन गर्नुहोस्{{Panorama |image = File:Example.jpg |height = |width = |alt = |caption = |dir = }}
Simple example
सम्पादन गर्नुहोस्{{Panorama |image = File:Ushuaia_panorama_from_seaside_big.jpg |height = 230 |alt = A small city across a gray waterway under lowering gray clouds. A road leads to the city across a causeway. Mountains with snow and a low treeline form the backdrop. A few boats are in the water. |caption = Panorama of Ushuaia from 2005-02-06 }}
This displays File:Ushuaia panorama from seaside big.jpg, which is 7370×1010 pixels, as 1678×230, in a horizontally scrolling box, using the caption and alt text provided.
Smaller
सम्पादन गर्नुहोस्Same as the previous example, but with |height=80
.
Right-to-left scrolling
सम्पादन गर्नुहोस्Same as the example, but with |dir=rtl
.
Tracking category
सम्पादन गर्नुहोस्See also
सम्पादन गर्नुहोस्- {{Wide image}} – alternative template for panoramas
- {{Tall image}} – for images too large in the other dimension
- {{Panorama 2}}