Planungskompendium Energieverteilung:Syntax/Galleries

Aus Planungskompendium Energieverteilung
< Planungskompendium Energieverteilung:Syntax
Version vom 7. Dezember 2021, 10:25 Uhr von LMischler (Diskussion | Beiträge)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu:Navigation, Suche

Syntax and usage

Syntax:

{{ Gallery | <fig-num> | <fig-title> |<widths>|<images-per-row>
|<image-filename-1> | <image-letter-1> |  <image-title-1>
|<image-filename-2> | <image-letter-2> |  <image-title-2>
...
|<image-filename-8> | <image-letter-8> |  <image-title-8> }}

Where the global parameters (first line) are:

<fig-num>           is like:   A11 ...
<fig-title>         is like:   Application of the diversity factor (ks) to an apartment block of 5 storeys


and then one line for each image in the gallery:

<image-filename> is like:   DB422001.svg   (= image file name WITH the file extension)
<image-letter>   is like:   a    (Optional. If provided, it will be enclosed in squared brackets, like [a], and added in the individual image title)
<image-title>    is like:   this is the individual image title related to this image    (optional)


There are 2 more (optional) global parameters (it's recommended NOT to use them, unless really necessary)

<widths>            is like:   220px
                        If provided, all gallery image "cells" will be resized to this width.
                        If NOT provided, the first image in the gallery is used to fix the width of all gallery cells
                        The height of gallery cells is always chosen so as to keep the width/height proportions of the first image
                        Recommendation = don't use this parameter, but review the size of the images in the same gallery
<images-per-row>  is like:   3
                        If not provided = automatic = as many images as fit in the page
                        If provided (example = 3) = the gallery will show only 3 images per row

You may also refer to Template:Gallery


Example

{{Gallery|K16|Frequenzumrichter mit verschiedenen Leistungsgrößen (Baureihe Altivar, Schneider Electric||
|PB116784.jpg||Altivar 12 (≤ 4 kW )
|PB116785.jpg||Altivar 212 (≤ 75 kW)
|PB116786.jpg||Altivar 71 (≤ 630 kW)}}

nota : it is important to add all | separating all possible parameters, even the ones "reserving" space for optional (empty) parameters

Example - using parameter "per-row"

Same example, adding parameter per-row = 2

Example - using parameter "widths" to resize the images

Also showing the look&feel with no "sub-titles"