Jump to content

Template:Panorama/doc: Difference between revisions

From Noumenapedia
→TemplateData: This is normally the last section before bottom matter, such as See Also.→Examples: Move the basic description of what this template is for out of the Examples section, and into the lede.
 
m 1 revision imported
 
(No difference)

Latest revision as of 07:55, 10 September 2026

__EXPECTED_UNCONNECTED_PAGE__

The main function of {{Panorama}}, as opposed to {{Wide image}}, is that the template allows you to specify a desired height of the panorama.

Examples

Blank invocation

<syntaxhighlight lang="wikitext" style="overflow:auto;">

</syntaxhighlight>

Commented invocation

<syntaxhighlight lang="wikitext" style="overflow:auto;">

</syntaxhighlight>

Simple example

<syntaxhighlight lang="wikitext" style="overflow:auto;">

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

</syntaxhighlight>

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

Same as the previous example, but with <syntaxhighlight lang="wikitext" inline style="display: none;" />|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 <syntaxhighlight lang="wikitext" inline style="display: none;" />|caption=Text with |caption={{center|Text}}. In the example above, replacing <syntaxhighlight lang="wikitext" inline style="display: none;" />|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

Same as the example, but with <syntaxhighlight lang="wikitext" inline style="display: none;" />|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

TemplateData

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

<templatedata> { "params": { "image": { "label": "Image", "description": "Title for the image file to display. Must start with \"File:\".", "example": "File:Ushuaia_panorama_from_seaside_big.jpg", "type": "string", "required": true }, "width": { "label": "Viewport width", "description": "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 \"%\").", "example": "400px", "type": "string", "default": "Automatic based on width of web browser window." }, "dir": { "label": "Viewport direction", "description": "Set to \"rtl\" to start the viewport at the right-hand side of the image, with \"right-to-left\" scrolling.", "example": "rtl", "type": "string", "default": "ltr - Left to right" }, "height": { "label": "Image height", "description": "How tall to display the image, in pixels. Must be set without any unit or suffix.", "example": "300", "type": "number", "required": true }, "alt": { "label": "Alternate text", "description": "Alternate text to use instead of the image, for visually impaired readers. See the WP:ALT page for guidance.", "type": "string" }, "caption": { "label": "Caption", "description": "Caption to render below the image.", "type": "content" },

               "align": {
                       "label": "Image alignment",
                       "description": "If supplied, how to position the image on the page.",
                       "example": "left",
                       "type": "string"
               }

}, "description": "Insert a wide image with configurable height. For standard height, use template \"Wide image\" instead.", "paramOrder": [ "image", "height", "width", "alt", "caption", "dir",

               "align"

], "format": "block" } </templatedata>

Tracking category

See also