Template:Clear View history

m (5 revisions from meta:Template:Clear)
 
(Revert to revision 459275004 dated 2011-11-06 11:02:10 by Edokter using popups)
Line 1: Line 1:
<div style="clear:both;"></div><noinclude>
<div style="clear:{{{1|both}}};"></div><noinclude>
==Usage==
{{documentation}}
<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 22:47, 1 June 2013

The above documentation is transcluded from Template:Clear/doc.
Please add categories to the /doc subpage.
Subpages of this template.

{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Documentation subpage|noshift=1|uselang=⧼lang⧽}} This template makes content wait until existing content (typically tables and images) is fully displayed in all columns before letting subsequent content be displayed. It uses the <div style="clear:TYPE;"></div> formatting to prevent the extra line break that comes with <br style="clear: both" />.

The TYPE variable is controlled with the second parameter as follows:

  • {{clear|left}} - Only the left column must be complete before subsequent content is displayed
  • {{clear|right}} - Only the right column must be complete before subsequent content is displayed
  • {{clear}} or {{clear|both}} - Both left and right columns must be complete before subsequent content is displayed

This template does not generate visible text in the Wiki page.

The above documentation is transcluded from Template:Clear/doc.
Please add categories to the /doc subpage.
Subpages of this template.