Difference between revisions of "Template:Clear/doc"

From Captain of Industry Wiki
Jump to: navigation, search
(Creation)
 
 
Line 11: Line 11:
<div style="border: 1px solid black; background: #111; padding: 1em; margin: 2em;">
<div style="border: 1px solid black; background: #111; padding: 1em; margin: 2em;">
=== Example without {{t|clear}} ===
=== Example without {{t|clear}} ===
[[File:Tree harvester.png|256px|left]]
[[File:Tree Harvester.png|256px|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 {{t|clear}} ===
=== Example that uses {{t|clear}} ===
[[File:Tree harvester.png|256px|left]]
[[File:Tree Harvester.png|256px|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/>
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/>
'''{{t|clear}}'''
'''{{t|clear}}'''

Latest revision as of 10:07, 18 June 2022

Description

This template makes content wait until existing content is completed in all columns. It is often used to prevent text from flowing next to unrelated images.

Usage

  • {{clear}} — adds <div style="clear:both;"></div>
  • {{clear|left}} — adds <div style="clear:left;"></div>
  • {{clear|right}} — adds <div style="clear:right;"></div>

Examples

Example without {{clear}}

Tree Harvester.png

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

Without {{clear}}, this section starts at the right of the image.

Example that uses {{clear}}

Tree Harvester.png

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

{{clear}} placed before this section, so it appears below the image.