Předłoha:wjacore wobrazy
- Slědowaca dokumentacija je zlokalizowana pod Předłoha:wjacore wobrazy/dokumentacija. [rediguj]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
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ć{{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.
}}
{{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.
}}
{{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ć
{{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'')
}}
With links (link[n])
wobdźěłać
{{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).
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:
- File:Donkey in Clovelly, North Devon, England.jpg shows "Donkey in Clovelly, North Devon, England.jpg (750 × 536 pixels, file size: 125 KB, MIME type: image/jpeg)"
- File:Rainbow trout.png shows "Rainbow_trout.png (300 × 300 pixels, file size: 158 KB, MIME type: image/png)"
- 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ć=
{{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.
{{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.
Parameter | Wopisanje | Typ | Status | |
---|---|---|---|---|
Alignment | align | 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.
| Mehrzeiliger Text | namjetowane |
Direction | direction | Direction in which to tile the images.
| Mehrzeiliger Text | namjetowane |
Width | width | 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
| Mehrzeiliger Text | namjetowane |
Background color | background color | Defines the background color between the border of the box and the images. | Mehrzeiliger Text | opcionalne |
Header | header | žadyn wopis | Mehrzeiliger Text | opcionalne |
Footer | footer | žadyn wopis | Mehrzeiliger Text | opcionalne |
Caption alignment | caption_align | žadyn wopis
| Mehrzeiliger Text | opcionalne |
Header alignment | header_align | žadyn wopis
| Mehrzeiliger Text | opcionalne |
Footer alignment | footer_align | žadyn wopis
| Mehrzeiliger Text | opcionalne |
Header background | header_background | žadyn wopis | Mehrzeiliger Text | opcionalne |
Footer background | footer_background | žadyn wopis | Mehrzeiliger Text | opcionalne |
Image 1 | image1 | Image 1 is name of first image. Similarly for Image 2, etc. File name only; no "File:" or "Image:" prefix.
| Mehrzeiliger Text | namjetowane |
Width 1 | width1 | width 1 is width of first image. Similarly for Width 2, etc. | Čisło | opcionalne |
Alt text 1 | alt1 | The [[alt text]] of first image (see [[WP:ALT]] on Wikipedia). Similarly for Alt text 2, etc. | Mehrzeiliger Text | opcionalne |
Caption 1 | caption1 | Caption 1 is caption of first image. Similarly for Caption 2, etc. | Mehrzeiliger Text | namjetowane |
Link 1 | link1 | 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 Text | opcionalne |
Image 2 | image2 | žadyn wopis
| Mehrzeiliger Text | namjetowane |
Width 2 | width2 | žadyn wopis | Mehrzeiliger Text | opcionalne |
Alt text 2 | alt2 | žadyn wopis | Mehrzeiliger Text | opcionalne |
Caption 2 | caption2 | žadyn wopis | Mehrzeiliger Text | namjetowane |
Link 2 | link2 | žadyn wopis | Mehrzeiliger Text | opcionalne |
Image 3 | image3 | žadyn wopis
| Mehrzeiliger Text | opcionalne |
Width 3 | width3 | žadyn wopis | Mehrzeiliger Text | opcionalne |
Alt text 3 | alt3 | žadyn wopis | Mehrzeiliger Text | opcionalne |
Caption 3 | caption3 | žadyn wopis | Mehrzeiliger Text | opcionalne |
Link 3 | link3 | žadyn wopis | Mehrzeiliger Text | opcionalne |