Difference between revisions of "Template:Clear/doc"

From Summertime Saga Wiki
Jump to: navigation, search
m
m
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
This template adds <code><nowiki><div style="clear:both;"></div></nowiki></code>, <code><nowiki><div style="clear:left;"&gt;&lt;/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>.
  
{{tl|clear}} makes content wait until existing content is completed in all columns. Often used to stop text from flowing next to unrelated images.
+
{{tlg|code=yes|nolink=yes|clear}} makes content wait until existing content is completed in all columns. Often used to stop text from flowing next to unrelated images.
  
 
== Usage ==
 
== Usage ==
  
<nowiki>{{clear}}</nowiki>
+
: {{tlg|code=yes|nolink=yes|clear}}
<nowiki>{{clear|left}}</nowiki>
+
: {{tlg|code=yes|nolink=yes|clear|left}}
<nowiki>{{clear|right}}</nowiki>
+
: {{tlg|code=yes|nolink=yes|clear|right}}
  
=== Example without {{tlf|clear}} ===
+
== Examples ==
 +
 
 +
=== Example without {{tlg|nolink=yes|clear}} ===
  
 
[[File:Weightlifting_minigame_icon.jpg|200px|left]]
 
[[File:Weightlifting_minigame_icon.jpg|200px|left]]
Line 19: Line 21:
 
{{clear}}
 
{{clear}}
  
=== Example that uses {{tlf|clear}} ===
+
=== Example that uses {{tlg|nolink=yes|clear}} ===
  
 
[[File:Weightlifting_minigame_icon.jpg|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>{{tlg|code=yes|nolink=yes|clear}}
 
{{clear}}
 
{{clear}}
  
Line 29: Line 31:
 
See how this section appears below the image?
 
See how this section appears below the image?
  
[[Category:Documentation subpages]]
+
[[Category:Templates]]
 +
[[Category:Templates documentation]]

Latest revision as of 16:00, 21 July 2020

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

{{clear}} 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.
{{clear}}

New section with template

See how this section appears below the image?