Difference between revisions of "Template:RandImage"

From EncyclopAtys

Jump to: navigation, search
m
m
Line 1: Line 1:
<randomimage size="300px" float="center" choices="Forestnight.jpg|Wooky.jpg|Berello.jpg|Cloppers.jpg|Thesosbar.jpg"><div class="thumbcaption"> </div></randomimage><noinclude>
+
<randomimage size="{{{size|300px}}}" float="{{{position|center}}}" choices="
 +
{{ #if: {{{1|}}} | {{!}}{{{1}}} }}{{ #if: {{{2|}}} | {{!}}{{{2}}} }}{{ #if: {{{3|}}} | {{!}}{{{3}}} }}{{ #if: {{{4|}}} | {{!}}{{{4}}} }}{{ #if: {{{5|}}} | {{!}}{{{5}}} }}{{ #if: {{{6|}}} | {{!}}{{{6}}} }}{{ #if: {{{7|}}} | {{!}}{{{7}}} }}{{ #if: {{{8|}}} | {{!}}{{{8}}} }}{{ #if: {{{9|}}} | {{!}}{{{9}}} }}}}"><div class="thumbcaption">{{{caption| }}}</div></randomimage><noinclude>
 +
==Description==
 +
{{RandImage|<image names>|caption=<caption>}}
 +
{{RandImage|size=<size>|position=<position>|<image names>}}
 +
</pre>
 +
 
 +
=== Parameters ===
 +
; ''unnamed parameter'' 1
 +
: Not optional. The name of the image without the File: prefix.
 +
; ''unnamed parameter'' 2 - 9
 +
: Optional. The name of all the other images, without the File: prefix.
 +
; ''caption''
 +
: Optional. The caption which are shown below the image.
 +
; ''size''
 +
: Optional. The size of the images.
 +
; ''position''
 +
: Optional. Left, right or center.
 +
 
 
[[Category: Utility templates|Randon Image]]
 
[[Category: Utility templates|Randon Image]]
 
</noinclude>
 
</noinclude>

Revision as of 02:34, 24 January 2010

Description


</pre>

Parameters

unnamed parameter 1
Not optional. The name of the image without the File: prefix.
unnamed parameter 2 - 9
Optional. The name of all the other images, without the File: prefix.
caption
Optional. The caption which are shown below the image.
size
Optional. The size of the images.
position
Optional. Left, right or center.