Difference between revisions of "Template:Float"

From Team Fortress Wiki
Jump to: navigation, search
m
 
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''
+
 
:* <code>| ''width''     = </code>''n%'' [default:30%]
+
    | pos      = right [default], left
:* <code>| ''clr''       = </code>''yes'', ''undefined'' [default]{{n}}if ''yes'', uses {{tl|clr}} to clear the area after the floating element.
+
    | width    = n% [default:30%]
<hr />
+
    | clr      = yes, undefined [default] if yes, uses {{clr}} to clear the area after the floating element.
:* <code>| ''textalign'' = </code>''right'', ''left'' [default], ''center''
+
 
:* <code>| ''style''     = </code>valid [[wikipedia:CSS|CSS]] style [optional]
+
    | textalign = right, left [default], center
* <code><nowiki>}}</nowiki></code>
+
    | style    = custom CSS style [optional]
 +
}}</pre>
  
 
[[Category:Formatting templates|Float]]</noinclude>
 
[[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]
}}