Difference between revisions of "Template:floatRightStacked"

From WikiCorporates
Jump to navigation Jump to search
 
Line 1: Line 1:
 
<div style="float:right; margin-left:10px;"><!--
 
<div style="float:right; margin-left:10px;"><!--
 
--><div style="margin-bottom:{{#if:{{{sep|}}}|{{{sep}}}px|5px}};">{{{1}}}</div><!--
 
--><div style="margin-bottom:{{#if:{{{sep|}}}|{{{sep}}}px|5px}};">{{{1}}}</div><!--
−
--><div style="margin-top:{{#if:{{{sep|}}}|{{{sep}}}px|5px}};">{{{1}}}</div><!--
+
--><div style="margin-top:{{#if:{{{sep|}}}|{{{sep}}}px|5px}};">{{{2}}}</div><!--
 
--></div><noinclude>{{doc2}}</noinclude>
 
--></div><noinclude>{{doc2}}</noinclude>

Latest revision as of 14:27, 30 May 2020

{{{1}}}
{{{2}}}

[edit] Documentation

Similar template to Template:floatRight, but instead of the images being floated side-by-side, they are stacked.

Parameters:

{{floatRightStacked
|sep   = optional. Default separation between the two images is 5px. 
|1     = top image
|2     = bottom image
}}

Example

{{floatRightStacked|[[File:Janus-Henderson-Group.svg|141x25px]]|[[File:Janus-Henderson-Investors.svg|141x25px]]}}
Janus-Henderson-Group.svg
Janus-Henderson-Investors.svg
will give: