Template:Clear/doc: Difference between revisions
Appearance
m Added categories |
m Removing the TemplateDocStart template from documentation for formatting purposes. |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
The '''Clear template''' is used to insert one of the following HTML elements: | The '''Clear template''' is used to insert one of the following HTML elements: | ||
Revision as of 00:27, 6 August 2020
The Clear template is used to insert one of the following HTML elements:
<div style="clear: both;"></div>({{{clear}}})<div style="clear: right;"></div>({{{clear|right}}})<div style="clear: left;"></div>({{{clear|left}}})
based on the argument provided to the template.
The HTML elements are used to make following content wait until the previous content is completed in the right or left columns, or all columns.
Use
| Code | Result | Description |
|---|---|---|
'''Invitational A''' is a great tournament!
{{InvitationalInfoBox
|Location=Mars
}}
== New Section ==
|
This is not a good method to add a large amount of white space to an article. Instead, refer to the example below. | |
'''Invitational A''' is a great tournament!
{{InvitationalInfoBox
|Location=Mars
}}
{{clear|right}}
== New Section ==
|
This is a good method to add a large amount of white space to an article. The clear template adds repeatability and saves a great deal of space, while achieving the same result. |