Template:Clear: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<div style="clear:{{{1|both}}};"> | <div style="clear:{{{1|both}}};"><noinclude>{{Clear/doc}} | ||
<noinclude>[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Latest revision as of 22:26, 18 November 2021
Template Documentation
Description
This template forces everything after the 'clear' to be on a new line. In other words, it forces all content after the template to be under anything before where the template is placed.
Syntax
{{clear}}
Examples
Typing exactly like this...{{clear}}...with a clear template thrown in mid-sentence creates this...
...with a clear template thrown in mid-sentence creates this...
In this example, you will see this text...
...aligns along with the image...
...as it should, when an image is aligned left or right.
However, when looking at the next example whilst using a clear template, things look different.
...aligns along with the image...
...as it should, when an image is aligned left or right.
However, when looking at the next example whilst using a clear template, things look different.
But if you type
You'll notice that all of the text will be forced under the image, because that's what the template does.
This same thing happens when putting the template after divs and tables.
This template is very useful for clearing out spaces on pages.
{{clear}}
right after the image...You'll notice that all of the text will be forced under the image, because that's what the template does.
This same thing happens when putting the template after divs and tables.
This template is very useful for clearing out spaces on pages.