Jump to content

Module:Gallery/doc

From OpenStreetMap Wiki

This is a documentation subpage for Module:Gallery.
It contains usage information, categories and other content or metadata that is not part of the original module page.


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
}}

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.