Difference between revisions of "Template:Float/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Gadget850
(synch from current)
imported>Gadget850
(rerwork)
Line 1: Line 1:
<includeonly><!--
+
<div class="{{#switch:{{{1|}}} | right=floatright | left=floatleft | none=floatnone | center=center | #default=floatright}} style="<!--
--><div style="position:relative;text-align:left;"><!--
+
-->{{#ifeq:{{{1}}} | left | left: 0; | {{#if: {{{left|}}} | left: {{{left|}}};}} }}<!--
    --><div style="width:{{{width|}}};
+
-->{{#if: {{{right|}}} | right: {{{right|}}};}}<!--
                    position:absolute;
+
-->{{#if: {{{top|}}} | top: {{{top|}}};}}<!--
                    top:{{{top|0}}};right:{{{right|0}}}; <!---(i.e. the default {{float|item}} floats item on righthand side)--->
+
-->{{#if: {{{bottom|}}} | bottom: {{{bottom|}}};}}<!--
                    bottom:{{{bottom|}}}; left:{{{left|}}};
+
-->{{#if: {{{width|}}} | width: {{{width|}}};}}<!--
                    {{#if:{{{2|}}} |{{#ifeq:{{{1}}}|left |left:0;}} }} <!---(i.e. {{float|left|item}} floats item on lefthand side)---><!--
+
-->{{#if: {{{style|}}}-->{{{style|}}};}}>{{{2|}}}</div>
                -->"><!--
 
        -->{{#if:{{{2|}}} |{{{2}}} |{{{1|{{color|red|'''Error: Parameter missing''' {{90%|([[Template:Float]])}}}}}}} }}<!--
 
    --></div><!--
 
--></div><!--
 
--></includeonly><noinclude>{{Documentation}}</noinclude>
 

Revision as of 23:29, 5 November 2014