Difference between revisions of "Template:floatRight/doc"

From WikiCorporates
Jump to navigation Jump to search
(Created page with "<includeonly>Category:WikiPolitiks templates</includeonly>")
 
Line 1: Line 1:
 +
Irritatingly, MediaWiki's implementation of <tt><nowiki>[[File:xxx]]</nowiki></tt> for images does not allow the option of a span, but only a div. This means that floating two images side-by-side is not possible, as the div forces them onto separate lines.
 +
 +
This template takes two uploaded images, and wraps them in a float-right div.
 +
 +
==== Example ====
 +
<tt><nowiki>{{floatRight|[[File:Spotless-Group.png|81x30px]]|{{Deals|ArrowR}}}}</nowiki></tt><br/>
 +
{{floatRight|[[File:Spotless-Group.png|81x30px]]|{{Deals|ArrowR}}}} will give:
 +
 
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>
 
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>

Revision as of 14:07, 3 July 2019

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

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

Example

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

Spotless-Group.pngDeals-Arrow-Right.svg

will give: