Template:Clear: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
m (Adding direction parameter.)
m (Text replacement - "]] </noinclude>" to "]]</noinclude>")
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
<div style="clear: {{{1|both}}}"></div><noinclude>
<div style="clear: {{{1|both}}}"></div><noinclude>


==Use==
==Info==
Add this template to adjust a page's layout. It moves the content below the template down to the point after which all content before the template is finished, so that there are no horizontal overlaps with the heading.
Add this template to adjust a page's layout. It moves the content below the template down to the point after which all content before the template is finished, so that there are no horizontal overlaps with the heading.


The first parameter is optional, and if present, allows you to manually specify a direction of clearance ("left" or "right").
==Parameters==
{| class = "wikitable"
! Parameter || Mandatory || Default || Purpose || Detailed description
|-
! 1
| No || both || Direction || If present, this allows you to manually specify a direction of clearance (e.g. "left" or "right").
|}


Where possible you should just copy the code: <tt>&lt;div style="clear: both"&gt;&lt;/div&gt;</tt> instead of using <nowiki>{{clear}}</nowiki>.
==Skeleton==
[[Category:Templates|{{PAGENAME}}]]
<pre>
</noinclude>
{{clear|<direction>}}
</pre>
 
==Examples==
{| class = "wikitable"
! Code || Result
|-
|
<pre>[[File:Red Pikmin.png|thumb|left]] Text to the side of the image.
{{clear}}
Text below the image.</pre>
|
[[File:Red Pikmin.png|thumb|left]] Text to the side of the image.
{{clear}}
Text below the image.
|}
 
[[Category:Inline templates]]</noinclude>

Latest revision as of 01:47, August 30, 2019

Info

Add this template to adjust a page's layout. It moves the content below the template down to the point after which all content before the template is finished, so that there are no horizontal overlaps with the heading.

Parameters

Parameter Mandatory Default Purpose Detailed description
1 No both Direction If present, this allows you to manually specify a direction of clearance (e.g. "left" or "right").

Skeleton

{{clear|<direction>}}

Examples

Code Result
[[File:Red Pikmin.png|thumb|left]] Text to the side of the image.
{{clear}}
Text below the image.
Artwork of a Red Pikmin.
Text to the side of the image.

Text below the image.