Difference between revisions of "Template:Clear/doc"

From Summertime Saga Wiki
Jump to: navigation, search
m (Examples)
m
Line 1: Line 1:
The template {{tl|clear}} adds <code><nowiki><div style="clear:both;"></div></nowiki></code>, <code><nowiki><div style="clear:left;></div></nowiki></code>, or <code><nowiki><div style="clear:right;"></div></nowiki></code>.
+
The template {{tlg|clear}} adds <code><nowiki><div style="clear:both;"></div></nowiki></code>, <code><nowiki><div style="clear:left;></div></nowiki></code>, or <code><nowiki><div style="clear:right;"></div></nowiki></code>.
  
 
{{tlc|clear}} makes content wait until existing content is completed in all columns. Often used to stop text from flowing next to unrelated images.
 
{{tlc|clear}} makes content wait until existing content is completed in all columns. Often used to stop text from flowing next to unrelated images.
Line 5: Line 5:
 
== Usage ==
 
== Usage ==
  
: <code><nowiki>{{clear}}</nowiki></code>
+
: {{tlg|code=yes|nolink=yes|clear}}
: <code><nowiki>{{clear|left}}</nowiki></code>
+
: {{tlg|code=yes|nolink=yes|clear|left}}
: <code><nowiki>{{clear|right}}</nowiki></code>
+
: {{tlg|code=yes|nolink=yes|clear|right}}
  
 
== Examples ==
 
== Examples ==

Revision as of 15:59, 21 July 2020

The template {{clear}} adds <div style="clear:both;"></div>, <div style="clear:left;></div>, or <div style="clear:right;"></div>.

Template:Tlc makes content wait until existing content is completed in all columns. Often used to stop text from flowing next to unrelated images.

Usage

{{clear}}
{{clear|left}}
{{clear|right}}

Examples

Example without {{clear}}

Weightlifting minigame icon.jpg

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat..

New section without template

See how this section starts at the right of the image?

Example that uses {{clear}}

Weightlifting minigame icon.jpg

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Template:Tnull

New section with template

See how this section appears below the image?