Changes

Jump to: navigation, search

Help:Editing

1,606 bytes added, 21:32, 27 May 2011
Wide images
<pre><nowiki>{{wide image|Bezavona_pano2.jpg|1800px|Fort Dauphin panorama|250px|right}}</nowiki></pre>
 
== Random image display ==
 
'''A random image can be displayed along with various optional parameters, such as size, left or right aligned and a pre-defined array of named images to limit the selection from.'''
 
<randomimage float="left" />
 
This code can be used to display a random image from the complete repository of images on the site:<br>
 
<span style="background:#f6f6f6;"><nowiki><randomimage float="left" /></nowiki></span><br>
 
An automatic caption will be pulled from the image descripion page.
<br clear="all">
 
<randomimage float="left">Random image</randomimage>
 
This example code can be used to display a random image with a pre-defined caption, eg. 'A random image', for all images:<br>
<span style="background:#f6f6f6;"><nowiki><randomimage float="left">A random image</randomimage></nowiki></span>
<br clear="all">
 
The <nowiki><randomimage></nowiki> tag supports the following attributes:
* size - set the image width (default is the user's thumbnail width).
* float - float the image; valid values are 'left', 'center' and 'right'.
* choices - limits the image selection to a list of images separated by a vertical bar. For example:
 
<randomimage size="150" float="left" choices="Chocolaterie_Robert_024.jpg|Chocolaterie_Colbert_01.jpg|Cinagra_066.jpg" />
 
This example is a 150 pixels width image, aligned to the left and with a pre-defined array of named images to choose from:<br>
<span style="background:#f6f6f6;"><nowiki><randomimage size="150" float="left" choices="Chocolaterie_Robert_024.jpg|Chocolaterie_Colbert_01.jpg|Cinagra_066.jpg" /></nowiki></span>
 
<br clear="all">
== Table of Contents ==
Anonymous user

Navigation menu