Predloga:Panorama

Iz Wikipedije, proste enciklopedije
Dokumentacija za predlogo[poglej] [uredi] [zgodovina] [osveži]

TemplateData[uredi kodo]

To je dokumentacija TemplateData za predlogo, ki jo uporabljajo Vizualni urejevalnik in druga orodja; glejte mesečno poročilo o uporabi parametrov za to predlogo.

TemplateData za Panorama

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

Parametri predloge[Urejanje podatkov predloge]

Za to predlogo je priporočljiva postavitev parametrov v bloku.

ParameterOpisVrstaStanje
Imageimage

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

Zgled
File:Ushuaia_panorama_from_seaside_big.jpg
Nizzahtevano
Image heightheight

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

Zgled
300
Številkazahtevano
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 "%").

Privzeto
Automatic based on width of web browser window.
Zgled
400px
Nizneobvezno
Alternate textalt

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

Nizneobvezno
Captioncaption

Caption to render below the image.

Vsebinaneobvezno
Viewport directiondir

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

Privzeto
ltr - Left to right
Zgled
rtl
Nizneobvezno
Image alignmentalign

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

Zgled
left
Nizneobvezno

Examples[uredi kodo]

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[uredi kodo]

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

Commented invocation[uredi kodo]

{{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[uredi kodo]

{{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[uredi kodo]

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[uredi kodo]

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[uredi kodo]

See also[uredi kodo]