Difference between revisions of "Template:Clear"

From Worms Knowledge Base

Jump to: navigation, search
(New template: <div style="clear: both;"></div>)
 
(allow clear:left and clear:right)
 
Line 1: Line 1:
<div style="clear: both;"></div><noinclude>
+
<div style="clear: {{{1|both}}};"></div><noinclude>
  
 
This template adds <tt>&lt;div style="clear:both;"&gt;&lt;/div&gt;</tt>;
 
This template adds <tt>&lt;div style="clear:both;"&gt;&lt;/div&gt;</tt>;
Line 9: Line 9:
 
===Usage===
 
===Usage===
 
  <nowiki>{{Clear}}</nowiki>
 
  <nowiki>{{Clear}}</nowiki>
 +
<nowiki>{{Clear|left}}</nowiki>
 +
or
 +
<nowiki>{{Clear|right}}</nowiki>
  
 
The template may also be [[w:Wikipedia:Template substitution|substituted]], but as the markup provided will be confusing to many editors, and this template provides documentation for itself, there is little justification for substitution.
 
The template may also be [[w:Wikipedia:Template substitution|substituted]], but as the markup provided will be confusing to many editors, and this template provides documentation for itself, there is little justification for substitution.
 
</noinclude>
 
</noinclude>

Latest revision as of 14:25, 2 July 2010

This template adds <div style="clear:both;"></div>; for technical XHTML details, see Wikipedia:Template talk:Clear.

Documentation

{{clear}}: Makes content wait until existing content is completed in all columns. Often used to stop text from flowing next to unrelated images.

Usage

{{Clear}}
{{Clear|left}}
or
{{Clear|right}}

The template may also be substituted, but as the markup provided will be confusing to many editors, and this template provides documentation for itself, there is little justification for substitution.

Personal tools