Difference between revisions of "Template:Float"
(Created page with '<div style="float: {{{pos|right}}}; width: {{{width|30%}}}; text-align: {{{textalign|left}}}; {{{style|}}}">{{{1|Lorem ipsum dolor sit amet.}}}</div>{{#if:{{{clr|yes}}}|{{clr}}}}…') |
m |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
== Usage == | == Usage == | ||
− | + | <pre> | |
− | + | {{float | |
− | + | | 1 = Content to float. Use "1 = " if it contains | or other template-breaking characters. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[Category:Formatting templates]]</noinclude> | + | | pos = right [default], left |
+ | | width = n% [default:30%] | ||
+ | | clr = yes, undefined [default] – if yes, uses {{clr}} to clear the area after the floating element. | ||
+ | |||
+ | | textalign = right, left [default], center | ||
+ | | style = custom CSS style [optional] | ||
+ | }}</pre> | ||
+ | |||
+ | [[Category:Formatting templates|Float]]</noinclude> |
Latest revision as of 03:48, 4 April 2023
Lorem ipsum dolor sit amet.
Usage
{{float | 1 = Content to float. Use "1 = " if it contains | or other template-breaking characters. | pos = right [default], left | width = n% [default:30%] | clr = yes, undefined [default] – if yes, uses {{clr}} to clear the area after the floating element. | textalign = right, left [default], center | style = custom CSS style [optional] }}