<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.geministation.com/index.php?action=history&amp;feed=atom&amp;title=Help%3AGallery</id>
	<title>Help:Gallery - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.geministation.com/index.php?action=history&amp;feed=atom&amp;title=Help%3AGallery"/>
	<link rel="alternate" type="text/html" href="https://wiki.geministation.com/index.php?title=Help:Gallery&amp;action=history"/>
	<updated>2026-06-04T06:12:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.geministation.com/index.php?title=Help:Gallery&amp;diff=7351&amp;oldid=prev</id>
		<title>Banri: Created page with &quot;Galleries are an image syntax that creates a gallery of thumbnails (or similar image series). The syntax is:  &lt;pre&gt; &lt;gallery&gt; File:file_name.ext|caption|alt=alt language File:...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.geministation.com/index.php?title=Help:Gallery&amp;diff=7351&amp;oldid=prev"/>
		<updated>2021-01-14T07:56:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Galleries are an image syntax that creates a gallery of thumbnails (or similar image series). The syntax is:  &amp;lt;pre&amp;gt; &amp;lt;gallery&amp;gt; File:file_name.ext|caption|alt=alt language File:...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Galleries are an image syntax that creates a gallery of thumbnails (or similar image series). The syntax is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:file_name.ext|caption|alt=alt language&lt;br /&gt;
File:file_name.ext|caption|alt=alt language&lt;br /&gt;
{...}&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the image code is not enclosed in brackets when enclosed in gallery tags. Images can be preceded by &amp;#039;&amp;#039;&amp;#039;Image:&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;File:&amp;#039;&amp;#039;&amp;#039; or nothing, however using &amp;#039;&amp;#039;&amp;#039;Image:&amp;#039;&amp;#039;&amp;#039; is preferred.&lt;br /&gt;
&lt;br /&gt;
Captions are optional, and may contain wiki links or other formatting. Some of the parameters controlling thumb output can also be used here, specifically the ones that modify the file (as opposed to ones that control where in the page the image falls). For example, with multi-paged media like pdfs, you can use code like &amp;lt;code&amp;gt;page=4&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The File: prefix can be omitted. However, it is helpful to include it as an aid for quickly locating image specifiers in the wikitext (for example, when cleaning up page layout).&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note that currently we do not support pdfs!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Earth Icon.png|Item 1&lt;br /&gt;
File:Earth Icon.png|a link to [[Help:Contents]]&lt;br /&gt;
File:Earth Icon.png&lt;br /&gt;
File:Earth Icon.png|alt=An example image. It has flowers&lt;br /&gt;
File:Earth Icon.png|&amp;#039;&amp;#039;italic caption&amp;#039;&amp;#039;&lt;br /&gt;
Earth Icon.png|on page &amp;quot;{{PAGENAME}}&amp;quot;&lt;br /&gt;
File:Using Firefox.pdf|page=72&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
is formatted as:&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Earth Icon.png|Item 1&lt;br /&gt;
File:Earth Icon.png|a link to [[Help:Contents]]&lt;br /&gt;
File:Earth Icon.png&lt;br /&gt;
File:Earth Icon.png|alt=An example image. It has flowers&lt;br /&gt;
File:Earth Icon.png|&amp;#039;&amp;#039;italic caption&amp;#039;&amp;#039;&lt;br /&gt;
Earth Icon.png|on page &amp;quot;{{PAGENAME}}&amp;quot;&lt;br /&gt;
File:Using Firefox.pdf|page=72&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Mode parameter==&lt;br /&gt;
A mode parameter is available, taking options as follows:&lt;br /&gt;
* &amp;lt;code&amp;gt;traditional&amp;lt;/code&amp;gt; is the original gallery type used by MediaWiki.&lt;br /&gt;
* &amp;lt;code&amp;gt;nolines&amp;lt;/code&amp;gt; is similar to &amp;lt;code&amp;gt;traditional&amp;lt;/code&amp;gt;, but with no border lines.&lt;br /&gt;
* &amp;lt;code&amp;gt;packed&amp;lt;/code&amp;gt; causes images to have the same height but different widths, with little space between the images. The rows in this {{wp|Responsive web design|responsive}} mode organize themselves according to the width of the screen.&lt;br /&gt;
* &amp;lt;code&amp;gt;packed-overlay&amp;lt;/code&amp;gt; shows the caption overlaid on the image, in a semi-transparent white box.&lt;br /&gt;
* &amp;lt;code&amp;gt;packed-hover&amp;lt;/code&amp;gt; is similar to &amp;lt;code&amp;gt;packed-overlay&amp;lt;/code&amp;gt;, but with the caption and box only showing up on hover.&lt;br /&gt;
* &amp;lt;code&amp;gt;slideshow&amp;lt;/code&amp;gt; creates a slideshow of the images.&lt;br /&gt;
&lt;br /&gt;
==Optional gallery attributes==&lt;br /&gt;
The gallery tag itself takes several additional parameters, specified as attribute name-value pairs:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;gallery {parameters}&amp;gt;&lt;br /&gt;
{images}&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;caption=&amp;quot;{caption}&amp;quot;&amp;lt;/code&amp;gt;: (caption text between double quotes for more than a word) sets a caption centered atop the gallery. Only plain text may be used in the caption; formatting, templates and the like will not work.&lt;br /&gt;
* &amp;lt;code&amp;gt;widths={width}px&amp;lt;/code&amp;gt;: sets the (max) widths of the images; the default value is 120px. &amp;#039;&amp;#039;Note the plural: width&amp;#039;&amp;#039;&amp;#039;s&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;lt;code&amp;gt;heights={heights}px&amp;lt;/code&amp;gt;: sets the (max) heights of the images; the default value is 120px.&lt;br /&gt;
* &amp;lt;code&amp;gt;perrow={integer}&amp;lt;/code&amp;gt;: sets the number of images per row. 0 means automatically adjust based on width of screen.&lt;br /&gt;
* &amp;lt;code&amp;gt;showfilename={anything}&amp;lt;/code&amp;gt;: Show the filenames of the images in the individual captions for each image (1.17+).&lt;br /&gt;
* &amp;lt;code&amp;gt;mode={traditional|nolines|packed|packed-hover|packed-overlay|slideshow}&amp;lt;/code&amp;gt;: See section above (1.22+; 1.28+ for &amp;quot;slideshow&amp;quot;).&lt;br /&gt;
* &amp;lt;code&amp;gt;showthumbnails&amp;lt;/code&amp;gt;: For &amp;quot;slideshow&amp;quot; mode only, display the strip with image thumbnails below the slideshow by default (1.29+).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[mw:Help:Images#Rendering_a_gallery_of_images|Help:Images]] The MediaWiki help page on images&lt;br /&gt;
&lt;br /&gt;
{{Help}}&lt;/div&gt;</summary>
		<author><name>Banri</name></author>
	</entry>
</feed>