Template:Float file/doc: Difference between revisions

From Terraria Wiki
Jump to navigation Jump to search
Ryebot (talk | contribs)
(Removed invisible character U+200E ("Left-To-Right Mark").)
m (ce, moved template categorization to template page)
Line 1: Line 1:
Use this template to place an image beside an infobox (to the right of article text, but to the left of its infobox).
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.
This differs from standard right-aligned images, as those generally display beneath any infobox in the vicinity, rather than beside them.


== Usage ==
== Usage ==
<code>{{(}} '''float file''' | ''&lt;image wiki code&gt;'' {{)}}</code>
This template takes a single parameter: The complete image code with brackets.


; First unnamed parameter
Example:
Complete wiki code for the image, including brackets.


== Examples ==
<code>{{(}} '''float file''' | ''<nowiki>[[File:Something.png|thumb|Description.]]</nowiki>'' {{)}}</code>
{| class="wikitable"
! Code !! Result
|-
| <code><nowiki>{{float file|[[File:Tree.png|thumb|A tree.]]}}</nowiki></code> || {{float file|[[File:Tree.png|thumb|A tree.]]}}
|}


== See also ==
== See also ==
* {{tl|float file box}}
* {{tl|float file box}}


<includeonly>
{{category|Formatting templates}}
</includeonly>
<noinclude>
<noinclude>
{{category|Template documentation}}
{{category|Template documentation}}

Revision as of 20:01, 23 June 2022

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> }}

First unnamed parameter

Complete wiki code for the image, including brackets.

Examples

Code Result
{{float file|[[File:Tree.png|thumb|A tree.]]}}
A tree.

See also