<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://themidnight.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AFloat%2Fdoc</id>
	<title>Template:Float/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://themidnight.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AFloat%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://themidnight.wiki/index.php?title=Template:Float/doc&amp;action=history"/>
	<updated>2026-04-03T17:30:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://themidnight.wiki/index.php?title=Template:Float/doc&amp;diff=10699&amp;oldid=prev</id>
		<title>Timothy: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://themidnight.wiki/index.php?title=Template:Float/doc&amp;diff=10699&amp;oldid=prev"/>
		<updated>2023-08-10T18:16:45Z</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;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:16, 10 August 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&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;/table&gt;</summary>
		<author><name>Timothy</name></author>
	</entry>
	<entry>
		<id>https://themidnight.wiki/index.php?title=Template:Float/doc&amp;diff=10698&amp;oldid=prev</id>
		<title>wikipedia&gt;Novem Linguae: counter intuitively, text wraps underneath this template</title>
		<link rel="alternate" type="text/html" href="https://themidnight.wiki/index.php?title=Template:Float/doc&amp;diff=10698&amp;oldid=prev"/>
		<updated>2022-09-14T07:36:20Z</updated>

		<summary type="html">&lt;p&gt;counter intuitively, text wraps underneath this template&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 add categories to the /doc subpage, and interwikis at Wikidata (see Wikipedia:Wikidata) --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
This template is used to position text or elements to the rightmost/leftmost of a page/area, without changing the alignment or formatting of other text and elements nearby.&lt;br /&gt;
&lt;br /&gt;
Whatever you float with this template will cover up anything underneath it. Text will wrap underneath this template, not around it.&lt;br /&gt;
&lt;br /&gt;
For aligning text in general, see {{tl|align}}. For floating images, boxes, and other elements in a way that text wraps around instead of beneath, see {{tl|stack}}.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
These are the standard usage: &lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{float|&amp;lt;/nowiki&amp;gt;{{bigger|{{smallcaps|item}}}}}}&amp;lt;/code&amp;gt; floats {{smallcaps|item}} on the rightmost of a page/area.&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{float|left|&amp;lt;/nowiki&amp;gt;{{bigger|{{smallcaps|item}}}}}}&amp;lt;/code&amp;gt; floats {{smallcaps|item}} on the leftmost of a page/area.&lt;br /&gt;
&lt;br /&gt;
More configuration: &lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{float |width= |height= |top= |right= |bottom= |left= |&amp;lt;/nowiki&amp;gt;{{bigger|{{smallcaps|item}}}}}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{{bigger|{{smallcaps|item}}}}&amp;lt;/code&amp;gt; is required. You must specify what text or element to float or it will throw an error. &lt;br /&gt;
&lt;br /&gt;
All parameters are optional. The parameters {{para|width}} and {{para|height}} are to indicate the width/height of the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; element. &amp;lt;!--Unnecessary?: Note that if any values other than zero for &amp;#039;&amp;#039;top&amp;#039;&amp;#039; and &amp;#039;&amp;#039;right&amp;#039;&amp;#039; are required, they need to be specified.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The optional parameters {{para|top}}, {{para|right}}, {{para|bottom}} and {{para|left}} are to indicate how far from their respective positions the item is to be positioned. &lt;br /&gt;
&lt;br /&gt;
Any established HTML/CSS units may be used, for example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{float |top=2.0em |left=2px |width=10em | the content to float}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
=== Beware ===&lt;br /&gt;
Beware when using this template in navboxes. Please ensure whatever it floats (e.g. an image) does not float over other elements or text, even after the navbox is resized. &lt;br /&gt;
&lt;br /&gt;
To align centered lists in a navbox with an image, see the [[#Alternatives for navigational boxes|alternatives for navigational boxes]] section below. &lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Note how the links in the second two examples are centered relative to the whole template, unlike those in the first example.&lt;br /&gt;
&lt;br /&gt;
=== Example 1 (without float) ===&lt;br /&gt;
This is a [[Template:Navbox|navbox]] using its image parameter:&lt;br /&gt;
{{Navbox&lt;br /&gt;
| name = Float/doc&lt;br /&gt;
| state = uncollapsed&lt;br /&gt;
| title = [[Imperial Japanese Navy]]&lt;br /&gt;
| listclass = hlist&lt;br /&gt;
| image = [[File:Naval Ensign of Japan.svg|24px|border|Naval Ensign of Japan]]&lt;br /&gt;
| list1 =&lt;br /&gt;
* [[Imperial Japanese Navy admirals|Admirals]]&lt;br /&gt;
* [[Battles of the Imperial Japanese Navy|Battles]]&lt;br /&gt;
* [[List of ships of the Japanese Navy|Ships]]&lt;br /&gt;
* [[List of aircraft of the Japanese Navy|Aircraft]]&lt;br /&gt;
* [[List of weapons of the Japanese Navy|Weapons]]&lt;br /&gt;
}}&lt;br /&gt;
{{Hidden begin |showhide=left |title=The code used in the above example}}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Navbox&lt;br /&gt;
| name = Float/doc&lt;br /&gt;
| state = uncollapsed&lt;br /&gt;
| title = [[Imperial Japanese Navy]]&lt;br /&gt;
| listclass = hlist&lt;br /&gt;
| image = [[File:Naval Ensign of Japan.svg|24px|border|Naval Ensign of Japan]]&lt;br /&gt;
| list1 =&lt;br /&gt;
* [[Imperial Japanese Navy admirals|Admirals]]&lt;br /&gt;
* [[Battles of the Imperial Japanese Navy|Battles]]&lt;br /&gt;
* [[List of ships of the Japanese Navy|Ships]]&lt;br /&gt;
* [[List of aircraft of the Japanese Navy|Aircraft]]&lt;br /&gt;
* [[List of weapons of the Japanese Navy|Weapons]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Hidden end}}&lt;br /&gt;
&lt;br /&gt;
=== Example 2 (with float) ===&lt;br /&gt;
We use {{tlf|float}} instead of the navbox&amp;#039;s image parameter:&lt;br /&gt;
{{Navbox&lt;br /&gt;
| name = Float/doc&lt;br /&gt;
| state = uncollapsed&lt;br /&gt;
| title = [[Imperial Japanese Navy]]&lt;br /&gt;
| listclass = hlist&lt;br /&gt;
| list1 = {{float|[[File:Naval Ensign of Japan.svg|24px|border|Naval Ensign of Japan]]}}&lt;br /&gt;
* [[Imperial Japanese Navy admirals|Admirals]]&lt;br /&gt;
* [[Battles of the Imperial Japanese Navy|Battles]]&lt;br /&gt;
* [[List of ships of the Japanese Navy|Ships]]&lt;br /&gt;
* [[List of aircraft of the Japanese Navy|Aircraft]]&lt;br /&gt;
* [[List of weapons of the Japanese Navy|Weapons]]&lt;br /&gt;
}}&lt;br /&gt;
{{Hidden begin |showhide=left |title=The code used in the above example}}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Navbox&lt;br /&gt;
| name = Float/doc&lt;br /&gt;
| state = uncollapsed&lt;br /&gt;
| title = [[Imperial Japanese Navy]]&lt;br /&gt;
| listclass = hlist&lt;br /&gt;
| list1 = {{float|[[File:Naval Ensign of Japan.svg|24px|border|Naval Ensign of Japan]]}}&lt;br /&gt;
* [[Imperial Japanese Navy admirals|Admirals]]&lt;br /&gt;
* [[Battles of the Imperial Japanese Navy|Battles]]&lt;br /&gt;
* [[List of ships of the Japanese Navy|Ships]]&lt;br /&gt;
* [[List of aircraft of the Japanese Navy|Aircraft]]&lt;br /&gt;
* [[List of weapons of the Japanese Navy|Weapons]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Hidden end}}&lt;br /&gt;
&lt;br /&gt;
=== Example 3 (with float and custom values) ===&lt;br /&gt;
We use {{tlf|float}} with a custom value of {{para|top}} this time:&lt;br /&gt;
{{Navbox&lt;br /&gt;
| name = Float/doc&lt;br /&gt;
| state = uncollapsed&lt;br /&gt;
| title = [[Imperial Japanese Navy]]&lt;br /&gt;
| listclass = hlist&lt;br /&gt;
| list1 = {{float|top=0.5em|[[File:Naval Ensign of Japan.svg|24px|border|Naval Ensign of Japan]]}}&lt;br /&gt;
* [[Imperial Japanese Navy admirals|Admirals]]&lt;br /&gt;
* [[Battles of the Imperial Japanese Navy|Battles]]&lt;br /&gt;
* [[List of ships of the Japanese Navy|Ships]]&lt;br /&gt;
* [[List of aircraft of the Japanese Navy|Aircraft]]&lt;br /&gt;
* [[List of weapons of the Japanese Navy|Weapons]]&lt;br /&gt;
}}&lt;br /&gt;
{{Hidden begin |showhide=left |title=The code used in the above example}}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Navbox&lt;br /&gt;
| name = Float/doc&lt;br /&gt;
| state = uncollapsed&lt;br /&gt;
| title = [[Imperial Japanese Navy]]&lt;br /&gt;
| listclass = hlist&lt;br /&gt;
| list1 = {{float|top=0.5em|[[File:Naval Ensign of Japan.svg|24px|border|Naval Ensign of Japan]]}}&lt;br /&gt;
* [[Imperial Japanese Navy admirals|Admirals]]&lt;br /&gt;
* [[Battles of the Imperial Japanese Navy|Battles]]&lt;br /&gt;
* [[List of ships of the Japanese Navy|Ships]]&lt;br /&gt;
* [[List of aircraft of the Japanese Navy|Aircraft]]&lt;br /&gt;
* [[List of weapons of the Japanese Navy|Weapons]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Hidden end}}&lt;br /&gt;
&lt;br /&gt;
=== Alternatives for navigational boxes ===&lt;br /&gt;
We use its image parameter and liststyle with padding-left set to the image width:&lt;br /&gt;
{{Navbox&lt;br /&gt;
| name      = Float/doc&lt;br /&gt;
| state     = uncollapsed&lt;br /&gt;
| title     = [[Imperial Japanese Navy]]&lt;br /&gt;
| listclass = hlist&lt;br /&gt;
| image     = [[File:Naval Ensign of Japan.svg|24px|border|Naval Ensign of Japan]]&lt;br /&gt;
| liststyle = padding-left: 24px&lt;br /&gt;
| list1     =&lt;br /&gt;
* [[Imperial Japanese Navy admirals|Admirals]]&lt;br /&gt;
* [[Battles of the Imperial Japanese Navy|Battles]]&lt;br /&gt;
* [[List of ships of the Japanese Navy|Ships]]&lt;br /&gt;
* [[List of aircraft of the Japanese Navy|Aircraft]]&lt;br /&gt;
* [[List of weapons of the Japanese Navy|Weapons]]&lt;br /&gt;
}}&lt;br /&gt;
{{Hidden begin |showhide=left |title=The code used in the above example}}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Navbox&lt;br /&gt;
| name      = Float/doc&lt;br /&gt;
| state     = uncollapsed&lt;br /&gt;
| title     = [[Imperial Japanese Navy]]&lt;br /&gt;
| listclass = hlist&lt;br /&gt;
| image     = [[File:Naval Ensign of Japan.svg|24px|border|Naval Ensign of Japan]]&lt;br /&gt;
| liststyle = padding-left: 24px&lt;br /&gt;
| list1     =&lt;br /&gt;
* [[Imperial Japanese Navy admirals|Admirals]]&lt;br /&gt;
* [[Battles of the Imperial Japanese Navy|Battles]]&lt;br /&gt;
* [[List of ships of the Japanese Navy|Ships]]&lt;br /&gt;
* [[List of aircraft of the Japanese Navy|Aircraft]]&lt;br /&gt;
* [[List of weapons of the Japanese Navy|Weapons]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Hidden end}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|align}}&lt;br /&gt;
* {{tl|clear}}&lt;br /&gt;
* {{t|float begin}} and {{t|float end}} - Places wikicode in an image frame. Allows captions. Handles wikitables without having to use escape characters.&lt;br /&gt;
* {{tl|stack}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Add categories below this line, and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Positioning templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Novem Linguae</name></author>
	</entry>
</feed>