Template:Float: Difference between revisions

more compressed code
(Update from sandbox (implements {{float|left|...}}))
(more compressed code)
Line 1:
<includeonly><div style="position:relative;text-align:left;"><!--
--><div style="positionwidth:relative{{{width|}}};text-alignposition:leftabsolute;"><!--
top:{{{top|0}}};right:{{{right|0}}};bottom:{{{bottom|}}}; left:{{{left|}}};
--><div style="width:{{{width|}}};
{{#if:{{{2|}}} |{{#ifeq:{{{1}}}|left position|left:absolute0;}}}}"><!--
-->{{#if:{{{2|}}} |{{{2}}} |{{{1|{{color|red|'''Error: Parameter missing''' {{90%smaller|([[Template:Float]])}}}}}}} }}<!--
top:{{{top|0}}};right:{{{right|0}}}; <!---(i.e. the default {{float|item}} floats item on righthand side)--->
--></div></div><!--
bottom:{{{bottom|}}}; left:{{{left|}}};
{{#if:{{{2|}}} |{{#ifeq:{{{1}}}|left |left:0;}} }} <!---(i.e. {{float|left|item}} floats item on lefthand side)---><!--
-->"><!--
-->{{#if:{{{2|}}} |{{{2}}} |{{{1|{{color|red|'''Error: Parameter missing''' {{90%|([[Template:Float]])}}}}}}} }}<!--
--></div><!--
--></div><!--
--></includeonly><noinclude>{{Documentation}}</noinclude>