Template:floatRight

From WikiCorporates
Revision as of 14:01, 3 July 2019 by GrayanOne (talk | contribs) (Created page with "<div style="float:right;"><span style="margin-left:10px;">{{{1}}}</span><span style="margin-left:10px;">{{{2}}}</span></div></div><noinclude>{{doc2}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
{{{1}}}{{{2}}}

[edit] Documentation

Irritatingly, MediaWiki's implementation of [[File:...|right/left]] for images does not allow the option of a span, but only a div. This means that floating two or more images side-by-side is not possible, as the div forces them onto separate lines.

This template takes two images, and wraps them in a float-right div.

Two Image Example

{{floatRight|[[File:Spotless-Group.png|81x30px]]|{{Deals|ArrowR}}}}

Spotless-Group.pngDeals-Arrow-Right.svg

will give:

Three Image Example

{{floatRight|[[File:Spotless-Group.png|81x30px]]|{{Deals|ArrowR}}|[[File:Spotless-Group.png|81x30px]]}}

Spotless-Group.pngDeals-Arrow-Right.svg

will give: