Template:Float/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
m (BOT: replacing template(s) per discussion about misleading template name) |
No edit summary |
||
Line 1: | Line 1: | ||
{{documentation subpage}} |
{{documentation subpage}} |
||
<!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE---> |
<!---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. |
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: | Line 77: | ||
{{hidden end}} |
{{hidden end}} |
||
== Alternatives for navigational boxes == |
|||
; Example 3 |
|||
Same navbox using its image parameter and liststyle with padding-left set to the image width: |
Same navbox using its image parameter and liststyle with padding-left set to the image width: |
||
{{Navbox |
{{Navbox |
||
Line 92: | Line 93: | ||
* [[List of weapons of the Japanese Navy|Weapons]] |
* [[List of weapons of the Japanese Navy|Weapons]] |
||
}} |
}} |
||
{{hidden begin|title=Code for Example |
{{hidden begin|title=Code for Example|toggle = left}} |
||
<pre> |
<pre> |
||
{{Navbox |
{{Navbox |