Template:Get images
Jump to navigation
Jump to search
Error: please specify a page title.
| This template uses Lua: |
Outputs a certain number of images from a specified pagename. This only grabs images outside of templates are comments.
Usage
Basic usage
{{Get images|Pagename|1|random}}
| Parameter | Function | Accepted values |
|---|---|---|
| 1 | Sets page name to extract images. | Any pagename |
| 2 | Sets number of images extracted. | Any number <= 150 or all
|
| 3 | If set to "random", will output images randomly. | random
|
| mode | Sets format of extracted image output. | gallery, list
|
By default, the images output keep all formatting and captions from the source page.
Gallery mode parameters
If you set mode to gallery, you can control the look of the gallery using the following parameters.
gallerymode– equivalent to mode in a standard<gallery>...</gallery>tag.widths– sets the widths of the images in the gallery.heights– sets the heights of the images in the gallery.