Difference between revisions of "Template:Float"

From Team Fortress Wiki
Jump to: navigation, search
(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 ==
  
* <code>{{float</code>
+
<pre>
:* <code>| ''1''         = </code>Content to float. Use "''1 = ''" if it contains {{!}} or other template-breaking characters.
+
{{float
<hr />
+
    | 1        = Content to float. Use "1 = " if it contains | or other template-breaking characters.
:* <code>| ''pos''      = </code>''right'' [default], ''left'', ''center''
 
:* <code>| ''width''    = </code>''n%'' [default:30%]
 
:* <code>| ''clr''      = </code>''yes'', ''undefined'' [default]{{n}}if ''yes'', uses {{tl|clr}} to clear the area after the floating element.
 
<hr />
 
:* <code>| ''textalign'' = </code>''right'', ''left'' [default], ''center''
 
:* <code>| ''style''    = </code>valid [[wikipedia:CSS|CSS]] style [optional]
 
* <code><nowiki>}}</nowiki></code>
 
  
[[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]
}}