doc

From University Innovation Fellows
Jump to navigation Jump to search
(+doc)
 
 
Line 10: Line 10:
 
{{clear|left}}
 
{{clear|left}}
 
{{clear|right}}</pre>
 
{{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>
 
}}
 

Latest revision as of 12:22, 7 March 2020

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}}