Template talk:Gallery-nomix: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Stephen Ewen
mNo edit summary
imported>Stephen Ewen
(;Bugs)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This {{tl|gallery}}, using {{tl|gallery/Sub}}, shows up to 30 images with captions. Each image with caption is embedded in a HTML-table of the same size. As a result the browser displays them row by row, with as many on one row as fit in the window.
The {{tl|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 parameters are ''width'' and ''lines''.
Line 7: Line 14:
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.
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.


{{Gallery
It uses {{tl|Gallery-nomix/Sub}}.
|caption=Add caption here
 
|width=180
;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>&nbsp;<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:

  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