Template:Clear/doc

From [N8]
Revision as of 14:16, 5 June 2020 by Banri (talk | contribs) (Created page with "{{Documentation}} 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This is a documentation subpage for Template:Clear.
It contains usage information, categories, and other content that is not part of the original template page.

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

ParameterDescriptionTypeStatus
Placement1

One of: left, right, both

Example
left
Stringoptional