Difference between revisions of "Template:RandImage"
From EncyclopAtys
CeNobiteElf (talk | contribs) m |
CeNobiteElf (talk | contribs) 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 | + | |1={{{1}}} |
− | |2={{{2 | + | |2={{{2}}} |
− | |3={{{3 | + | |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 03: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.