Clear/doc: Difference between revisions
/>Henstepl Remove Template:SPW and/or interlanguage links; they have been added to Template:Documentation |
/>Lady Aleena changed category, clean up |
||
Line 1: | Line 1: | ||
;Description | ; Description | ||
:This template is a shorthand for <code><br style="clear:both;" /></code>. | :This template is a shorthand for <code><br style="clear: both;" /></code>. | ||
:It moves any content following the template below any objects floating to the left and/or right (TOCs, infoboxes, images, etc | :It moves any content following the template below any objects floating to the left and/or right (TOCs, infoboxes, images, etc.). | ||
;Syntax | ; Syntax | ||
: | : {{t|clear|style=code}} clears both right and left content. | ||
: | : {{t|clear|left|style=code}} clears only left floating objects. | ||
: | : {{t|clear|right|style=code}} clears only right floating objects. | ||
: {{t|clear|none|style=code}} will not clear text after floating objects. | |||
; Other options | |||
: <code>inherit</code> and <code>initial</code> | |||
; See also | |||
: {{t|-}} and {{t|clr}} clear both like this template. They do not have options. | |||
;See also | : {{t|clrl}} clears left. | ||
:{{t| | : {{t|clrr}} clears right. | ||
<includeonly> | |||
[[Category: | [[Category:Formatting and function templates|{{PAGENAME}}]] | ||
[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | </includeonly><noinclude> | ||
[[Category:Template documentation|{{PAGENAME}}]] | |||
</noinclude> |
Revision as of 21:10, 6 January 2018
- Description
- This template is a shorthand for
<br style="clear: both;" />
. - It moves any content following the template below any objects floating to the left and/or right (TOCs, infoboxes, images, etc.).
- Syntax
- Template:T clears both right and left content.
- Template:T clears only left floating objects.
- Template:T clears only right floating objects.
- Template:T will not clear text after floating objects.
- Other options
inherit
andinitial
- See also
- Template:T and Template:T clear both like this template. They do not have options.
- Template:T clears left.
- Template:T clears right.