Welcome to the Lylat Wiki, all about the Star Fox series! If you'd like to help out, please take a look at our community portal.

Difference between revisions of "Template:Clear"

From Lylat Wiki, your source on Star Fox information. By Fans, for Fans.
Jump to navigationJump to search
m (1 revision: importing from wikibound)
m (add category)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#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>
<div style="clear:{{{1|both}}};"></div><noinclude>{{doc}}[[Category:Formatting Templates]]</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>

Latest revision as of 18:16, 19 September 2020

Usage

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 {{clear|left}}, {{clear|right}}, or {{clear|both}}. It defaults to "both" if none is given.