Template:Panorama: Difference between revisions
Caleb Cooper (talk | contribs) Created page with "{{#invoke:Wide image|main}}{{#invoke:Check for unknown parameters|check|unknown={{main other|_VALUE_{{PAGENAME}}}}|pr..." |
(No difference)
|
Latest revision as of 14:04, 19 October 2020
| This page was automatically imported from Commons any changes will be overwritten, the source page is here () |
| This template uses Lua: |
TemplateData
TemplateData for Panorama
Insert a wide image with configurable height. For standard height, use template "Wide image" instead.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Image | image | Title for the image file to display. Must start with "File:".
| String | required |
| Image height | height | How tall to display the image, in pixels. Must be set without any unit or suffix.
| Number | required |
| 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 | optional |
| Alternate text | alt | Alternate text to use instead of the image, for visually impaired readers. See the WP:ALT page for guidance. | String | optional |
| Caption | caption | Caption to render below the image. | Content | optional |
| Viewport direction | dir | Set to "rtl" to start the viewport at the right-hand side of the image, with "right-to-left" scrolling.
| String | optional |
| Image alignment | align | If supplied, how to position the image on the page.
| String | optional |
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 =
|align =
}}
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}}