Changes
→Display a random image
== 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>
<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>