Template:Clear: Difference between revisions

From Ethan's Workspace
Jump to navigation Jump to search
w>Nyttend
m (Changed protection level of Template:Clear: Enable access by template editors; NeilN is okay with this move ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div style="clear:{{{1|both}}};"></div><noinclude>
{{#if:{{{toc|}}}|__TOC__}}<div style="clear:{{{1|both}}}"></div><noinclude>
{{documentation}}
Used to push any content that follows the template below floating elements. Usage below:
</noinclude>
 
*<code><nowiki>{{clear|left}}</nowiki></code> pushes subsequent content below left-floated elements
*<code><nowiki>{{clear|right}}</nowiki></code> pushes subsequent content below right-floated elements
*<code><nowiki>{{clear}}</nowiki></code> pushes subsequent content below both left and right floated elements
*<code><nowiki>{{clear|toc=1}}</nowiki></code> places the table of contents before the clear so that it's not pushed down
 
[[Category:Utility templates]]</noinclude>

Latest revision as of 14:22, 2 June 2023

Used to push any content that follows the template below floating elements. Usage below:

  • {{clear|left}} pushes subsequent content below left-floated elements
  • {{clear|right}} pushes subsequent content below right-floated elements
  • {{clear}} pushes subsequent content below both left and right floated elements
  • {{clear|toc=1}} places the table of contents before the clear so that it's not pushed down