Module:Gallery/doc
Appearance
Usage
random
A gallery with items in randomized order. The random order is cached on the server side, but MediaWiki:Gadget-gallery.js (enabled by default) shuffles the images again on the client side to ensure a different order on each page load.
{{#invoke: gallery | random
| mode = packed-hover
| heights = 200
| 1 = OSM edits in Wuhan 2020.jpg | c1 = Age of OpenStreetMap data in Wuhan
| 2 = City-roads.png | c2 = City Roads
| 3 = Road names in London OSMnx.jpg | c3 = Road names in London
| 4 = Brumadinho dam catastrophy 2.jpg | c4 = Brumadinho dam disaster
| 5 = Malaga-bus.jpg | c5 = A bus in Málaga
}}
-
A bus in Málaga
-
Road names in London
-
Brumadinho dam disaster
-
Age of OpenStreetMap data in Wuhan
-
City Roads
Any attribute supported by the <gallery> tag is supported as a parameter. Each image goes in a numbered parameter, along with corresponding parameters |cn = for the caption, |an = for the alt text, and |ln = for the link URL, all optional.