Difference between revisions of "Template:RandImage"

From EncyclopAtys

Jump to: navigation, search
m
m
Line 3: Line 3:
  
 
{{#vardefine:randimage|{{#rand:1|3}}}}[[File:{{#switch:{{#var:randimage}}
 
{{#vardefine:randimage|{{#rand:1|3}}}}[[File:{{#switch:{{#var:randimage}}
|1={{{1|Cultural Clash.jpg}}}
+
|1={{{1}}}
|2={{{2|Degrades.jpg}}}
+
|2={{{2}}}
|3={{{3|Enter.jpg}}}}}|thumb|{{#switch:{{#var:randimage}}
+
|3={{{3}}}}}|thumb|300px|{{#switch:{{#var:randimage}}
 
|1=File 1 caption
 
|1=File 1 caption
 
|2=File 2 caption
 
|2=File 2 caption
 
|2=File 3 caption}}]]
 
|2=File 3 caption}}]]
 +
 +
{{{1}}}
 +
 +
{{{2}}}
 +
 +
{{{3}}}
  
 
<noinclude>
 
<noinclude>

Revision as of 04:42, 24 January 2010


[[File:{{{2}}}|thumb|300px|File 2 caption]]

{{{1}}}

{{{2}}}

{{{3}}}


Description

{{RandImage|<image names>|caption=<caption>}}

Parameters

unnamed parameter 1 and 2
Not optional. The name of the image without the File: prefix.
unnamed parameter 3 - 9
Optional. The name of all the other images, without the File: prefix.
caption
Optional. The caption which are shown below the image.