Template talk:Gallery-nomix

From Citizendium
Jump to navigation Jump to search

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:

  1. Each image is by the same author.
  2. 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
  1. In Opera, the vertical scroll bars do not appear; to avoid this, simply choose a number in the lines perimeter that avoids them.
  2. 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
Image one caption goes here
Image one caption goes here  
Image two caption goes here
Image two caption goes here  
Image three caption goes here
Image three caption goes here  
Image four caption goes here
Image four caption goes here  
Image five caption goes here
Image five caption goes here  
Image six caption goes here
Image six caption goes here  
Image seven caption goes here
Image seven caption goes here  
Image eight caption goes here
Image eight caption goes here  
Image nine caption goes here
Image nine caption goes here  
Image ten caption goes here
Image ten caption goes here  
Image eleven caption goes here
Image eleven caption goes here  
Image twelve caption goes here
Image twelve caption goes here  
Image thirteen caption goes here
Image thirteen caption goes here  
Image fourteen caption goes here
Image fourteen caption goes here  
Image fifteen caption goes here
Image fifteen caption goes here  
Image sixteen caption goes here
Image sixteen caption goes here  
Image seventeen caption goes here
Image seventeen caption goes here  
Image eighteen caption goes here
Image eighteen caption goes here  
Image nineteen caption goes here
Image nineteen caption goes here  
Image twenty caption goes here
Image twenty caption goes here