Difference between revisions of "Template:Clear/doc"

From Summertime Saga Wiki
Jump to: navigation, search
m
m
Line 11: Line 11:
 
=== Example without {{tlf|clear}} ===
 
=== Example without {{tlf|clear}} ===
  
[[File:Weightlifting_Minigame_icon.png|200px|left]]
+
[[File:Weightlifting_minigame_icon.jpg|200px|left]]
 
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..
 
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..
  
Line 21: Line 21:
 
=== Example that uses {{tlf|clear}} ===
 
=== Example that uses {{tlf|clear}} ===
  
[[File:Weightlifting_Minigame_icon.png|200px|left]]
+
[[File:Weightlifting_minigame_icon.jpg|200px|left]]
 
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.<br/>{{tnull|clear}}
 
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.<br/>{{tnull|clear}}
 
{{clear}}
 
{{clear}}

Revision as of 19:34, 25 June 2019

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

Template:Tl 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}}

Example without Template:Tlf

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 Template:Tlf

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?