Difference between revisions of "Template:RandImage"
From EncyclopAtys
CeNobiteElf (talk | contribs) m |
CeNobiteElf (talk | contribs) m |
||
Line 1: | Line 1: | ||
− | <randomimage size="{{#if:{{{size|}}}|{{{size}}}|300px}}" float="{{#if:{{{position|}}}|{{{position}}}|center}}" choices=" | + | <randomimage size="{{#if:{{{size|}}}|{{{size}}}|300px}}" float="{{#if:{{{position|}}}|{{{position}}}|center}}" choices="{{{1}}}|{{{2}}}"><div class="thumbcaption">{{#if:{{{caption|}}}|{{{caption}}}| }}</div></randomimage><noinclude> |
− | |||
{{ #if: {{{3|}}} | {{!}}{{{3}}} }}{{ #if: {{{4|}}} | {{!}}{{{4}}} }}{{ #if: {{{5|}}} | {{!}}{{{5}}} }}{{ #if: {{{6|}}} | {{!}}{{{6}}} }}{{ #if: {{{7|}}} | {{!}}{{{7}}} }}{{ #if: {{{8|}}} | {{!}}{{{8}}} }}{{ #if: {{{9|}}} | {{!}}{{{9}}} }} | {{ #if: {{{3|}}} | {{!}}{{{3}}} }}{{ #if: {{{4|}}} | {{!}}{{{4}}} }}{{ #if: {{{5|}}} | {{!}}{{{5}}} }}{{ #if: {{{6|}}} | {{!}}{{{6}}} }}{{ #if: {{{7|}}} | {{!}}{{{7}}} }}{{ #if: {{{8|}}} | {{!}}{{{8}}} }}{{ #if: {{{9|}}} | {{!}}{{{9}}} }} | ||
Line 11: | Line 10: | ||
=== Parameters === | === Parameters === | ||
− | ; ''unnamed parameter'' 1 | + | ; ''unnamed parameter'' 1 and 2 |
: Not optional. The name of the image without the File: prefix. | : Not optional. The name of the image without the File: prefix. | ||
− | ; ''unnamed parameter'' | + | ; ''unnamed parameter'' 3 - 9 |
: Optional. The name of all the other images, without the File: prefix. | : Optional. The name of all the other images, without the File: prefix. | ||
; ''caption'' | ; ''caption'' |
Revision as of 03:13, 24 January 2010
Description
{{RandImage|<image names>|caption=<caption>}} {{RandImage|size=<size>|position=<position>|<image names>}}
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.
- size
- Optional. The size of the images. Defaults to 300 pixels.
- position
- Optional. Left, right or center. Defaults to center.