Gallery¶
Gallery allows you to combine multiple figures to be rendered in one block alongside each other. Convenient for replicating MediaWiki look and feel.
Directive¶
- .. mcl-gallery::¶
Directive that spawns a gallery. It does not accept arguments, but does accept content which can only contain
figuredirectives in it.- :caption:¶
Optional caption for the gallery.
- :align:¶
Alignment. If not passed, assumed
left.
- :align-mobile:¶
Alignment on mobile layout. If not passed, assumed
center.
Example¶
The following code:
1::::{mcl-gallery}
2:caption: Cats
3:align: center
4
5:::{figure} ../_static/turkish-cat.jpeg
6:width: 200
7
8Turkish Angora cat at the Atatürk Forest Farm
9:::
10
11:::{figure} ../_static/turkish-cat.jpeg
12:width: 200
13
14Turkish Angora cat at the Atatürk Forest Farm
15:::
16
17:::{figure} ../_static/turkish-cat.jpeg
18:width: 200
19
20Turkish Angora cat at the Atatürk Forest Farm
21:::
22
23:::{figure} ../_static/turkish-cat.jpeg
24:width: 200
25
26Turkish Angora cat at the Atatürk Forest Farm
27:::
28
29:::{figure} ../_static/turkish-cat.jpeg
30:width: 200
31
32Turkish Angora cat at the Atatürk Forest Farm
33:::
34
35:::{figure} ../_static/turkish-cat.jpeg
36:width: 200
37
38Turkish Angora cat at the Atatürk Forest Farm
39:::
40
41:::{figure} ../_static/turkish-cat.jpeg
42:width: 200
43
44Turkish Angora cat at the Atatürk Forest Farm
45:::
46
47::::
Should render as:
Turkish Angora cat at the Atatürk Forest Farm¶
Turkish Angora cat at the Atatürk Forest Farm¶
Turkish Angora cat at the Atatürk Forest Farm¶
Turkish Angora cat at the Atatürk Forest Farm¶
Turkish Angora cat at the Atatürk Forest Farm¶
Turkish Angora cat at the Atatürk Forest Farm¶
Turkish Angora cat at the Atatürk Forest Farm¶