« Modèle:Gallery2 » : différence entre les versions
De Guide de l'Installation Electrique
Aucun résumé des modifications |
Aucun résumé des modifications |
||
(9 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
<table class="table_noCSS | <div class="EIG_gallery" style="display:inline-block; background-color=#F9F9F9; border: 1px solid #ccc"> | ||
{{#switch: {{{4|}}} | | <table class="table_noCSS EIG_gallery2"> | ||
{{#switch: {{{4|}}} | |||
| 1 = <!-- | |||
--><tr><!-- | --><tr><!-- | ||
---->{{#if: {{{5|}}}|<td class="EIG-gallery-image" style="padding: | ---->{{#if: {{{5|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">[[File:{{{5|}}}]]</td>|}}<!-- | ||
---->{{#if: {{{8|}}}|<td class="EIG-gallery-image" style="padding: | --></tr><!-- | ||
---->{{#if: {{{11|}}}|<td class="EIG-gallery-image" style="padding: | --><tr><!-- | ||
---->{{#if: {{{5|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{6|}}}|'''[{{{6|}}}] '''|}}{{{7|}}}</td>|}}<!-- | |||
--></tr><!-- | |||
-->{{#if: {{{8|}}}|<!-- | |||
----><tr><!-- | |||
------>{{#if: {{{8|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{8|}}}]]</td>|}}<!-- | |||
----></tr><!-- | |||
----><tr><!-- | |||
------>{{#if: {{{8|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{9|}}}|'''[{{{9|}}}] '''|}}{{{10|}}}</td>|}}<!-- | |||
----></tr>|}}<!-- | |||
-->{{#if: {{{11|}}}|<!-- | |||
----><tr><!-- | |||
------>{{#if: {{{11|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{11|}}}]]</td>|}}<!-- | |||
----></tr><!-- | |||
----><tr><!-- | |||
------>{{#if: {{{11|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{12|}}}|'''[{{{12|}}}] '''|}}{{{13|}}}</td>|}}<!-- | |||
----></tr>|}}<!-- | |||
-->{{#if: {{{14|}}}|<!-- | |||
----><tr><!-- | |||
------>{{#if: {{{14|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{14|}}}]]</td>|}}<!-- | |||
----></tr><!-- | |||
----><tr><!-- | |||
------>{{#if: {{{14|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{15|}}}|'''[{{{15|}}}] '''|}}{{{16|}}}</td>|}}<!-- | |||
----></tr>|}} | |||
| 2 = <!-- | |||
--><tr><!-- | |||
---->{{#if: {{{5|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">[[File:{{{5|}}}]]</td>|}}<!-- | |||
---->{{#if: {{{8|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{8|}}}]]</td>|}}<!-- | |||
--></tr><!-- | |||
--><tr><!-- | |||
---->{{#if: {{{5|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{6|}}}|'''[{{{6|}}}] '''|}}{{{7|}}}</td>|}}<!-- | |||
---->{{#if: {{{8|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{9|}}}|'''[{{{9|}}}] '''|}}{{{10|}}}</td>|}}<!-- | |||
--></tr><!-- | |||
-->{{#if: {{{11|}}}|<!-- | |||
----><tr><!-- | |||
------>{{#if: {{{11|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{11|}}}]]</td>|}}<!-- | |||
------>{{#if: {{{14|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{14|}}}]]</td>|}}<!-- | |||
----></tr><!-- | |||
----><tr><!-- | |||
------>{{#if: {{{11|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{12|}}}|'''[{{{12|}}}] '''|}}{{{13|}}}</td>|}}<!-- | |||
------>{{#if: {{{14|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{15|}}}|'''[{{{15|}}}] '''|}}{{{16|}}}</td>|}}<!-- | |||
----></tr>|}}<!-- | |||
-->{{#if: {{{17|}}}|<!-- | |||
----><tr><!-- | |||
------>{{#if: {{{17|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{17|}}}]]</td>|}}<!-- | |||
------>{{#if: {{{20|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{20|}}}]]</td>|}}<!-- | |||
----></tr><!-- | |||
----><tr><!-- | |||
------>{{#if: {{{17|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{18|}}}|'''[{{{18|}}}] '''|}}{{{19|}}}</td>|}}<!-- | |||
------>{{#if: {{{20|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{21|}}}|'''[{{{21|}}}] '''|}}{{{22|}}}</td>|}}<!-- | |||
----></tr>|}}<!-- | |||
-->{{#if: {{{23|}}}|<!-- | |||
----><tr><!-- | |||
------>{{#if: {{{23|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{23|}}}]]</td>|}}<!-- | |||
------>{{#if: {{{26|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{26|}}}]]</td>|}}<!-- | |||
----></tr><!-- | |||
----><tr><!-- | |||
------>{{#if: {{{23|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{24|}}}|'''[{{{24|}}}] '''|}}{{{25|}}}</td>|}}<!-- | |||
------>{{#if: {{{26|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{27|}}}|'''[{{{27|}}}] '''|}}{{{28|}}}</td>|}}<!-- | |||
----></tr>|}} | |||
| 3 = <!-- | |||
--><tr><!-- | |||
---->{{#if: {{{5|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">[[File:{{{5|}}}]]</td>|}}<!-- | |||
---->{{#if: {{{8|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{8|}}}]]</td>|}}<!-- | |||
---->{{#if: {{{11|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{11|}}}]]</td>|}}<!-- | |||
--></tr><!-- | --></tr><!-- | ||
--><tr><!-- | --><tr><!-- | ||
Ligne 14 : | Ligne 79 : | ||
-->{{#if: {{{14|}}}|<!-- | -->{{#if: {{{14|}}}|<!-- | ||
----><tr><!-- | ----><tr><!-- | ||
------>{{#if: {{{14|}}}|<td class="EIG-gallery-image" style="padding: | ------>{{#if: {{{14|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{14|}}}]]</td>|}}<!-- | ||
------>{{#if: {{{17|}}}|<td class="EIG-gallery-image" style="padding: | ------>{{#if: {{{17|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{17|}}}]]</td>|}}<!-- | ||
------>{{#if: {{{20|}}}|<td class="EIG-gallery-image" style="padding: | ------>{{#if: {{{20|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{20|}}}]]</td>|}}<!-- | ||
----></tr><!-- | ----></tr><!-- | ||
----><tr><!-- | ----><tr><!-- | ||
Ligne 22 : | Ligne 87 : | ||
------>{{#if: {{{17|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{18|}}}|'''[{{{18|}}}] '''|}}{{{19|}}}</td>|}}<!-- | ------>{{#if: {{{17|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{18|}}}|'''[{{{18|}}}] '''|}}{{{19|}}}</td>|}}<!-- | ||
------>{{#if: {{{20|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{21|}}}|'''[{{{21|}}}] '''|}}{{{22|}}}</td>|}}<!-- | ------>{{#if: {{{20|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{21|}}}|'''[{{{21|}}}] '''|}}{{{22|}}}</td>|}}<!-- | ||
----></tr>|}} | ----></tr>|}}<!-- | ||
-->{{#if: {{{23|}}}|<!-- | -->{{#if: {{{23|}}}|<!-- | ||
----><tr><!-- | ----><tr><!-- | ||
------>{{#if: {{{23|}}}|<td class="EIG-gallery-image" style="padding: | ------>{{#if: {{{23|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{23|}}}]]</td>|}}<!-- | ||
------>{{#if: {{{26|}}}|<td class="EIG-gallery-image" style="padding: | ------>{{#if: {{{26|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{26|}}}]]</td>|}}<!-- | ||
------>{{#if: {{{29|}}}|<td class="EIG-gallery-image" style="padding: | ------>{{#if: {{{29|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{29|}}}]]</td>|}}<!-- | ||
----></tr><!-- | ----></tr><!-- | ||
----><tr><!-- | ----><tr><!-- | ||
Ligne 36 : | Ligne 101 : | ||
| <!-- | | <!-- | ||
--><tr><!-- | --><tr><!-- | ||
---->{{#if: {{{5|}}}|<td class="EIG-gallery-image" style="padding: | ---->{{#if: {{{5|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">[[File:{{{5|}}}]]</td>|}}<!-- | ||
---->{{#if: {{{8|}}}|<td class="EIG-gallery-image" style="padding: | ---->{{#if: {{{8|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{8|}}}]]</td>|}}<!-- | ||
---->{{#if: {{{11|}}}|<td class="EIG-gallery-image" style="padding: | ---->{{#if: {{{11|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{11|}}}]]</td>|}}<!-- | ||
---->{{#if: {{{14|}}}|<td class="EIG-gallery-image" style="padding: | ---->{{#if: {{{14|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{14|}}}]]</td>|}}<!-- | ||
--></tr><!-- | --></tr><!-- | ||
--><tr><!-- | --><tr><!-- | ||
Ligne 49 : | Ligne 114 : | ||
-->{{#if: {{{17|}}}|<!-- | -->{{#if: {{{17|}}}|<!-- | ||
----><tr><!-- | ----><tr><!-- | ||
------>{{#if: {{{17|}}}|<td class="EIG-gallery-image" style="padding: | ------>{{#if: {{{17|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{17|}}}]]</td>|}}<!-- | ||
------>{{#if: {{{20|}}}|<td class="EIG-gallery-image" style="padding: | ------>{{#if: {{{20|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{20|}}}]]</td>|}}<!-- | ||
------>{{#if: {{{23|}}}|<td class="EIG-gallery-image" style="padding: | ------>{{#if: {{{23|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{23|}}}]]</td>|}}<!-- | ||
------>{{#if: {{{26|}}}|<td class="EIG-gallery-image" style="padding: | ------>{{#if: {{{26|}}}|<td class="EIG-gallery-image" style="padding: 0px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{26|}}}]]</td>|}}<!-- | ||
----></tr><!-- | ----></tr><!-- | ||
----><tr><!-- | ----><tr><!-- | ||
Ligne 61 : | Ligne 126 : | ||
----></tr>|}} | ----></tr>|}} | ||
}} | }} | ||
< | <caption style="text-align: left; caption-side: bottom;">{{FigTitle|{{{1|}}}|{{{2|}}}}}</caption></table> | ||
{{FigTitle|{{{1|}}}|{{{2|}}}}}<noinclude> | </div><noinclude> | ||
Ligne 76 : | Ligne 141 : | ||
<pre> | <pre> | ||
{{ Gallery | <1=fig-num> | <2=fig-title> |<3=widths>| | {{ Gallery | <1=fig-num> | <2=fig-title> |<3=widths>|<4=images-per-row> | ||
|<5=image-filename-1> | <6=image-letter-1> | <7=image-title-1> | |<5=image-filename-1> | <6=image-letter-1> | <7=image-title-1> | ||
|<8=image-filename-2> | <9=image-letter-2> | <10=image-title-2> | |<8=image-filename-2> | <9=image-letter-2> | <10=image-title-2> | ||
Ligne 85 : | Ligne 150 : | ||
Where the global gallery parameters are: | Where the global gallery parameters are: | ||
<fig-num> | <fig-num> is like: A11, B42a ... | ||
<fig-title> | <fig-title> is like: Application of the diversity factor (ks) to an apartment block of 5 storeys | ||
<widths> | <widths> is like: 220px (the common width applied to all gallery "cells", should be bigger than the largest image in the gallery) | ||
<4=images-per-row> is like: 3 (default if value not provided = 4) | |||
and then for each image in the gallery | and then for each image in the gallery : | ||
<image-filename> is like: DB422001.svg (= image file name WITH the file extension) | <image-filename> is like: DB422001.svg (= image file name WITH the file extension) | ||
<image-letter> is like: a (it will be enclosed in squared brackets, like [a], and highlighted eg bold) | <image-letter> is like: a (it will be enclosed in squared brackets, like [a], and highlighted eg bold) | ||
<image-title> is like: this is the title related to this image | <image-title> is like: this is the title related to this image | ||
maximum number of images taken: | |||
if 1 per row = 4 | |||
if 2 per row = 8 | |||
if 3 per row = 9 | |||
if 4 per row = 8 | |||
</noinclude> | </noinclude> |
Dernière version du 8 septembre 2016 à 11:15
Description
This template is used to create a gallery of up to 5 images on one row
Syntax:
{{ Gallery | <1=fig-num> | <2=fig-title> |<3=widths>|<4=images-per-row> |<5=image-filename-1> | <6=image-letter-1> | <7=image-title-1> |<8=image-filename-2> | <9=image-letter-2> | <10=image-title-2> ... |<17=image-filename-5> | <18=image-letter-5> | <19=image-title-5> }}
Where the global gallery parameters are:
<fig-num> is like: A11, B42a ... <fig-title> is like: Application of the diversity factor (ks) to an apartment block of 5 storeys <widths> is like: 220px (the common width applied to all gallery "cells", should be bigger than the largest image in the gallery) <4=images-per-row> is like: 3 (default if value not provided = 4)
and then for each image in the gallery :
<image-filename> is like: DB422001.svg (= image file name WITH the file extension) <image-letter> is like: a (it will be enclosed in squared brackets, like [a], and highlighted eg bold) <image-title> is like: this is the title related to this image
maximum number of images taken:
if 1 per row = 4 if 2 per row = 8 if 3 per row = 9 if 4 per row = 8