<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/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://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AFloat%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Float/doc&amp;action=history"/>
	<updated>2026-04-08T02:53:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Template:Float/doc&amp;diff=16889&amp;oldid=prev</id>
		<title>Wikipedia&gt;Novem Linguae: /* See also */ {{float begin}}</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Float/doc&amp;diff=16889&amp;oldid=prev"/>
		<updated>2021-08-05T06:07:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;See also: &lt;/span&gt; {{float begin}}&lt;/span&gt;&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;
It 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;
For aligning text in general, see {{tl|align}}.  For floating images, boxes, and other elements, 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>