Template:Panorama
This template uses Lua: |
TemplateData
TemplateData for Panorama
Insert a wide image with configurable height. For standard height, use template "Wide image" instead.
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 = Example.jpg
|height =
|width =
|alt =
|caption =
|dir =
|align =
}}
Commented invocation
{{Panorama
|image = File:Example.jpg <!-- Must start with "File:" -->
|height = 300 <!-- Height of image. In pixels, no units. Use Template:Wide_image to set the width instead -->
|width = <!-- Limit the width of Frame enclosing the image. Include units e.g. 9px or 9%. Default is based on width of web browser -->
|alt = <!-- Alternate text for visually impaired readers. -->
|caption = <!-- Caption/text to render below the image -->
|dir = <!-- Can be: ltr (default) or rtl. Should scroll bar start at the very left (ltr = left-to-right) or very right (rtl)? -->
|align = <!-- Frame alignment. Can be: left (default), right, center, or none. -->
}}
Simple example
{{Panorama
|image = 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
.
The caption can be centered by replacing |caption=Text
with |caption={{center|Text}}
. In the example above, replacing |caption=
with
|caption = {{center|Panorama of Ushuaia from 2005-02-06}}
produces:
Right-to-left scrolling
Same as the example, but with |dir=rtl
.
Tracking category
See also
- {{Panorama link}}
- {{PanoViewer}} - for interactive 360 degree photospheres
- {{Scalable image}}
- {{Tall image}} – for images too large in the other dimension
- {{Wide image}} – alternative template for panoramas
See what we do next...
OR
By submitting your email or phone number, you're giving mschf permission to send you email and/or recurring marketing texts. Data rates may apply. Text stop to cancel, help for help.
Success: You're subscribed now !