Template:Clear: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
m Reverted changes by Anepaltrek (talk) to last version by Verdy p
m Changed protection level of Template:Clear: per request at WP:RFPP ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
Line 1: Line 1:
<div style="clear:both;"/><noinclude>
<div style="clear:{{{1|both}}};"></div><noinclude>
{{documentation}}
==Usage==
<pre>{{clear}}</pre>

This template adds a break, pushing following content to the next line below nearby floating images or templates.

==See also==
* {{tl|clearleft}} delays content until left column is complete.
* {{tl|clearright}} delays content until right column is complete.
* {{tl|-}} is similar, but technically different.
*: ''The finer points of {{Tl|clear}} vs. {{Tl|-}} are discussed in [[w:Template talk:-#- versus clear|w:Template talk:-]] and [[w:Template talk:Clear]].''


[[Category:Typing-aid templates|{{PAGENAME}}]]
[[Category:Formatting templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 16:02, 3 October 2015

Template documentation
{{br}} redirects to this template as an alias.
For the language indicator of Breton, see {{bre}}.

This template adds

<div style="clear:both;"></div> or
<div style="clear:left;"></div> or
<div style="clear:right;"></div>

as a break, pushing following content to the next line below nearby floating images or templates.

Usage

{{clear}}
{{clear|left}}
{{clear|right}}

See also

  • {{clearleft}} delays content until left column is complete.
  • {{clearright}} delays content until right column is complete.
  • {{-}} is similar, but has visible line break.
  • {{clear2}} can be used for floating elements.

TemplateData

Adds a break, pushing following content to the next line below nearby floating images or templates.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
side1

Which side’s floating images or templates to push content below (left, right or both).

Suggested values
left right both
Default
both
Lineoptional