Template talk:Gallery-nomix: Difference between revisions
imported>Stephen Ewen (example of usage) |
imported>Stephen Ewen (;Bugs) |
||
(16 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Gallery | The {{tl|Gallery-nomix}} template shows up to 30 images with captions, and the number is easily expandable. | ||
|caption= | |||
|width= | '''This template is for use only for galleries where the following two conditions exist:''' | ||
#Each image is by the same author. | |||
#Each image is released under the same license or license family. | |||
Each image with caption is embedded in table of the same size. As a result the browser displays images row by row, with as many on one row as fit in the window. | |||
The parameters are ''width'' and ''lines''. | |||
The ''lines'' parameter specifies the number of lines for the captions. If for an image the text does not fit in this number of lines a vertical scroll bar appears for the caption this image. Typically this ''lines'' parameter is set depending on the ''width'' parameter and the maximum length of all captions, and such that even for users with a large font setting it is enough, since the vertical scroll bar is not convenient, but just an "emergency measure". | |||
If a word in a caption is longer than the width of the image a ''horizontal'' scroll bar appears. The appearance of a horizontal and vertical scrollbar are independent of each other. | |||
It uses {{tl|Gallery-nomix/Sub}}. | |||
;Bugs | |||
#In Opera, the vertical scroll bars do not appear; to avoid this, simply choose a number in the lines perimeter that avoids them. | |||
#If you reload the gallery page in Firefox, it reduces the number of images appearing per line by one. All the images still appear. So, for example, if there are three images in a row and you reload, two images will appear per row. If you navigate to the page again, 3 appear again. | |||
---- | |||
{{Gallery-nomix | |||
|caption=Fruits and Vegetables<br /><font | |||
style="background-color:#e5ffe5; color: rgb(65, 65, 65);">©</font> <small><font | |||
style="color: rgb(65, 65, 65);">All photos: Petréa Mitchell</font></small> | |||
|width=235 | |||
|lines=3 | |lines=3 | ||
|PepperThreeAmigosSerrano.jpg|Image one caption goes here | |PepperThreeAmigosSerrano.jpg|Image one caption goes here |
Latest revision as of 01:41, 28 October 2007
The {{Gallery-nomix}} template shows up to 30 images with captions, and the number is easily expandable.
This template is for use only for galleries where the following two conditions exist:
- Each image is by the same author.
- Each image is released under the same license or license family.
Each image with caption is embedded in table of the same size. As a result the browser displays images row by row, with as many on one row as fit in the window.
The parameters are width and lines.
The lines parameter specifies the number of lines for the captions. If for an image the text does not fit in this number of lines a vertical scroll bar appears for the caption this image. Typically this lines parameter is set depending on the width parameter and the maximum length of all captions, and such that even for users with a large font setting it is enough, since the vertical scroll bar is not convenient, but just an "emergency measure".
If a word in a caption is longer than the width of the image a horizontal scroll bar appears. The appearance of a horizontal and vertical scrollbar are independent of each other.
It uses {{Gallery-nomix/Sub}}.
- Bugs
- In Opera, the vertical scroll bars do not appear; to avoid this, simply choose a number in the lines perimeter that avoids them.
- If you reload the gallery page in Firefox, it reduces the number of images appearing per line by one. All the images still appear. So, for example, if there are three images in a row and you reload, two images will appear per row. If you navigate to the page again, 3 appear again.
Fruits and Vegetables © All photos: Petréa Mitchell | ||||||||||||||||||||||||||||||||||||||||
|