Open main menu

Changes

Template:Clear/doc

1,188 bytes added, 5 years ago
+doc
{{Documentation subpage}}
This template adds
:'''<code>&lt;div style="clear:both;"&gt;&lt;/div&gt;</code>''' ''or''
:<code>&lt;div style="clear:left;"&gt;&lt;/div&gt;</code> ''or''
:<code>&lt;div style="clear:right;"&gt;&lt;/div&gt;</code>
as a break, pushing following content to the next line below nearby floating images or templates.

==Usage==
<pre>{{clear}}
{{clear|left}}
{{clear|right}}</pre>

==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]].''

{{#ifeq:{{FULLPAGENAME}}|Template:Clear|
==TemplateData==
<templatedata>{
"params": {
"1": {
"label": "side",
"description": "either <tt>left</tt> or <tt>right</tt>, to replace the default <tt>both</tt>.",
"example": "{{Clear|left}}",
"type": "string",
"required": false
}
},
"description": "Adds a break, pushing following content to the next line below nearby floating images or templates."
}</templatedata>
}}