Difference between revisions of "Template:RandImage"

From EncyclopAtys

Jump to: navigation, search
m
m
Line 1: Line 1:
<!-- <randomimage choices=""><div class="thumbcaption"> {{#if:{{{caption|}}}|{{{caption}}}| }}</div></randomimage>
+
<randomimage size="300px" float="center" choices="Cultural Clash.jpg|Degrades.jpg|Enter.jpg|Teleportation.jpg|Goodbye.jpg|Flowers.jpg|Karavan propaganda.jpg"><div class="thumbcaption"> {{#if:{{{caption|}}}|{{{caption}}}| }}</div></randomimage><!--
{{{1}}}|{{{2}}} {{ #if: {{{3|}}} | {{!}}{{{3}}} }}{{ #if: {{{4|}}} | {{!}}{{{4}}} }}{{ #if: {{{5|}}} | {{!}}{{{5}}} }}{{ #if: {{{6|}}} | {{!}}{{{6}}} }}{{ #if: {{{7|}}} | {{!}}{{{7}}} }}{{ #if: {{{8|}}} | {{!}}{{{8}}} }}{{ #if: {{{9|}}} | {{!}}{{{9}}} }}-->
 
  
{{#vardefine:randimage|{{#rand:1|3}}}}[[File:{{#switch:{{#var:randimage}}
+
{{{1}}}|{{{2}}} {{ #if: {{{3|}}} | {{!}}{{{3}}} }}{{ #if: {{{4|}}} | {{!}}{{{4}}} }}{{ #if: {{{5|}}} | {{!}}{{{5}}} }}{{ #if: {{{6|}}} | {{!}}{{{6}}} }}{{ #if: {{{7|}}} | {{!}}{{{7}}} }}{{ #if: {{{8|}}} | {{!}}{{{8}}} }}{{ #if: {{{9|}}} | {{!}}{{{9}}} }}
|1={{{1}}}
 
|2={{{2}}}
 
|3={{{3}}}}}|thumb|300px|{{#switch:{{#var:randimage}}
 
|1=File 1 caption
 
|2=File 2 caption
 
|2=File 3 caption}}]]
 
  
{{{1}}}
+
--><noinclude>
 
 
{{{2}}}
 
 
 
{{{3}}}
 
 
 
<noinclude>
 
 
==Description==
 
==Description==
 
<pre>
 
<pre>

Revision as of 03:58, 24 January 2010

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.