<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3ATransclude_files_as_random_slideshow%2Fdoc</id>
	<title>Template:Transclude files as random slideshow/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3ATransclude_files_as_random_slideshow%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Transclude_files_as_random_slideshow/doc&amp;action=history"/>
	<updated>2026-11-27T04:10:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://battleint.net/index.php?title=Template:Transclude_files_as_random_slideshow/doc&amp;diff=171118&amp;oldid=prev</id>
		<title>imported&gt;Deadfire: Updating</title>
		<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Transclude_files_as_random_slideshow/doc&amp;diff=171118&amp;oldid=prev"/>
		<updated>2023-08-12T23:16:38Z</updated>

		<summary type="html">&lt;p&gt;Updating&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
{{Lua|Module:Random slideshow}}&lt;br /&gt;
This template transcludes images from specified pages, and creates a slideshow gallery with a randomised order – i.e. it changes when the page is purged. &amp;#039;&amp;#039;&amp;#039;It is intended for use in portals and does not show anything in article space&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
== Usage ==&lt;br /&gt;
Though there is no fixed limit to the number of pages that can be specified, or images per page, be aware that technical limitations may be encountered for very large numbers of pages or images. &lt;br /&gt;
&lt;br /&gt;
Specify pages displaying images:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Transclude files as random slideshow&lt;br /&gt;
| First page&lt;br /&gt;
| second page&lt;br /&gt;
| third page&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If images should only be retrieved from a certain section of each page:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Transclude files as random slideshow&lt;br /&gt;
| First page  | section1= section name&lt;br /&gt;
| second page | section2= section name&lt;br /&gt;
| third page  | section3= section name&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To also include some specific files:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Transclude files as random slideshow&lt;br /&gt;
| File:SpecificFileOne.jpg | caption1= Caption for first file&lt;br /&gt;
| File:SpecificFileTwo.png | caption2= Caption for second file | credit2= Credits for second file (optional)&lt;br /&gt;
| First page&lt;br /&gt;
| Second page&lt;br /&gt;
| Third page&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{anchor|Alternate syntax}}Alternate syntax for specific files&amp;#039; captions and credits:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Transclude files as random slideshow&lt;br /&gt;
| File:SpecificFileOne.jpg ## Caption for first file&lt;br /&gt;
| File:SpecificFileTwo.png ## Caption for second file ## Credits for second file (optional)&lt;br /&gt;
| First page&lt;br /&gt;
| Second page&lt;br /&gt;
| Third page&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Parameters===&lt;br /&gt;
;{{para|1}}, {{para|2}}, {{para|3}}, ... {{resize|(or equivalent positional parameters)}}&lt;br /&gt;
:Full page name – including namespace – of the page containing images, or of a specific image.&lt;br /&gt;
;{{para|section1}}, {{para|section2}}, {{para|section3}}, ...&lt;br /&gt;
:Limit to files in these section of the corresponding page. Optional.&lt;br /&gt;
;{{para|caption1}}, {{para|caption2}}, {{para|caption3}}, ...&lt;br /&gt;
:Caption for the corresponding file (or omit these parameters and use the [[#Alternate syntax|alternate syntax]] shown above)&lt;br /&gt;
;{{para|credit1}}, {{para|credit2}}, {{para|credit3}}, ...&lt;br /&gt;
:Optional: Credits for the file (or omit these parameters and use the [[#Alternate syntax|alternate syntax]] shown above)&lt;br /&gt;
;{{para|width}}&lt;br /&gt;
:Maximum width for all images; default is &amp;lt;code&amp;gt;100%&amp;lt;/code&amp;gt; (intended for use inside portal components)&lt;br /&gt;
:Can be specified as a &amp;lt;code&amp;gt;%&amp;lt;/code&amp;gt; (e.g. &amp;lt;kbd&amp;gt;75%&amp;lt;/kbd&amp;gt;), or in &amp;lt;code&amp;gt;em&amp;lt;/code&amp;gt;s (e.g. &amp;lt;kbd&amp;gt;30em&amp;lt;/kbd&amp;gt;), or in &amp;lt;code&amp;gt;px&amp;lt;/code&amp;gt; (e.g. &amp;lt;kbd&amp;gt;200px&amp;lt;/kbd&amp;gt;)&lt;br /&gt;
:If a unit is not specified, &amp;lt;code&amp;gt;px&amp;lt;/code&amp;gt; is assumed (i.e. &amp;lt;kbd&amp;gt;350&amp;lt;/kbd&amp;gt; is equivalent to &amp;lt;kbd&amp;gt;350px&amp;lt;/kbd&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Box-header|title=Selected pictures}}&lt;br /&gt;
{{Transclude files as random slideshow&lt;br /&gt;
| Template:Transclude files as random slideshow/testcases/1&lt;br /&gt;
| Template:Transclude files as random slideshow/testcases/2&lt;br /&gt;
}}&lt;br /&gt;
{{Box-footer}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;div style=max-width:600px&amp;gt;&lt;br /&gt;
{{Box-header|title=Selected pictures|EDIT=yes}}&lt;br /&gt;
{{Transclude files as random slideshow&lt;br /&gt;
| Template:Transclude files as random slideshow/testcases/1&lt;br /&gt;
| Template:Transclude files as random slideshow/testcases/2&lt;br /&gt;
}}&lt;br /&gt;
{{Box-footer}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Box-header|title=Selected pictures}}&lt;br /&gt;
{{Transclude files as random slideshow&lt;br /&gt;
| Template:Transclude files as random slideshow/testcases/2 |section1=Atlas II&lt;br /&gt;
}}&lt;br /&gt;
{{Box-footer}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;div style=max-width:600px&amp;gt;&lt;br /&gt;
{{Box-header|title=Selected pictures|EDIT=yes}}&lt;br /&gt;
{{Transclude files as random slideshow&lt;br /&gt;
| Template:Transclude files as random slideshow/testcases/2 |section1=Atlas II&lt;br /&gt;
}}&lt;br /&gt;
{{Box-footer}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Portal templates navbox}}&lt;br /&gt;
{{cot|TemplateData}}&lt;br /&gt;
{{TemplateData header}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Page 1&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;First page to use as a source of files/images&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Page 2&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Second page to use a source of files/images. (Add more pages using parameters \&amp;quot;3\&amp;quot;, \&amp;quot;4\&amp;quot;, \&amp;quot;5\&amp;quot;, etc)&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;section1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Section of page 1&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Limit files to this section of page 1&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;section2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Section of page 2&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Limit files to this section of page 2&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;width&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Width&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Maximum width for all images. Specify as a %, or in em, or in px&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;100%&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
{{cob}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Deadfire</name></author>
	</entry>
</feed>