साँचा:Float/doc

मुक्त ज्ञानकोश विकिपीडिया से
नेविगेशन पर जाएँ खोज पर जाएँ

साँचा:documentation subpage

Use {{float}} to position items such as images so they do not affect the alignment or formatting of other items (e.g. text) nearby.

{{float|top= |right= |bottom= |left= |item}}
{{float|item}} with default positioning top 0, right 0.

Item is the only required parameter. The optional parameters top, right, bottom, left indicate how far from their respective positions the item is to be positioned. Any units may be used so long as they are specified (e.g. {{float|top=2em|left=2em|"Blah"}}).

Examples

One-line navbox using its image parameter:

Same navbox using {{float}}:

Note how the links in the latter are centered relative to the whole template, unlike the former. The flag image is also more evenly positioned.