On Friday, April 19, 2024 at 10:00 PM New York time, all OpenWiki Project sites will be undergoing scheduled maintenance for about 2 hours. Expect read-only access and brief periods of downtime.

Template:Clear: Difference between revisions

From Fire Emblem Wiki, your source on Fire Emblem information. By fans, for fans.
*>Tacobot
m (Text replace - 'Formatting Templatess' to 'Formatting Templates')
m (Text replacement - "Formatting Templates" to "Formatting templates")
(8 intermediate revisions by 5 users not shown)
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>
 
==Purpose==  
==Usage==
This template is used to add a clear space, and is useful for making sections in an article clear all images above them.  
This template will automatically clear content and force content to the side of it to be pushed underneath it. You can define a side by typing <nowiki>{{clear|left}}, {{clear|right}}, or {{clear|both}}.</nowiki> It defaults to "both" if none is given.
==Usage==
 
To use this template, type:
[[Category:Formatting Templates|C]]
<pre>
{{Clear| Side (Optional) }}
</pre>
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 04:22, 9 March 2018

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:

{{Clear| Side (Optional) }}

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.