Template:Clear: Difference between revisions
Jump to navigation
Jump to search
navbox>Jdforrester (WMF) m 1 revision imported from w:en:Template:Clear: Page about technical change that was posted to a local wiki |
templates>Xaosflux m Changed protection settings for "Template:Clear": Highly visible template: 3MM+ uses ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite)) |
||
| Line 1: | Line 1: | ||
<div style="clear: {{{1|both}}};"></div><noinclude> | <div style="clear:{{{1|both}}};"></div><noinclude> | ||
{{ | {{documentation}} | ||
</noinclude> | |||
Revision as of 10:31, 13 June 2022
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.
{{clear}}→<div style="clear:both;"></div>
{{clear|left}}→<div style="clear:left;"></div>
{{clear|right}}→<div style="clear:right;"></div>
Examples
Example without {{clear}}

New section without the template before
Without the code {{clear}}, this section starts at the right of the image.
Example that uses {{clear}}

{{clear}}
New section with the template before
Here the code {{clear}} is placed before this section, so it appears below the image.
TemplateData
Makes content wait until existing content is completed in all columns. Often used to stop text from flowing next to unrelated images, so text will appear on a full width line under the image.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Side | 1 | Can be 'right' or 'left' so content is delayed until just the right or left column is complete. The default clears both columns.
| Line | optional |