Template:Float/doc: Difference between revisions

no edit summary
m (BOT: replacing template(s) per discussion about misleading template name)
No edit summary
Line 1:
{{documentation subpage}}
<!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE--->
{{notice|The use of this template is deprecated in navbox templates, due to the fact that the image may float over text, making the text unreadable. To align centered lists in a navbox with an image, see the [[#Alternatives for navigational boxes|alternatives for navigational boxes]] section below. For aligning text in general, see {{tl|align}}. For floating images, boxes, and other elements, see {{tl|stack}}.}}
 
Use <code><nowiki>{{float}}</nowiki></code> to position items such as images so they do not affect the alignment or formatting of other items (e.g. text) nearby.
Line 76 ⟶ 77:
{{hidden end}}
 
== Alternatives for navigational boxes ==
; Example 3
Same navbox using its image parameter and liststyle with padding-left set to the image width:
{{Navbox
Line 92 ⟶ 93:
* [[List of weapons of the Japanese Navy|Weapons]]
}}
{{hidden begin|title=Code for Example 3|toggle = left}}
<pre>
{{Navbox
Anonymous user