Planungskompendium Energieverteilung:Syntax/Galleries

Aus Planungskompendium Energieverteilung
< Planungskompendium Energieverteilung:Syntax
Version vom 7. Dezember 2021, 10:08 Uhr von LMischler (Diskussion | Beiträge) (1 Version importiert: Syntax pages - exported from PPR-FR)
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|M13|Example of electronic trip units of circuit-breakers providing harmonic related information||
|PB116802.jpg||MTZ
|PB116803.jpg||Micrologic
|PB116804.jpg||Compact NSX
}}

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"