Difference between revisions of "Template:Clear"
Jump to navigation
Jump to search
m (Changed Category) |
m (Changed Category) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
<div style="clear:{{{1|both}}};"></div><noinclude> | <div style="clear:{{{1|both}}};"></div><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 04:30, 4 June 2020
This template makes content wait until existing content is completed in all columns. It is often used to prevent text from flowing next to unrelated images.
Usage
- {{clear}} — adds <div style="clear:both;"></div>
- {{clear|left}} — adds <div style="clear:left;"></div>
- {{clear|right}} — adds <div style="clear:right;"></div>
For technical details, see the discussion in the talk page of the wikipedia equivalent.
Examples
Example without {{clear}}
Some text over here
New section without the template before
Without the code {{clear}}
, this section starts at the right of the image.
The above documentation is transcluded from Template:Clear/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |