Navigation menu

Template:Clear: Difference between revisions

From Metroid Wiki
mNo edit summary
(simplify)
 
Line 1: Line 1:
{{#vardefine:both|<div style="clear:both;"></div>}}{{#vardefine:left|<div style="clear:left;"></div>}}{{#vardefine:right|<div style="clear:right;"></div>}}{{#switch:{{lc:{{{1|}}}}}
<div style="clear:{{{1|both}}}"></div><noinclude>
|both={{#var:both}}
|b={{#var:both}}
|right={{#var:right}}
|r={{#var:right}}
|left={{#var:left}}
|l={{#var:left}}
|#default={{#var:both}}}}<noinclude>
 
==Purpose==
==Purpose==
This template is used to add a clear space, and is useful for making sections in an article clear all images above them.  
This template is used to add a clear space, and is useful for making sections in an article clear all images above them.  
Line 15: Line 7:


Where ''Side'' is if you wish the template to only clear one side or the other. Options are not case sensitive and they are as follows:
Where ''Side'' is if you wish the template to only clear one side or the other. Options are not case sensitive and they are as follows:
* '''Both''' — Clears both sides. Template defaults to this if no side is defined.
* '''both''' — Clears both sides. Template defaults to this if no side is defined.
** Can also be used by typing in '''B'''.
* '''right''' — Clears content to the right of the template.
* '''Right''' — Clears content to the right of the template.
* '''left''' — Clears content to the left of the template.
** Can also be used by typing in '''R'''.
* '''Left''' — Clears content to the left of the template.
** Can also be used by typing in '''L'''.


[[Category:Formatting Templates]]
[[Category:Formatting Templates]]</noinclude>
</noinclude>

Latest revision as of 20:29, 18 April 2023

Purpose

This template is used to add a clear space, and is useful for making sections in an article clear all images above them.

Usage

    {{Clear| Side (Optional) }}

Where Side is if you wish the template to only clear one side or the other. Options are not case sensitive and they are as follows:

  • both — Clears both sides. Template defaults to this if no side is defined.
  • right — Clears content to the right of the template.
  • left — Clears content to the left of the template.