Template:Gallery: Difference between revisions
From Electrical Installation Guide
(correction) |
(extended to 4 rows of 4 images) |
||
Line 136: | Line 136: | ||
------>{{#if: {{{35|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{36|}}}|'''[{{{36|}}}] '''|}}{{{37|}}}</td>|}}<!-- | ------>{{#if: {{{35|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{36|}}}|'''[{{{36|}}}] '''|}}{{{37|}}}</td>|}}<!-- | ||
------>{{#if: {{{38|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{39|}}}|'''[{{{39|}}}] '''|}}{{{40|}}}</td>|}}<!-- | ------>{{#if: {{{38|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{39|}}}|'''[{{{39|}}}] '''|}}{{{40|}}}</td>|}}<!-- | ||
----></tr>|}} | |||
-->{{#if: {{{41|}}}|<!-- | |||
----><tr><!-- | |||
------>{{#if: {{{41|}}}|<td class="EIG-gallery-image" style="padding: 10px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{41|}}}]]</td>|}}<!-- | |||
------>{{#if: {{{44|}}}|<td class="EIG-gallery-image" style="padding: 10px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{44|}}}]]</td>|}}<!-- | |||
------>{{#if: {{{47|}}}|<td class="EIG-gallery-image" style="padding: 10px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{47|}}}]]</td>|}}<!-- | |||
------>{{#if: {{{50|}}}|<td class="EIG-gallery-image" style="padding: 10px; border: 1px solid #ccc; vertical-align:middle; text-align:center; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};"> [[File:{{{50|}}}]]</td>|}}<!-- | |||
----></tr><!-- | |||
----><tr><!-- | |||
------>{{#if: {{{41|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{42|}}}|'''[{{{42|}}}] '''|}}{{{43|}}}</td>|}}<!-- | |||
------>{{#if: {{{44|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{45|}}}|'''[{{{45|}}}] '''|}}{{{46|}}}</td>|}}<!-- | |||
------>{{#if: {{{47|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{48|}}}|'''[{{{48|}}}] '''|}}{{{49|}}}</td>|}}<!-- | |||
------>{{#if: {{{50|}}}|<td class="EIG-gallery-text" style="padding: 0 4px; {{#if: {{{3|}}}|width:{{{3}}}|width:150px}};">{{#if: {{{51|}}}|'''[{{{51|}}}] '''|}}{{{52|}}}</td>|}}<!-- | |||
----></tr>|}} | ----></tr>|}} | ||
}} | }} | ||
Line 176: | Line 189: | ||
if 2 per row = 8 | if 2 per row = 8 | ||
if 3 per row = 9 | if 3 per row = 9 | ||
if 4 per row = | if 4 per row = 16 | ||
</noinclude> | </noinclude> |
Revision as of 16:26, 28 November 2016
-->
-->
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 = 16