K wobsahej skočić

Předłoha:wjacore wobrazy

z Wikisłownika

This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box or for each image.

With the appropriate choice of parameters, the template can automatically resize images to a given total width with each image having the same height.

Be aware that this template does not respect users' default image size preferences. (w:Wikipedia:Image use policy states: Předłoha:Xt)

If image size parameters are omitted, this template sets all images at 200px wide, regardless of whether the reader has set a preference for some other default image width. This causes wjacore wobrazy to look out of scale to the other images in an article.

Syntaks a parametry

[wobdźěłać]
Žane awtomatiske připodobnjenje wulkosćow wšěch wobrazow na samsnu wysokosć
{{wjacore wobrazy
<!-- Parametry wuhotowanja -->
 | połoženje               = <!-- right (standardowy), left, center, none -->
 | směr                    = <!-- horicontalny (standardowy), wertikalny -->
 | pozadk                  = <!-- barba boksy -->
 | šěrokosć                = <!-- pokazana šěrokosć kóždeho wobraza w pixelach (cyłoličba, sufiks "px" preč wostajić); přepisa "šěrokosć[n]"s deleka -->
 | hłownaLinka_połoženje   = <!-- left (standardowy), center, right -->

<!-- Hornja linka -->
 | hornjaLinka_pozadk     = 
 | hornjaLinka_połoženje  = <!-- center (standardowy), left, right -->
 | hornjaLinka            = 

<!-- Wobraz 1 -->
 | wobraz1                 = <!-- jenož datajowe mjeno, t.r. bjez prefiksa "Dataja:" -->
 | šěrokosć1               = <!-- pokazana šěrokosć wobraza; přepisachu přez "šěrokosć" horjeka -->
 | alt1                    = 
 | link1                   = 
 | wopis1                  = 
<!-- Wobraz 2 -->
 | wobraz2                 = <!-- jenož datajowe mjeno, t.r. bjez prefiksa "Dataja:" -->
 | šěrokosć2               = <!-- pokazana šěrokosć wobraza; přepisachu přez "šěrokosć" horjeka -->
 | alt2                    = 
 | link2                   = 
 | wopis2                  = 
<!-- a tak dale, hač do maksimalnje 10 wobrazow (wobraz10) -->

<!-- Spódnja  linka -->
 | spódnjaLinka_pozadk     = 
 | spódnjaLinka_połoženje  = <!-- center (standardowy), left, right -->
 | spódnjaLinka            = 
}}
Awtomatiske připodobnjenje wulkosćow wšitkich wobrazow na samsnu wysokosć a na wěstu cyłkownu šěrokosć
{{wjacore wobrazy
<!-- Parametry wuhotowanja -->
 | połoženje               = <!-- right (standardowy), left, center, none -->
 | směr                    = <!-- horicontalny (standardowy), wertikalny -->
 | pozadk                  = <!-- barba boksy -->
 | dospołna_šěrokosć       = <!-- dospołna šěrokosć wšěch pokazanych wobrazow w pixelach (cyłoličba, sufiks "px" preč wostajić) -->
 | hłownaLinka_połoženje   = <!-- left (standardowy), center, right -->

<!-- Header -->
 | hornjaLinka_pozadk     = 
 | hornjaLinka_połoženje  = <!-- center (standardowy), left, right -->
 | hornjaLinka            = 

<!-- Wobraz 1 -->
 | wobraz1                 = <!-- jenož datajowe mjeno, t.r. bjez prefiksa "Dataja:" -->
 | šěrokosć1               = <!-- pokazana šěrokosć wobraza; přepisachu přez "šěrokosć" horjeka -->
 | wysokosć1               = 
 | alt1                    = 
 | link1                   = 
 | wopis1                  = 
<!-- Wobraz 2 -->
 | wobraz2                 = <!-- jenož datajowe mjeno, t.r. bjez prefiksa "Dataja:" -->
 | šěrokosć2               = <!-- pokazana šěrokosć wobraza; přepisachu přez "šěrokosć" horjeka -->
 | wysokosć2               = 
 | alt2                    = 
 | link2                   = 
 | wopis2                  = 
<!-- a tak dale, hač do maksimalnje 10 wobrazow (wobraz10) -->

<!-- Spódnja  linka -->
 | spódnjaLinka_pozadk     = 
 | spódnjaLinka_połoženje  = <!-- center (standardowy), left, right -->
 | spódnjaLinka            = 
}}

Prózdna předłoha

[wobdźěłać]
{{wjacore wobrazy
 | šěrokosć =
 | wobraz1 =
 | alt1 =
 | wobraz2 =
 | alt2 =
 | spódnjaLinka =
}}

Examples

[wobdźěłać]
Yellow cartouche
Red cartouche
Players are cautioned with a yellow card and sent off with a red card.
{{wjacore wobrazy
 | šěrokosć = 60
 | wobraz1 = Yellow card.svg
 | alt1 = Yellow cartouche
 | wobraz2 = Red card.svg
 | alt2 = Red cartouche
 | spódnjaLinka = Players are cautioned with a yellow card and sent off with a red card.
}}


PNG přewidny přikład
Colored dice with white background
A PNG image with an 8-bit transparency layer...
Colored dice with checkered background
...tu leži nad kašćikatym pozadkom.
{{wjacore wobrazy
 | połoženje = left
 | směr = vertical
 | šěrokosć = 200
 | hornjaLinka = [[w:Portable Network Graphics|PNG]] transparency demonstration
 | wobraz1 = PNG transparency demonstration 1.png
 | alt1 = Colored dice with white background
 | wopis1 = A PNG image with an 8-bit transparency layer...
 | wobraz2 = PNG transparency demonstration 2.png
 | alt2 = Colored dice with checkered background
 | wopis2 = ...here overlaying a checkered background.
}}


2
3
4
When a user has many of one type of barnstar, they can represent them with ribbons and these numerals to indicate the count.
{{wjacore wobrazy
 | šěrokosć = 60
 | wobraz1=Ribbon numeral 2.png | alt1=2
 | wobraz2=Ribbon numeral 3.png | alt2=3
 | wobraz3=Ribbon numeral 4.png | alt3=4
 | spódnjaLinka = When a user has many of one type of [[w:WP:BARN|barnstar]], they can represent them with [[w:WP:RIBBON|ribbons]] and these numerals to indicate the count.
}}


With background color

[wobdźěłać]
Green herb with a few tiny yellow-white flowers
Three small white and yellow flowers before green-leaf background
Leaves of a plant, in groups of three each with three lobes
Adoxa (Adoxa moschatellina)


{{wjacore wobrazy
 | połoženje = left
 | pozadk = #BBDD99
 | šěrokosć = 160
 | wobraz1 = Adoxa_moschatellina_210406.jpg
 | alt1 = Green herb with a few tiny yellow-white flowers
 | wobraz2 = Adoxa_moschatellina_210406a.jpg
 | alt2 = Three small white and yellow flowers before green-leaf background
 | wobraz3 = adoxa_moschatellina_blatt.jpeg
 | alt3 = Leaves of a plant, in groups of three each with three lobes
 | spódnjaLinka_pozadk = #BBDD99
 | spódnjaLinka_połoženje = center
 | spódnjaLinka = [[Adoxa]] (''Adoxa moschatellina'')
}}


[wobdźěłać]
Mul
Mul
(骡子 luózi)
Wosoł
Wosoł
(驴子 lǘzi)
A trout
Ryba
(=鱼 )
Mul wotkazuje na w:Mul, wosoł njewotkazuje nihdźe, a pstruha wotkazuje na zwučenu wopisnu stronu wobraza.


{{wjacore wobrazy
 | połoženje = left

 | wobraz1 = Frecklesmule.jpg
 | šěrokosć1 = 143
 | alt1 = Mul
 | link1 = w:Mul
 | wopis1 = Mul<br />(骡子 ''luózi'')

 | wobraz2 = Donkey in Clovelly, North Devon, England.jpg
 | šěrokosć2 = 150
 | alt2 = Wosoł
 | link2 =
 | wopis2  = Wosoł<br />(驴子 ''lǘzi'')

 | wobraz3 = Rainbow_trout.png
 | šěrokosć3 = 91
 | alt3 = A trout
 | wopis3  = Ryba<br />(鱼 ''yú'')

 | spódnjaLinka = Mul wotkazuje na [[w:Mul]], wosoł njewotkazuje nihdźe, a pstruha wotkazuje na zwučenu  wopisnu stronu wobraza.
}}

Using direction

[wobdźěłać]

By default, the images the template presents are displayed horizontally, as a row (see left; equivalent to setting |směr=horicontalny). To display them vertically, i.e. as a column, set |směr=wertikalny (see right).

(horicontalny)
(wertikalny)


To match image heights

[wobdźěłać]
Note: The following is unnecessary if all the images presented by the template have the same aspect ratio; if so, simply set width accordingly.
  • Decide on a total width for all the images, say 320px
  • Examine the individual image pages to obtain the full resolution. For example:
  • Specify the full width and height for each image, of the form:
    • |šěrokosć1= |wysokosć1= |šěrokosć2= |wysokosć2=
  • Set the total width using |dospołna_šěrokosć=
A donkey
Rectangular image of a donkey, originally 536 pixels high.
A trout
Square image of a trout, originally 300 pixels high.
Both images have been rendered with the same height, and a total width of 320px
{{wjacore wobrazy
 | połoženje = right
 | dospołna_šěrokosć = 320

 | wobraz1 = Donkey in Clovelly, North Devon, England.jpg
 | width1 = 750 | height1 = 536
 | alt1 = A donkey
 | wopis1 = Rectangular image of a donkey, originally 536 pixels high.

 | wobraz2 = Rainbow_trout.png
 | width2 = 300 | height2 = 300
 | alt2 = A trout
 | wopis2 = Square image of a trout, originally 300 pixels high.

 | spódnjaLinka = Both images have been rendered with the same height, and a total width of 320px
}}


Multiple rows

[wobdźěłać]

To create an array of images, with multiple rows, use |perrow=. The value passed to |perrow= may be a single number, or a list of numbers delimited by /. This feature may also be combined with |dospołna_šěrokosć= for multiple rows of images with the same total width.

Surveying Equipment. Clockwise from upper left: Optical Theodolite, Robotic total station, Optical level, RTK GPS Base station.
{{wjacore wobrazy|perrow = 2|dospołna_šěrokosć=300
| wobraz1 = Kern_Theodolit_DKM2-A.jpg  |šěrokosć1=319|wysokosć1=425
| wobraz2 = Total-Robotic-Station.jpg  |šěrokosć2=1728|wysokosć2=3072
| wobraz3 = DumpyLevel.jpg  |šěrokosć3=1600|wysokosć3=1200
| wobraz4 = GPS_Survey_Equipment_at_Weir_Dyke_Bridge_-_geograph.org.uk_-_336908.jpg|šěrokosć4=427|wysokosć4=640
| spódnjaLinka = Surveying Equipment. Clockwise from upper left: Optical Theodolite, Robotic total station, Optical level, [[w:Real-time kinematic|RTK]] GPS Base station.
}}


TemplateData

[wobdźěłać]

TemplateData for {{wjacore wobrazy}}

This template creates a box with two to ten images arranged vertically or horizontally with captions for the entire box and/or for each images.

Předłohowe parametry[Vorlagendaten bearbeiten]

Diese Vorlage bevorzugt Blockformatierung von Parametern.

ParameterWopisanjeTypStatus
Alignmentalign

Sets text-wrapping around image box, where "none" places the box on the left edge with no text-wrapping, "center" places the box at center with no text-wrapping and "left" and "right" refer to position of box on screen with text-wrapping.

Standard
right
Přikład
left/right/center/none
Mehrzeiliger Textnamjetowane
Directiondirection

Direction in which to tile the images.

Standard
horizontal
Přikład
horizontal/vertical
Mehrzeiliger Textnamjetowane
Widthwidth

Width overrides Width 1, Width 2, Width 3, etc. If you want the images to be different sizes, do not provide the width parameter. Integer width in pixels; no "px" suffix

Přikład
200
Mehrzeiliger Textnamjetowane
Background colorbackground color

Defines the background color between the border of the box and the images.

Mehrzeiliger Textopcionalne
Headerheader

žadyn wopis

Mehrzeiliger Textopcionalne
Footerfooter

žadyn wopis

Mehrzeiliger Textopcionalne
Caption alignmentcaption_align

žadyn wopis

Standard
left
Přikład
left/right/center
Mehrzeiliger Textopcionalne
Header alignmentheader_align

žadyn wopis

Standard
center
Přikład
left/right/center
Mehrzeiliger Textopcionalne
Footer alignmentfooter_align

žadyn wopis

Standard
left
Přikład
left/right/center
Mehrzeiliger Textopcionalne
Header backgroundheader_background

žadyn wopis

Mehrzeiliger Textopcionalne
Footer backgroundfooter_background

žadyn wopis

Mehrzeiliger Textopcionalne
Image 1image1

Image 1 is name of first image. Similarly for Image 2, etc. File name only; no "File:" or "Image:" prefix.

Přikład
example.jpg
Mehrzeiliger Textnamjetowane
Width 1width1

width 1 is width of first image. Similarly for Width 2, etc.

Čisłoopcionalne
Alt text 1alt1

The [[alt text]] of first image (see [[WP:ALT]] on Wikipedia). Similarly for Alt text 2, etc.

Mehrzeiliger Textopcionalne
Caption 1caption1

Caption 1 is caption of first image. Similarly for Caption 2, etc.

Mehrzeiliger Textnamjetowane
Link 1link1

Where the first page links to. Similarly for Link 2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per [[WP:ALT]] on Wikipedia. Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction.

Mehrzeiliger Textopcionalne
Image 2image2

žadyn wopis

Přikład
example.jpg
Mehrzeiliger Textnamjetowane
Width 2width2

žadyn wopis

Mehrzeiliger Textopcionalne
Alt text 2alt2

žadyn wopis

Mehrzeiliger Textopcionalne
Caption 2caption2

žadyn wopis

Mehrzeiliger Textnamjetowane
Link 2link2

žadyn wopis

Mehrzeiliger Textopcionalne
Image 3image3

žadyn wopis

Přikład
example.jpg
Mehrzeiliger Textopcionalne
Width 3width3

žadyn wopis

Mehrzeiliger Textopcionalne
Alt text 3alt3

žadyn wopis

Mehrzeiliger Textopcionalne
Caption 3caption3

žadyn wopis

Mehrzeiliger Textopcionalne
Link 3link3

žadyn wopis

Mehrzeiliger Textopcionalne