Template:Float file: Difference between revisions

From Terraria Wiki
Jump to navigation Jump to search
Westgrass bot (talk | contribs)
m ({{language info}} en=?)
m (+category from documentation subtemplate)
Line 1: Line 1:
<div style="float:{{{float|right}}};">{{{1}}}</div><noinclude>{{doc}}
<div style="float:{{{float|right}}};">{{{1}}}</div><noinclude>{{doc}}
{{category|Formatting templates}}
{{language info|en=Template:Float file}}
{{language info|en=Template:Float file}}
</noinclude>
</noinclude>

Revision as of 20:02, 23 June 2022

{{{1}}}
Template-info.svg Documentation The documentation below is transcluded from Template:Float file/doc. (edit | history)

Use this template to place an image beside an infobox (to the right of the article text, but to the left of the infobox).

This differs from standard right-aligned images, as those generally display beneath any infobox in the vicinity, rather than beside them.

Usage

{{ float file | <image wiki code> | css/style = <custom CSS styles> }}

First unnamed parameter

Complete wiki code for the image, including brackets.

css or style

CSS rules for the wrapper div.

Examples

Code Result
{{float file|[[File:Tree.png|thumb|A tree.]]}}
A tree.
{{float file|style=border:5px solid black; padding:10px|[[File:Wood.png]]}}
Wood.png

See also