Changes

Jump to: navigation, search

Editing help

6 bytes added, 20:46, 27 May 2011
Display a random image
'''A random image can be displayed with various optional parameters, such as size, left or right aligned and pre-defined selection of named images to limit the choice from. Here are some examples:'''
 
<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>
<randomimage size="150" float="left" choices="Augustiner_001.jpg|Augustiner-Keller_002.jpg|Augustiner-Keller_003.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="Augustiner_001.jpg|Augustiner-Keller_002.jpg|Augustiner-Keller_003.jpg" /></nowiki></span>
Anonymous user

Navigation menu