<?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%3AStack_documentation</id>
	<title>Template:Stack documentation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AStack_documentation"/>
	<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Stack_documentation&amp;action=history"/>
	<updated>2026-11-16T21:47:12Z</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:Stack_documentation&amp;diff=170601&amp;oldid=prev</id>
		<title>imported&gt;Deadfire: Creation</title>
		<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Stack_documentation&amp;diff=170601&amp;oldid=prev"/>
		<updated>2023-10-07T13:25:44Z</updated>

		<summary type="html">&lt;p&gt;Creation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{ombox |text=This template serves as the shared documentation for {{tl|Stack}}, {{tl|Stack begin}}, and {{tl|Stack end}}.}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
This template can be used to stack images and other floating content such as infobox templates without causing problems with spacing and floating. Enter a string of images/templates as the first parameter to have them stack without generating floating errors or spacing errors. You can stack many objects from the top of a section and not force further subsections to space out.&lt;br /&gt;
&lt;br /&gt;
{{TOClimit|3}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
At its simplest:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{stack|&amp;lt;objects&amp;gt;}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alternatively, using {{tld|stack begin}} and {{tld|stack end}}:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{stack begin}}&lt;br /&gt;
&amp;lt;objects&amp;gt;&lt;br /&gt;
{{stack end}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;&amp;lt;object&amp;gt;&amp;lt;/code&amp;gt; may simply be a string of wikicode for many images/templates.&lt;br /&gt;
&lt;br /&gt;
===Optional parameters===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{stack| &amp;lt;object(s)&amp;gt; | float=left or right | clear=true or false | margin=true or false}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{stack begin | float=left or right | clear=true or false | margin=true or false}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
*float= &amp;#039;&amp;#039;left&amp;#039;&amp;#039; or &amp;#039;&amp;#039;right&amp;#039;&amp;#039; (default is &amp;#039;&amp;#039;&amp;#039;right&amp;#039;&amp;#039;&amp;#039;)&lt;br /&gt;
*: This option can be used to float the stack to the left or right of the page&lt;br /&gt;
*clear= &amp;#039;&amp;#039;true&amp;#039;&amp;#039; or &amp;#039;&amp;#039;false&amp;#039;&amp;#039; (default is &amp;#039;&amp;#039;&amp;#039;false&amp;#039;&amp;#039;&amp;#039;)&lt;br /&gt;
*: This option can be used to force the stack to the far left or right (e.g., near an infobox).&lt;br /&gt;
*margin= &amp;#039;&amp;#039;true&amp;#039;&amp;#039; or &amp;#039;&amp;#039;false&amp;#039;&amp;#039; (default is &amp;#039;&amp;#039;&amp;#039;false&amp;#039;&amp;#039;&amp;#039;)&lt;br /&gt;
*: This option can be used to add a 1em margin to the left (for float right) or right (for float left).&lt;br /&gt;
&lt;br /&gt;
You can also explicitly list multiple arguments:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{stack| float=left or right | clear=true or false | margin=true or false&lt;br /&gt;
|1=&amp;lt;object(s)&amp;gt;&lt;br /&gt;
|2=&amp;lt;object(s)&amp;gt;, etc. up to 9 parameters in the current version&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* This multiple argument version does include extra vertical whitespace between each (set of) &amp;lt;code&amp;gt;&amp;lt;object(s)&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;To illustrate the utility of the stack templates, consider the following situation.  We would like to have two right floating images at the top of the first section of our article (here, the &amp;#039;&amp;#039;Lipsum&amp;#039;&amp;#039; section), and one left floating image at the top of the second section (here, the &amp;#039;&amp;#039;Lorem&amp;#039;&amp;#039; section).  To achieve this layout, without using a stack template, we could try the following code:&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
=====&amp;#039;&amp;#039;Lipsum&amp;#039;&amp;#039;=====&lt;br /&gt;
[[File:Example.jpg|thumb|right|Example 1a]]&lt;br /&gt;
[[File:Example.jpg|thumb|right|Example 1b]]&lt;br /&gt;
... text ...&lt;br /&gt;
&lt;br /&gt;
=====&amp;#039;&amp;#039;Lorem&amp;#039;&amp;#039;=====&lt;br /&gt;
[[File:Example.jpg|thumb|left|Example 1c]]&lt;br /&gt;
... text ...&lt;br /&gt;
&lt;br /&gt;
=====&amp;#039;&amp;#039;Ipsum&amp;#039;&amp;#039;=====&lt;br /&gt;
... text ...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;The result of this is shown in the &amp;#039;&amp;#039;[[#Without stack|without stack]]&amp;#039;&amp;#039; section below.  Notice how the left floating image (Example 1c) is prevented from floating above the last right floating image (Example 1b).  You may need to resize the width of your browser to fully appreciate the issue.  To fix this problem, we can stack the two right floating images together, using the following code:&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
=====&amp;#039;&amp;#039;Lipsum&amp;#039;&amp;#039;=====&lt;br /&gt;
{{stack |[[File:Example.jpg|thumb|right|Example 2a]] [[File:Example.jpg|thumb|right|Example 2b]]}}&lt;br /&gt;
... text ...&lt;br /&gt;
&lt;br /&gt;
=====&amp;#039;&amp;#039;Lorem&amp;#039;&amp;#039;=====&lt;br /&gt;
[[File:Example.jpg|thumb|left|Example 2c]]&lt;br /&gt;
... text ...&lt;br /&gt;
&lt;br /&gt;
=====&amp;#039;&amp;#039;Ipsum&amp;#039;&amp;#039;=====&lt;br /&gt;
... text ...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;The result of this is shown in the &amp;#039;&amp;#039;[[#With stack|with stack]]&amp;#039;&amp;#039; section below.  Notice how by adding this stack template, the left floating image (Example 2c) can now float higher and is not blocked from floating higher than the top of the last right floating image (Example 2b).&lt;br /&gt;
{{clear}}&lt;br /&gt;
&lt;br /&gt;
{{anchor|Without stack}}&lt;br /&gt;
====Without {{tlf|stack}}====&lt;br /&gt;
=====&amp;#039;&amp;#039;Lipsum&amp;#039;&amp;#039;=====&lt;br /&gt;
[[File:Example.jpg|thumb|right|Example 1a]]&lt;br /&gt;
[[File:Example.jpg|thumb|right|Example 1b]]&lt;br /&gt;
{{Str left|{{Lorem ipsum span}}|124}}&lt;br /&gt;
&lt;br /&gt;
=====&amp;#039;&amp;#039;Lorem&amp;#039;&amp;#039;=====&lt;br /&gt;
[[File:Example.jpg|thumb|left|Example 1c]]&lt;br /&gt;
{{lipsum}}&lt;br /&gt;
&lt;br /&gt;
=====&amp;#039;&amp;#039;Ipsum&amp;#039;&amp;#039;=====&lt;br /&gt;
{{lipsum}}&lt;br /&gt;
&lt;br /&gt;
{{lipsum}}&lt;br /&gt;
{{clear}}&lt;br /&gt;
&lt;br /&gt;
{{anchor|With stack}}&lt;br /&gt;
====With {{tlf|stack}}====&lt;br /&gt;
----&lt;br /&gt;
=====&amp;#039;&amp;#039;Lipsum&amp;#039;&amp;#039;=====&lt;br /&gt;
{{stack|[[File:Example.jpg|thumb|right|Example 2a]] [[File:Example.jpg|thumb|right|Example 2b]]}}&lt;br /&gt;
{{Str left|{{Lorem ipsum span}}|124}}&lt;br /&gt;
&lt;br /&gt;
=====&amp;#039;&amp;#039;Lorem&amp;#039;&amp;#039;=====&lt;br /&gt;
[[File:Example.jpg|thumb|left |Example 2c]]&lt;br /&gt;
{{lipsum}}&lt;br /&gt;
&lt;br /&gt;
=====&amp;#039;&amp;#039;Ipsum&amp;#039;&amp;#039;=====&lt;br /&gt;
{{lipsum}}&lt;br /&gt;
&lt;br /&gt;
{{lipsum}}&lt;br /&gt;
{{clear}}&lt;br /&gt;
&lt;br /&gt;
====With {{tlf|stack begin}} and {{tlf|stack end}}====&lt;br /&gt;
=====&amp;#039;&amp;#039;Lipsum&amp;#039;&amp;#039; with second table wider=====&lt;br /&gt;
{{stack begin}}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Sample table 1 &lt;br /&gt;
|-&lt;br /&gt;
| Example 1a &lt;br /&gt;
|-&lt;br /&gt;
| Example 1b &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Sample wider table 2 &lt;br /&gt;
|-&lt;br /&gt;
|Example 2a &lt;br /&gt;
|-&lt;br /&gt;
|Example 2b &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
{{stack end}}&lt;br /&gt;
{{lipsum}}&lt;br /&gt;
&lt;br /&gt;
=====&amp;#039;&amp;#039;Lorem&amp;#039;&amp;#039;=====&lt;br /&gt;
{| style=&amp;quot;background:whitesmoke;&amp;quot;&lt;br /&gt;
! Sample table 3 &lt;br /&gt;
|-&lt;br /&gt;
| Example 3a &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
{{lipsum}}&lt;br /&gt;
&lt;br /&gt;
=====&amp;#039;&amp;#039;Ipsum&amp;#039;&amp;#039;=====&lt;br /&gt;
{{lipsum}}&lt;br /&gt;
&lt;br /&gt;
{{lipsum}}&lt;br /&gt;
{{clear}}&lt;br /&gt;
&lt;br /&gt;
=====&amp;#039;&amp;#039;Lipsum&amp;#039;&amp;#039; with first table wider=====&lt;br /&gt;
{{stack begin}}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Sample wider table 1 &lt;br /&gt;
|-&lt;br /&gt;
| Example 1a &lt;br /&gt;
|-&lt;br /&gt;
| Example 1b &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Sample table 2 &lt;br /&gt;
|-&lt;br /&gt;
| Example 2a &lt;br /&gt;
|-&lt;br /&gt;
| Example 2b &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
{{stack end}}&lt;br /&gt;
{{lipsum}}&lt;br /&gt;
&lt;br /&gt;
=====&amp;#039;&amp;#039;Lorem&amp;#039;&amp;#039;=====&lt;br /&gt;
{| style=&amp;quot;background:whitesmoke;&amp;quot;&lt;br /&gt;
! Sample table 3 &lt;br /&gt;
|-&lt;br /&gt;
| Example 3a &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
{{lipsum}}&lt;br /&gt;
&lt;br /&gt;
=====&amp;#039;&amp;#039;Ipsum&amp;#039;&amp;#039;=====&lt;br /&gt;
{{lipsum}}&lt;br /&gt;
&lt;br /&gt;
{{lipsum}}&lt;br /&gt;
{{clear}}&lt;br /&gt;
&lt;br /&gt;
===More examples===&lt;br /&gt;
{{tlf|Stack}} can also be used to float one or more images across a page.&lt;br /&gt;
{{stack |[[File:Example.jpg|80px]]}}&lt;br /&gt;
{{stack |[[File:Example.jpg|120px]]}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; style=&amp;quot;overflow:auto;&amp;quot;&amp;gt;&lt;br /&gt;
{{stack|[[File:Example.jpg|80px]]}}&lt;br /&gt;
{{stack|[[File:Example.jpg|120px]]}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
It might take some experience to learn how the box area floats, in combination with various images or wikitables on a page. {{tlf|Stack}}&amp;#039;s operation is very quick, as it uses an [[w:HTML|HTML]] &amp;amp;lt;table&amp;gt; to achieve its effects.&lt;br /&gt;
&lt;br /&gt;
== Stack template family ==&lt;br /&gt;
* {{tl|Stack}}&lt;br /&gt;
* {{tl|Stack begin}}&lt;br /&gt;
* {{tl|Stack end}}&lt;br /&gt;
&lt;br /&gt;
== Tracking category ==&lt;br /&gt;
* {{clc|Pages using stack with unknown parameters}}&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|Multiple image}}, providing both vertical and horizontal layouts for multiple images.&lt;br /&gt;
* {{tl|Superimpose}}, which places one image over another.&lt;br /&gt;
* {{tl|Superimpose2}}, which can place up to fifty image layers over one another.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Documentation shared content templates]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Deadfire</name></author>
	</entry>
</feed>