Clear/doc: Difference between revisions

From SL Pro Wrestling Wiki
/>Henstepl
Remove Template:SPW and/or interlanguage links; they have been added to Template:Documentation
/>Lady Aleena
changed category, clean up
Line 1: Line 1:
;Description
; Description
:This template is a shorthand for <code>&lt;br style="clear:both;" /&gt;</code>.
:This template is a shorthand for <code>&lt;br style="clear: both;" /&gt;</code>.
:It moves any content following the template below any objects floating to the left and/or right (TOCs, infoboxes, images, etc..).
:It moves any content following the template below any objects floating to the left and/or right (TOCs, infoboxes, images, etc.).
;Syntax
; Syntax
:Type <code>{{t|clear}}</code> in an article at the point you want the clear past both right and left content.
: {{t|clear|style=code}} clears both right and left content.
:...or <code><nowiki>{{clear|left}}</nowiki></code> to clear past only left floating objects...
: {{t|clear|left|style=code}} clears only left floating objects.
:...or <code><nowiki>{{clear|right}}</nowiki></code> to clear past only right floating objects.
: {{t|clear|right|style=code}} clears only right floating objects.
 
: {{t|clear|none|style=code}} will not clear text after floating objects.
;Parameters
; Other options
* <code>1 =</code> ''Optionally'' specify clear criteria other than <code>both</code> (i.e. <code>left</code> or <code>right</code>)
: <code>inherit</code> and <code>initial</code>
** Also accepts: <code>inherit</code>, <code>initial</code>, or <code>none</code>
; See also
 
: {{t|-}} and {{t|clr}} clear both like this template. They do not have options.
;See also
: {{t|clrl}} clears left.
:{{t|clrl}} and {{t|clrr}} and {{t|clr}}<includeonly>
: {{t|clrr}} clears right.
[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><includeonly>
<includeonly>
[[Category:Utility templates|{{PAGENAME}}]]</includeonly><noinclude>
[[Category:Formatting and function templates|{{PAGENAME}}]]
[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
</includeonly><noinclude>
[[Category:Template documentation|{{PAGENAME}}]]
</noinclude>

Revision as of 21:10, 6 January 2018

Description
This template is a shorthand for <br style="clear: both;" />.
It moves any content following the template below any objects floating to the left and/or right (TOCs, infoboxes, images, etc.).
Syntax
Template:T clears both right and left content.
Template:T clears only left floating objects.
Template:T clears only right floating objects.
Template:T will not clear text after floating objects.
Other options
inherit and initial
See also
Template:T and Template:T clear both like this template. They do not have options.
Template:T clears left.
Template:T clears right.