<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://redlettermedia.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AGaleria%2Fdoc</id>
	<title>Module:Galeria/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://redlettermedia.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AGaleria%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://redlettermedia.wiki/mediawiki/index.php?title=Module:Galeria/doc&amp;action=history"/>
	<updated>2026-05-14T08:14:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://redlettermedia.wiki/mediawiki/index.php?title=Module:Galeria/doc&amp;diff=2409&amp;oldid=prev</id>
		<title>Orangestar: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://redlettermedia.wiki/mediawiki/index.php?title=Module:Galeria/doc&amp;diff=2409&amp;oldid=prev"/>
		<updated>2024-06-13T18:31:39Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:31, 13 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key my_wiki:diff:1.41:old-2408:rev-2409 --&gt;
&lt;/table&gt;</summary>
		<author><name>Orangestar</name></author>
	</entry>
	<entry>
		<id>https://redlettermedia.wiki/mediawiki/index.php?title=Module:Galeria/doc&amp;diff=2408&amp;oldid=prev</id>
		<title>en&gt;Jonesey95: Fix Linter errors.</title>
		<link rel="alternate" type="text/html" href="https://redlettermedia.wiki/mediawiki/index.php?title=Module:Galeria/doc&amp;diff=2408&amp;oldid=prev"/>
		<updated>2022-10-25T21:13:18Z</updated>

		<summary type="html">&lt;p&gt;Fix &lt;a href=&quot;/w/Special:LintErrors&quot; class=&quot;new&quot; title=&quot;Special:LintErrors (page does not exist)&quot;&gt;Linter&lt;/a&gt; errors.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{#ifeq:{{SUBPAGENAME}}|sandbox|&amp;lt;includeonly&amp;gt;[[Category:Scribunto module sandboxes]]&amp;lt;/includeonly&amp;gt;|{{Module rating|release}}}}&lt;br /&gt;
{{Heavily used module}}&lt;br /&gt;
&lt;br /&gt;
=== The format parameter ===&lt;br /&gt;
When none is specified, the module tries to find the best fitting default format. If another display format is wanted it can be specified;&amp;lt;br&amp;gt;&lt;br /&gt;
but a wrong format parameter which does not fit to the file name parameters gives troubles. &lt;br /&gt;
* 0: no captions, every unnamed parameter specifies a valid file name&lt;br /&gt;
* 1: &amp;#039;showfilename&amp;#039; captions, every unnamed parameter specifies a valid file name&lt;br /&gt;
* 2: parameter pairs of file name and caption; when the second value is missing the file name is displayed, with link  &lt;br /&gt;
* 3: as format 2, but file name captions are displayed without link&lt;br /&gt;
Format 0 and 1 may not contain caption parameters; format 2 and 3 can work with a mixture of file names and caption texts. &lt;br /&gt;
&lt;br /&gt;
=== The file parameters ===&lt;br /&gt;
Each file to be displayed can be spezified by one, or by two parameters. &lt;br /&gt;
The chain of files starts of course with a file name; the following parameter can be the caption for the current file, or it specifies the next file name. &lt;br /&gt;
When such a second parameter is the same as the first one, possibly only differing in case and space/understroke, it is used as a caption for the first parameter. &lt;br /&gt;
Otherwise every second parameter seeming to be a valid file name is considered to be the next file name, and the first parameter is treated as an unpaired, single file name.&lt;br /&gt;
&lt;br /&gt;
An easy solution is the specification of empty parameters for captions: it signals that the file name should also be used as the caption.&lt;br /&gt;
&lt;br /&gt;
=== How it works ===&lt;br /&gt;
This module gets all parameters from the parent template of {{T0|G}}, creates the attributes and values, and passes them to the &amp;#039;&amp;#039;gallery&amp;#039;&amp;#039; tag. &lt;br /&gt;
&lt;br /&gt;
The mainly invoker is  {{T|G|+|case=l}}.&amp;lt;br&amp;gt;The template G itself does nothing than to invoke this module, it does not specify any own parameters. &lt;br /&gt;
&lt;br /&gt;
The module analyzes these parameters. In special, the unnamed parameter(s) can contain an &amp;#039;&amp;#039;&amp;#039;unlimited number&amp;#039;&amp;#039;&amp;#039; of items.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First of all, the contents of all unnamed parameters are concatenated to one string:&amp;lt;br&amp;gt;&lt;br /&gt;
# concatenates all pipe-separated items and separates them by an ACK&lt;br /&gt;
# changes also the newline separators to ACK separators.&lt;br /&gt;
&lt;br /&gt;
Then when the parameter for &amp;#039;format&amp;#039; is &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; specified, but&lt;br /&gt;
: a second parameter exists (after a pipe), &amp;#039;&amp;#039;and&amp;#039;&amp;#039;&lt;br /&gt;
:: the first parameter is preceded by a newline, &amp;#039;&amp;#039;and&amp;#039;&amp;#039;&lt;br /&gt;
::: the second parameter does &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; specify a file name, &lt;br /&gt;
:then the format parameter is defaulted to the value &amp;quot;2&amp;quot;. &lt;br /&gt;
Using the ACK instead of the slash &amp;quot;/&amp;quot; tolerates items containing slashes, as URL web addresses.&amp;lt;br&amp;gt; &lt;br /&gt;
For the format 2, pairs of items are built, with possible defaulting of the description item.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Finally the total amount of items is passed to the {{T|G/layout|-}}, together with the other parameters. &amp;lt;br&amp;gt;&lt;br /&gt;
Because the {{tag|gallery}} tag does not support the suppression of the &amp;lt;code&amp;gt;showfilename&amp;lt;/code&amp;gt; option, &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;two&amp;#039;&amp;#039; transclusions of the gallery tag are necessary - one with, and the other one without &amp;lt;code&amp;gt;showfilename&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Helper functions ===&lt;br /&gt;
The function &amp;quot;converse&amp;quot; gets a size parameter (possible format examples: 100, x260, 200x240 or 150px, x280px, 220x250px)&amp;lt;br&amp;gt;&lt;br /&gt;
and returns the &amp;lt;code&amp;gt;widths&amp;lt;/code&amp;gt; and/or the &amp;lt;code&amp;gt;heights&amp;lt;/code&amp;gt; values; the local function &amp;quot;parseval&amp;quot; is used to parse the values. &lt;br /&gt;
&lt;br /&gt;
The function &amp;quot;filename&amp;quot; returns the &amp;lt;nowiki&amp;gt;{{PAGENAME}}&amp;lt;/nowiki&amp;gt; without the extension; also &amp;quot; Wellcome X99999999&amp;quot; will be removed.&lt;br /&gt;
&lt;br /&gt;
The function &amp;quot;pagename&amp;quot; can change all understrokes to spaces.&lt;br /&gt;
&lt;br /&gt;
The function &amp;quot;iffile&amp;quot; performs a rough check whether a string can be a valid file name. Depending on a second parameter, it returns either a flag or the file name without extension.&lt;br /&gt;
&lt;br /&gt;
=== Other main function ===&lt;br /&gt;
The function &amp;#039;gallang&amp;quot; is invoked from the template {{T|Lgallery}} to diplay multilanguage SVG files.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Module:Gallery]] and {{tlx|Gallery}}&lt;/div&gt;</summary>
		<author><name>en&gt;Jonesey95</name></author>
	</entry>
</feed>