Template:Clear/doc: Difference between revisions
Appearance
Pepperonipi (talk | contribs) "all" should be |
m Bot: Standardizing infobox templates. Moving Template:InvitationalInfoBox to Template:Infobox invitational tournament. |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
__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: | ||
| Line 9: | Line 10: | ||
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. | 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 == | |||
{| class="wikitable" style="width: 100%;" | |||
|- | |||
!Code !!Result !!Description | |||
|- style="background-color: #ffdddd;" | |||
| | |||
<pre> | |||
'''Invitational A''' is a great tournament! | |||
{{Infobox invitational tournament | |||
|Location=Mars}} | |||
== New Section == | |||
</pre> | |||
|style=" width: 50%"| | |||
<div style="background-color: white; padding: 2px;"> | |||
= Invitational A = | |||
'''Invitational A''' is a great tournament! | |||
{{Infobox invitational tournament | |||
|Location=Mars}} | |||
== New Section == | |||
</div> | |||
|This is '''not a good method''' to add a large amount of white space to an article. Instead, refer to the example below. | |||
|- style="background-color: #ddffdd;" | |||
| | |||
<pre> | |||
'''Invitational A''' is a great tournament! | |||
{{Infobox invitational tournament | |||
|Location=Mars}} | |||
{{clear|right}} | |||
== New Section == | |||
</pre> | |||
|style=" width: 50%"| | |||
<div style="background-color: white; padding: 2px;"> | |||
= Invitational A = | |||
'''Invitational A''' is a great tournament! | |||
{{Infobox invitational tournament | |||
|Location=Mars}} | |||
{{clear|right}} | |||
== New Section == | |||
</div> | |||
|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. | |||
<noinclude> | |||
[[Category:Templates]] | |||
[[Category:Organization Templates]] | |||
</noinclude> | |||
Latest revision as of 01:18, 18 May 2022
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!
{{Infobox invitational tournament
|Location=Mars}}
== New Section ==
|
Invitational AInvitational A is a great tournament!
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!
{{Infobox invitational tournament
|Location=Mars}}
{{clear|right}}
== New Section ==
|
Invitational AInvitational A is a great tournament!
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. | ||||||