« Modèle:Gallery » : différence entre les versions

De Guide de l'Installation Electrique
Aller à :navigation, rechercher
(modified names of classes (more specific to EIG gallery))
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
<table class="table_noCSS EIG_gallery" style="margin-top:0.5em; border-spacing: 10px 5px;">
<table class="table_noCSS EIG_gallery">
<tr><!--
<tr><!--
-->{{#if: {{{5|}}}|<td class="EIG-gallery-image" style="padding: 10px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:200px}};">[[File:{{{5|}}}]]</td>|}}<!--
-->{{#if: {{{5|}}}|<td class="EIG-gallery-image" style="{{#if: {{{3|}}}|width:{{{3}}}|width:200px}};">[[File:{{{5|}}}]]</td>|}}<!--
-->{{#if: {{{8|}}}|<td class="EIG-gallery-image" style="padding: 10px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:200px}};"> [[File:{{{8|}}}]]</td>|}}<!--
-->{{#if: {{{8|}}}|<td class="EIG-gallery-image" style="{{#if: {{{3|}}}|width:{{{3}}}|width:200px}};"> [[File:{{{8|}}}]]</td>|}}<!--
-->{{#if: {{{11|}}}|<td class="EIG-gallery-image" style="padding: 10px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:200px}};"> [[File:{{{11|}}}]]</td>|}}<!--
-->{{#if: {{{11|}}}|<td class="EIG-gallery-image" style="{{#if: {{{3|}}}|width:{{{3}}}|width:200px}};"> [[File:{{{11|}}}]]</td>|}}<!--
-->{{#if: {{{14|}}}|<td class="EIG-gallery-image" style="padding: 10px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:200px}};"> [[File:{{{14|}}}]]</td>|}}
-->{{#if: {{{14|}}}|<td class="EIG-gallery-image" style="{{#if: {{{3|}}}|width:{{{3}}}|width:200px}};"> [[File:{{{14|}}}]]</td>|}}
</tr>
</tr>
<tr><!--
<tr><!--
-->{{#if: {{{5|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:200px}};">{{#if: {{{6|}}}|'''[{{{6|}}}] '''|}}{{{7|}}}</td>|}}<!--
-->{{#if: {{{5|}}}|<td class="EIG-gallery-text" style="{{#if: {{{3|}}}|width:{{{3}}}|width:200px}};">{{#if: {{{6|}}}|'''[{{{6|}}}] '''|}}{{{7|}}}</td>|}}<!--
-->{{#if: {{{8|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:200px}};">{{#if: {{{9|}}}|'''[{{{9|}}}] '''|}}{{{10|}}}</td>|}}<!--
-->{{#if: {{{8|}}}|<td class="EIG-gallery-text" style="{{#if: {{{3|}}}|width:{{{3}}}|width:200px}};">{{#if: {{{9|}}}|'''[{{{9|}}}] '''|}}{{{10|}}}</td>|}}<!--
-->{{#if: {{{11|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:200px}};">{{#if: {{{12|}}}|'''[{{{12|}}}] '''|}}{{{13|}}}</td>|}}<!--
-->{{#if: {{{11|}}}|<td class="EIG-gallery-text" style="{{#if: {{{3|}}}|width:{{{3}}}|width:200px}};">{{#if: {{{12|}}}|'''[{{{12|}}}] '''|}}{{{13|}}}</td>|}}<!--
-->{{#if: {{{14|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:200px}};">{{#if: {{{15|}}}|'''[{{{15|}}}] '''|}}{{{16|}}}</td>|}}
-->{{#if: {{{14|}}}|<td class="EIG-gallery-text" style="{{#if: {{{3|}}}|width:{{{3}}}|width:200px}};">{{#if: {{{15|}}}|'''[{{{15|}}}] '''|}}{{{16|}}}</td>|}}
</tr>
</tr>
{{#if: {{{17|}}}|<!--
{{#if: {{{17|}}}|<!--
--><tr><!--
--><tr><!--
---->{{#if: {{{17|}}}|<td class="EIG-gallery-image" style="padding: 10px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:200px}};"> [[File:{{{17|}}}]]</td>|}}<!--
---->{{#if: {{{17|}}}|<td class="EIG-gallery-image" style="{{#if: {{{3|}}}|width:{{{3}}}|width:200px}};"> [[File:{{{17|}}}]]</td>|}}<!--
---->{{#if: {{{20|}}}|<td class="EIG-gallery-image" style="padding: 10px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:200px}};"> [[File:{{{20|}}}]]</td>|}}<!--
---->{{#if: {{{20|}}}|<td class="EIG-gallery-image" style="{{#if: {{{3|}}}|width:{{{3}}}|width:200px}};"> [[File:{{{20|}}}]]</td>|}}<!--
---->{{#if: {{{23|}}}|<td class="EIG-gallery-image" style="padding: 10px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:200px}};"> [[File:{{{23|}}}]]</td>|}}<!--
---->{{#if: {{{23|}}}|<td class="EIG-gallery-image" style="{{#if: {{{3|}}}|width:{{{3}}}|width:200px}};"> [[File:{{{23|}}}]]</td>|}}<!--
---->{{#if: {{{26|}}}|<td class="EIG-gallery-image" style="padding: 10px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:200px}};"> [[File:{{{26|}}}]]</td>|}}<!--
---->{{#if: {{{26|}}}|<td class="EIG-gallery-image" style="{{#if: {{{3|}}}|width:{{{3}}}|width:200px}};"> [[File:{{{26|}}}]]</td>|}}<!--
--></tr><!--
--></tr><!--
--><tr><!--
--><tr><!--
---->{{#if: {{{17|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:200px}};">{{#if: {{{18|}}}|'''[{{{18|}}}] '''|}}{{{19|}}}</td>|}}<!--
---->{{#if: {{{17|}}}|<td class="EIG-gallery-text" style="{{#if: {{{3|}}}|width:{{{3}}}|width:200px}};">{{#if: {{{18|}}}|'''[{{{18|}}}] '''|}}{{{19|}}}</td>|}}<!--
---->{{#if: {{{20|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:200px}};">{{#if: {{{21|}}}|'''[{{{21|}}}] '''|}}{{{22|}}}</td>|}}<!--
---->{{#if: {{{20|}}}|<td class="EIG-gallery-text" style="{{#if: {{{3|}}}|width:{{{3}}}|width:200px}};">{{#if: {{{21|}}}|'''[{{{21|}}}] '''|}}{{{22|}}}</td>|}}<!--
---->{{#if: {{{23|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:200px}};">{{#if: {{{24|}}}|'''[{{{15|}}}] '''|}}{{{25|}}}</td>|}}<!--
---->{{#if: {{{23|}}}|<td class="EIG-gallery-text" style="{{#if: {{{3|}}}|width:{{{3}}}|width:200px}};">{{#if: {{{24|}}}|'''[{{{15|}}}] '''|}}{{{25|}}}</td>|}}<!--
---->{{#if: {{{26|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:200px}};">{{#if: {{{27|}}}|'''[{{{18|}}}] '''|}}{{{28|}}}</td>|}}<!--
---->{{#if: {{{26|}}}|<td class="EIG-gallery-text" style="{{#if: {{{3|}}}|width:{{{3}}}|width:200px}};">{{#if: {{{27|}}}|'''[{{{18|}}}] '''|}}{{{28|}}}</td>|}}<!--
--></tr>|}}
--></tr>|}}
</table>
</table>

Version du 4 juillet 2016 à 12:41


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>|
|<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)

and then for each image in the gallery (max. 5):

<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