Difference between revisions of "Template:floatRight"
Jump to navigation
Jump to search
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | <div style="float:right;"><span style="margin-left:10px;">{{{1}}}</span><span style="margin-left:10px;">{{{2}}}</span></div><noinclude>{{doc2}}</noinclude> | + | <div style="float:right;"><span style="margin-left:10px;">{{{1}}}</span><span style="margin-left:10px;">{{{2}}}</span>{{#if:{{{3|}}}|<span style="margin-left:10px;">{{{3}}}</span>}}</div><noinclude>{{doc2}}</noinclude> |
Latest revision as of 15:16, 24 September 2020
{{{1}}}{{{2}}}
[edit] Documentation
< Template:floatRight < Doc
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}}}}
Three Image Example
{{floatRight|[[File:Spotless-Group.png|81x30px]]|{{Deals|ArrowR}}|[[File:Spotless-Group.png|81x30px]]}}