Difference between revisions of "Template:Gallery"
From Species-ID
(inline attribution text removed, please refer to first version for list of original wikipedia authors) |
m (up to 100 images) |
||
Line 30: | Line 30: | ||
-->{{#if:{{{57|}}}|{{Gallery/aux|{{{57|}}}|{{{58|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | -->{{#if:{{{57|}}}|{{Gallery/aux|{{{57|}}}|{{{58|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
-->{{#if:{{{59|}}}|{{Gallery/aux|{{{59|}}}|{{{60|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | -->{{#if:{{{59|}}}|{{Gallery/aux|{{{59|}}}|{{{60|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
− | --></td></tr>{{#if:{{{ | + | -->{{#if:{{{61|}}}|{{Gallery/aux|{{{61|}}}|{{{62|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- |
+ | -->{{#if:{{{63|}}}|{{Gallery/aux|{{{63|}}}|{{{64|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | -->{{#if:{{{65|}}}|{{Gallery/aux|{{{65|}}}|{{{66|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | -->{{#if:{{{67|}}}|{{Gallery/aux|{{{67|}}}|{{{68|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | -->{{#if:{{{69|}}}|{{Gallery/aux|{{{69|}}}|{{{70|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | -->{{#if:{{{71|}}}|{{Gallery/aux|{{{71|}}}|{{{72|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | -->{{#if:{{{73|}}}|{{Gallery/aux|{{{73|}}}|{{{74|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | -->{{#if:{{{75|}}}|{{Gallery/aux|{{{75|}}}|{{{76|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | -->{{#if:{{{77|}}}|{{Gallery/aux|{{{77|}}}|{{{78|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | -->{{#if:{{{79|}}}|{{Gallery/aux|{{{79|}}}|{{{80|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | -->{{#if:{{{81|}}}|{{Gallery/aux|{{{81|}}}|{{{82|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | -->{{#if:{{{83|}}}|{{Gallery/aux|{{{83|}}}|{{{84|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | -->{{#if:{{{85|}}}|{{Gallery/aux|{{{85|}}}|{{{86|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | -->{{#if:{{{87|}}}|{{Gallery/aux|{{{87|}}}|{{{88|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | -->{{#if:{{{89|}}}|{{Gallery/aux|{{{89|}}}|{{{90|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | -->{{#if:{{{91|}}}|{{Gallery/aux|{{{91|}}}|{{{92|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | -->{{#if:{{{93|}}}|{{Gallery/aux|{{{93|}}}|{{{94|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | -->{{#if:{{{95|}}}|{{Gallery/aux|{{{95|}}}|{{{96|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | -->{{#if:{{{97|}}}|{{Gallery/aux|{{{97|}}}|{{{98|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | -->{{#if:{{{99|}}}|{{Gallery/aux|{{{99|}}}|{{{100|}}}|width={{{width|180}}}|lines={{{lines|2}}}}}}}<!-- | ||
+ | --></td></tr>{{#if:{{{101|}}}|<tr><td style="text-align:center; color:red;">The maximum number of images (100) is exceeded !</td></tr>}}{{#if:{{{footer|}}}|<tr><td colspan="10" style="text-align:right; font-size:80%; line-height:1em;">{{{footer}}}</td></tr>}}</table></includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 17:52, 23 May 2012
[edit] [ ]
Template documentation
This gallery template shows up to 100 images. The big advantage over the build-in gallery tag (<gallery>...</gallery>) is that the available space will be dynamically used, depending on available screen space. Furthermore, the captions may contain template calls (which is not possible with the build-in tag).
Every image is embedded in its own HTML-table, and are floated left. The number of images per row is based upon the width specified and the width of the screen, which allows greater flexibility than the build-in <gallery> tag.
Example
{{Gallery | title=Title of gallery goes here | footer=*Image credit: Wikipedia commons, the free encyclopedia<br />**and so on... | width=150 | lines=2 | File:Information_icon.svg|this is a caption | File:Information_icon.svg| | File:Information_icon.svg| | File:Information_icon.svg| | File:Information_icon.svg| | File:Information_icon.svg| | File:Information_icon.svg| | File:Information_icon.svg| | File:Information_icon.svg|[[Help:Contents/Links|Links]] can be put in captions. | File:Information_icon.svg| | File:Information_icon.svg| | File:Information_icon.svg| | File:Information_icon.svg|Full [[MediaWiki]]<br />[[syntax]] may now be used… | File:Information_icon.svg| }}
results in:
Title of gallery goes here | ||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||
*Image credit: Wikipedia commons, the free encyclopedia **and so on... |
See English Wikipedia: Gallery template for detailed information.