Template:Clear/doc: Difference between revisions
Page last edited 5 months ago by Xeverything11
wikipedia>GreenComputer m Modified TemplateData |
wikipedia>Milker No edit summary |
||
Line 17: | Line 17: | ||
===Example without {{tlf|clear}}=== | ===Example without {{tlf|clear}}=== | ||
[[File:HeidelbergTun.jpg|200px|left]] | [[File:HeidelbergTun.jpg|200px|left]] | ||
{{Lorem}} | {{Lorem ipsum}} | ||
====New section without template==== | ====New section without template==== | ||
Line 25: | Line 25: | ||
===Example that uses {{tlf|clear}}=== | ===Example that uses {{tlf|clear}}=== | ||
[[File:HeidelbergTun.jpg|200px|left]] | [[File:HeidelbergTun.jpg|200px|left]] | ||
{{Lorem}}<br/>'''{{tnull|clear}}''' | {{Lorem ipsum}}<br/>'''{{tnull|clear}}''' | ||
{{clear}} | {{clear}} | ||
Revision as of 06:50, 6 January 2020
Template:Documentation subpage Template:Used in system Template:High-risk Template:Nosubst
This template adds <div style="clear:both;"></div>
, <div style="clear:left;"></div>
, or <div style="clear:right;"></div>
;
for technical HTML details, see Template talk:Clear.
{{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}} {{clear|right}}
Example without Template:Tlf

New section without template
See how this section starts at the right of the image?
Example that uses Template:Tlf

Template:Lorem ipsum
Template:Tnull
New section with template
See how this section appears below the image?
See also
- {{Clear left}} (implemented using this template)
- {{Clear right}} (implemented using this template)
- {{Clear2}}
- {{Float}}
- {{Stack}}