Template:Clear: Difference between revisions

From [N8]
Jump to navigation Jump to search
m 1 revision imported
mNo edit summary
 
Line 1: Line 1:
<div style="clear: both;"></div><noinclude>This template is used to prevent the collapsing/overlapping of boxes/tables through forcing a return down to the line.
<div class="clear-template clear-{{lc:{{{1|both}}}}}" style="clear:{{#if:{{{1|}}}|{{{1}}}|both}};"></div><noinclude>{{/doc}}</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 16:57, 17 February 2020

Template documentation
This documentation is transcluded from Template:Clear/doc. [edit] [purge]

The clear template is used when the text needs to be moved below, for example, after an image or an infobox.

Usage

The CSS from this template has been moved to MediaWiki:Common.css and replaced with classes. Each class corresponds to a certain style, e.g. clear-both adds clear:both;, clear-right adds clear:right;, etc.

{{clear}}
substitutes: <div class="clear-both"></div>
{{clear|left}}
substitutes: <div class="clear-left"></div>
{{clear|right}}
substitutes: <div class="clear-right;"></div>


Data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

The clear template is used when the text needs to be moved below, for example, after an image or an infobox.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Placement1

One of: left, right, both

Example
left
Stringoptional