More actions
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please add categories to the /doc subpage, and interwikis at Wikidata (see Wikipedia:Wikidata) --> | <!-- Please add categories to the /doc subpage, and interwikis at Wikidata (see Wikipedia:Wikidata) --> | ||
{{Nosubst|The markup provided will be confusing to many editors, and as this template provides documentation for itself, there is little justification for substitution.}} | {{Nosubst|The markup provided will be confusing to many editors, and as this template provides documentation for itself, there is little justification for substitution.}} | ||
{{#ifeq:{{FULLPAGENAME}}|Template:Clear|{{Template shortcut|-||Clr}}}} | {{#ifeq:{{FULLPAGENAME}}|Template:Clear|{{Template shortcut|-||Clr}}}} | ||
Latest revision as of 17:29, 9 April 2025
| This page uses Creative Commons Licensed content from Wikipedia (view authors). |
| This is a documentation subpage for Template:Clear It may contain usage information, categories and other content that is not part of the original template page. |
Description
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.
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}}

Template:Lorem ipsum span
{{clear}}
New section with the template before
Here the code {{clear}} is placed before this section, so it appears below the image.
TemplateData
TemplateData for Clear
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 |