Template:Clear/doc: Difference between revisions
More actions
No edit summary |
m Reverted edits by The Mirror of Bangladesh (talk) to last revision by 2604:3D08:9476:BE00:BC20:CE2:7522:CB98 |
||
| (5 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
redirects|Clr|-heavily used template}}TemplateBox | {{redirects|Clr|-}}{{heavily used template}}{{cascade-protected template}}{{TemplateBox | ||
|1=1 | |1=1 | ||
|1label-en=side | |1label-en=side | ||
|1d | |1d=Which side to clear on: “left”, “right” or “both” | ||
|1d-de=Welche Seite zu berücksichtigen ist: “left” (links), “right” (rechts) oder “both” (beide) | |||
|1type=line | |1type=line | ||
|1def=both | |1def=both | ||
| Line 9: | Line 10: | ||
|name=Clear | |name=Clear | ||
|desc=This template clears floating elements, that is, it inserts as much space as needed so that the content after this template is below all floating elements (or elements floating to a given side of the page, if a side is specified). | |desc=This template clears floating elements, that is, it inserts as much space as needed so that the content after this template is below all floating elements (or elements floating to a given side of the page, if a side is specified). | ||
|desc-de=Diese Vorlage löscht schwebende Elemente, d.h. sie fügt so viel Platz wie nötig ein, damit sich der Inhalt nach dieser Vorlage unter allen schwebenden Elementen befindet (oder unter den schwebenden Elementen auf einer bestimmten Seite der Seite, wenn eine Seite angegeben ist). | |||
|namespace=all | |namespace=all | ||
|usergroup=all | |usergroup=all | ||
Latest revision as of 14:39, 18 April 2025
This template clears floating elements, that is, it inserts as much space as needed so that the content after this template is below all floating elements (or elements floating to a given side of the page, if a side is specified).
Usage
{{Clear |1= }}
Or use the shorthand
Code: <div style="clear:both"></div>
Template parameters
- TemplateData
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.
Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1 or useTemplateData=only on the /doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.
Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.
Wikipedia's help about TemplateData • Commons-specific information
This template clears floating elements, that is, it inserts as much space as needed so that the content after this template is below all floating elements (or elements floating to a given side of the page, if a side is specified).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| side | 1 | Which side to clear on: “left”, “right” or “both”
| Line | optional |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
See also
Localization
This template is not intended to be localized.