• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Panorama/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Panorama
This is the template sandbox page for Template:Panorama (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:Wide image (sandbox)

Contents

  • 1 TemplateData
  • 2 Examples
    • 2.1 Blank invocation
    • 2.2 Commented invocation
    • 2.3 Simple example
    • 2.4 Smaller
    • 2.5 Right-to-left scrolling
  • 3 Tracking category
  • 4 See also

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Panorama in articles based on its TemplateData.

TemplateData for Panorama

Insert a wide image with configurable height. For standard height, use template "Wide image" instead.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Imageimage

Title for the image file to display. Must start with "File:".

Example
File:Ushuaia_panorama_from_seaside_big.jpg
Stringrequired
Image heightheight

How tall to display the image, in pixels. Must be set without any unit or suffix.

Example
300
Numberrequired
Viewport widthwidth

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 "%").

Default
Automatic based on width of web browser window.
Example
400px
Stringoptional
Alternate textalt

Alternate text to use instead of the image, for visually impaired readers. See the WP:ALT page for guidance.

Stringoptional
Captioncaption

Caption to render below the image.

Contentoptional
Viewport directiondir

Set to "rtl" to start the viewport at the right-hand side of the image, with "right-to-left" scrolling.

Default
ltr - Left to right
Example
rtl
Stringoptional
Image alignmentalign

If supplied, how to position the image on the page.

Example
left
Stringoptional

Examples

edit

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

edit
{{Panorama
|image   = Example.jpg
|height  = 
|width   = 
|alt     = 
|caption = 
|dir     = 
|align   =
}}

Commented invocation

edit
{{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

edit
{{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.

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.
Panorama of Ushuaia from 2005-02-06

Smaller

edit

Same as the previous example, but with |height=80.

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.
Panorama of Ushuaia from 2005-02-06

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:

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.
Panorama of Ushuaia from 2005-02-06

Right-to-left scrolling

edit

Same as the example, but with |dir=rtl.

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.
Panorama of Ushuaia from 2005-02-06

Tracking category

edit
  • Category:Pages using panorama with unknown parameters (2)

See also

edit
  • {{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
The above documentation is transcluded from Template:Panorama/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Panorama/sandbox&oldid=892931599"
Last edited on 17 April 2019, at 20:22

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 17 April 2019, at 20:22 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop