21:
609:
480:
372:
297:
624:{{Navbox | name = Float/doc | state = uncollapsed | title = ] | listclass = hlist | image = ] | liststyle = padding-left: 24px | list1 = * ] * ] * ] * ] * ] }}
195:
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.
52:
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.
727:
524:{{Navbox | name = Float/doc | state = uncollapsed | title = ] | listclass = hlist | list1 = {{float|top=0.5em|]}} * ] * ] * ] * ] * ] }}
738:
55:
Whatever you float with this template will cover up anything underneath it. Text will wrap underneath this template, not around it.
723:
711:
416:{{Navbox | name = Float/doc | state = uncollapsed | title = ] | listclass = hlist | list1 = {{float|]}} * ] * ] * ] * ] * ] }}
312:{{Navbox | name = Float/doc | state = uncollapsed | title = ] | listclass = hlist | image = ] | list1 = * ] * ] * ] * ] * ] }}
36:
210:
Note how the links in the second two examples are centered relative to the whole template, unlike those in the first example.
593:
583:
502:
492:
394:
384:
281:
271:
598:
507:
399:
286:
750:
707:
558:
458:
350:
246:
32:
588:
497:
389:
276:
693:
676:- Places wikicode in an image frame. Allows captions. Handles wikitables without having to use escape characters.
578:
487:
379:
266:
766:
40:
68:. For floating images, boxes, and other elements in a way that text wraps around instead of beneath, see
608:
479:
371:
296:
733:
551:
451:
343:
239:
718:
567:
467:
359:
255:
660:
8:
146:
is required. You must specify what text or element to float or it will throw an error.
746:
701:
670:
544:
444:
336:
232:
180:
are to indicate how far from their respective positions the item is to be positioned.
28:
697:
534:
We use its image parameter and liststyle with padding-left set to the image width:
219:
682:
649:
638:
72:
62:
760:
15:
536:
436:
328:
224:
185:{{float |top=2.0em |left=2px |width=10em | the content to float}}
421:
198:
To align centered lists in a navbox with an image, see the
183:
Any established HTML/CSS units may be used, for example,
199:
128:{{float |width= |height= |top= |right= |bottom= |left= |
529:
758:
552:
452:
344:
240:
213:
149:All parameters are optional. The parameters
717:Editors can experiment in this template's
566:
559:
545:
466:
459:
445:
358:
351:
337:
254:
247:
233:
18:
326:instead of the navbox's image parameter:
317:
422:Example 3 (with float and custom values)
157:are to indicate the width/height of the
759:
540:
440:
332:
228:
530:Alternatives for navigational boxes
200:alternatives for navigational boxes
13:
620:The code used in the above example
520:The code used in the above example
412:The code used in the above example
308:The code used in the above example
58:For aligning text in general, see
14:
778:
607:
478:
370:
295:
103:on the rightmost of a page/area.
19:
119:on the leftmost of a page/area.
86:These are the standard usage:
47:
1:
428:{{float}}
324:{{float}}
7:
629:
222:using its image parameter:
205:
10:
783:
691:
751:Subpages of this template
605:
574:
474:
366:
293:
262:
214:Example 1 (without float)
190:
164:The optional parameters
81:
430:with a custom value of
745:Add categories to the
568:Imperial Japanese Navy
468:Imperial Japanese Navy
360:Imperial Japanese Navy
318:Example 2 (with float)
256:Imperial Japanese Navy
24:Template documentation
767:Positioning templates
123:More configuration:
702:Template:Float/doc
616:
615:
516:
515:
408:
407:
304:
303:
174:|bottom=
155:|height=
774:
742:
731:
715:
687:
681:
675:
669:
665:
659:
654:
648:
643:
637:
611:
561:
554:
547:
538:
537:
482:
461:
454:
447:
438:
437:
433:
429:
374:
353:
346:
339:
330:
329:
325:
299:
249:
242:
235:
226:
225:
202:section below.
186:
179:
175:
171:
170:|right=
167:
160:
156:
152:
151:|width=
145:
144:
143:
135:
133:
132:
118:
114:
112:
111:
102:
98:
96:
95:
77:
71:
67:
61:
44:
25:
23:
22:
782:
781:
777:
776:
775:
773:
772:
771:
757:
756:
755:
754:
744:
736:
721:
716:
705:
690:
685:
679:
673:
667:
663:
657:
652:
646:
641:
635:
632:
627:
626:
625:
621:
617:
612:
603:
570:
565:
532:
527:
526:
525:
521:
517:
512:
484:
483:
470:
465:
431:
427:
424:
419:
418:
417:
413:
409:
404:
376:
375:
362:
357:
323:
320:
315:
314:
313:
309:
305:
300:
291:
258:
253:
216:
208:
193:
184:
178:|left=
177:
173:
169:
165:
158:
154:
150:
141:
140:
139:
130:
129:
127:
116:
109:
108:
106:
100:
93:
92:
90:
84:
75:
69:
65:
59:
50:
45:
26:
20:
12:
11:
5:
780:
770:
769:
689:
688:
677:
655:
644:
631:
628:
623:
622:
619:
618:
614:
613:
606:
604:
602:
601:
596:
591:
586:
581:
575:
572:
571:
564:
563:
556:
549:
541:
531:
528:
523:
522:
519:
518:
514:
513:
511:
510:
505:
500:
495:
490:
477:
476:
475:
472:
471:
464:
463:
456:
449:
441:
432:|top=
423:
420:
415:
414:
411:
410:
406:
405:
403:
402:
397:
392:
387:
382:
369:
368:
367:
364:
363:
356:
355:
348:
341:
333:
319:
316:
311:
310:
307:
306:
302:
301:
294:
292:
290:
289:
284:
279:
274:
269:
263:
260:
259:
252:
251:
244:
237:
229:
215:
212:
207:
204:
192:
189:
166:|top=
137:
136:
121:
120:
104:
83:
80:
49:
46:
17:
16:
9:
6:
4:
3:
2:
779:
768:
765:
764:
762:
752:
748:
740:
735:
729:
725:
720:
713:
709:
703:
699:
695:
694:documentation
684:
678:
672:
662:
656:
651:
645:
640:
634:
633:
610:
600:
597:
595:
592:
590:
587:
585:
582:
580:
577:
576:
573:
569:
562:
557:
555:
550:
548:
543:
542:
539:
535:
509:
506:
504:
501:
499:
496:
494:
491:
489:
486:
485:
481:
473:
469:
462:
457:
455:
450:
448:
443:
442:
439:
435:
401:
398:
396:
393:
391:
388:
386:
383:
381:
378:
377:
373:
365:
361:
354:
349:
347:
342:
340:
335:
334:
331:
327:
298:
288:
285:
283:
280:
278:
275:
273:
270:
268:
265:
264:
261:
257:
250:
245:
243:
238:
236:
231:
230:
227:
223:
221:
211:
203:
201:
196:
188:
181:
162:
147:
126:
125:
124:
107:{{float|left|
105:
89:
88:
87:
79:
74:
64:
56:
53:
42:
38:
34:
30:
686:}}
680:{{
674:}}
668:{{
664:}}
658:{{
653:}}
647:{{
642:}}
636:{{
533:
425:
321:
217:
209:
197:
194:
182:
163:
148:
138:
122:
85:
76:}}
70:{{
66:}}
60:{{
57:
54:
51:
698:transcluded
661:float begin
434:this time:
159:<div>
48:Description
39:] [
35:] [
31:] [
692:The above
218:This is a
161:element.
749:subpage.
734:testcases
671:float end
761:Category
630:See also
594:Aircraft
579:Admirals
503:Aircraft
488:Admirals
395:Aircraft
380:Admirals
282:Aircraft
267:Admirals
206:Examples
91:{{float|
726:|
719:sandbox
712:history
710:|
599:Weapons
584:Battles
508:Weapons
493:Battles
426:We use
400:Weapons
385:Battles
322:We use
287:Weapons
272:Battles
115:floats
99:floats
37:history
743:pages.
220:navbox
191:Beware
700:from
683:stack
650:clear
639:align
589:Ships
498:Ships
390:Ships
277:Ships
82:Usage
73:stack
63:align
43:]
41:purge
27:[
747:/doc
739:edit
732:and
728:diff
724:edit
708:edit
666:and
176:and
153:and
142:item
131:item
117:item
110:item
101:item
94:item
33:edit
29:view
696:is
187:.
763::
704:.
172:,
168:,
134:}}
113:}}
97:}}
78:.
753:.
741:)
737:(
730:)
722:(
714:)
706:(
560:e
553:t
546:v
460:e
453:t
446:v
352:e
345:t
338:v
248:e
241:t
234:v
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.