Site Notice
  • We have a limited coverage policy. Please check our coverage page to see which articles are allowed.
  • Please no leaked content less than one year old, or videos of leaks.
  • Content copied verbatim from other websites or wikis will be removed.

Difference between revisions of "Template:Clear"

From NintendoWiki, your source on Nintendo information. By fans, for fans.
Jump to navigation Jump to search
(Created page with "<div style="clear:{{#ifeq:{{{1|}}}|{{void}}|both|{{{1|}}}}}"><noinclude> {{doc}}C</noinclude>")
 
(Created page with "{{#vardefine:both|<div style="clear:both;"></div>}}{{#vardefine:left|<div style="clear:left;"></div>}}{{#vardefine:right|<div style="clear:right;"></div>}}{{#switch:{{lc:{{{1|}}}...")
Line 1: Line 1:
<div style="clear:{{#ifeq:{{{1|}}}|{{void}}|both|{{{1|}}}}}"><noinclude>
+
{{#vardefine:both|<div style="clear:both;"></div>}}{{#vardefine:left|<div style="clear:left;"></div>}}{{#vardefine:right|<div style="clear:right;"></div>}}{{#switch:{{lc:{{{1|}}}}} |both={{#var:both}} |b={{#var:both}} |right={{#var:right}} |r={{#var:right}} |left={{#var:left}} |l={{#var:left}} |#default={{#var:both}}}}<noinclude>
{{doc}}[[Category:Formatting Templates|C]]</noinclude>
+
==Purpose==
 +
This template is used to add a clear space, and is useful for making sections in an article clear all images above them. 
 +
==Usage==
 +
To use this template, type: {{NoWikiTemp|optional|Side}} Where ''Side'' is if you wish the template to only clear one side or the other. Options are not case sensitive and they are as follows:
 +
* '''Both''' — Clears both sides. Template defaults to this if no side is defined.
 +
** Can also be used by typing in '''B'''.
 +
* '''Right''' — Clears content to the right of the template.
 +
** Can also be used by typing in '''R'''.
 +
* '''Left''' — Clears content to the left of the template.
 +
** Can also be used by typing in '''L'''. 
 +
[[Category: Formatting Templates|{{PAGENAME}}]] </noinclude>

Revision as of 02:23, 13 October 2010

{{#vardefine:both|

}}{{#vardefine:left|

}}{{#vardefine:right|

}}{{#var:both}}

Purpose

This template is used to add a clear space, and is useful for making sections in an article clear all images above them.

Usage

To use this template, type: Template:NoWikiTemp Where Side is if you wish the template to only clear one side or the other. Options are not case sensitive and they are as follows:

  • Both — Clears both sides. Template defaults to this if no side is defined.
    • Can also be used by typing in B.
  • Right — Clears content to the right of the template.
    • Can also be used by typing in R.
  • Left — Clears content to the left of the template.
    • Can also be used by typing in L.