Template: Clear: Difference between revisions

From The Lost Media Wiki
Jump to: navigation, search
(Created page with "<div style="clear:{{{1|both}}};"></div> <noinclude><br style="clear:both;"/> {{documentation}}</noinclude>")
 
m (Protected "Template:Clear" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(No difference)

Latest revision as of 10:24, 24 November 2017


Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Clear/doc to edit this documentation. (How does this work?)

This template 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}}

Example without {{clear}}

Lmw tan by gaucelm-d9cl8hx.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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

New section without template

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


Example that uses {{clear}}

Lmw tan by gaucelm-d9cl8hx.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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{clear}}


New section with template

See how this section appears below the image?