Template documentation (for the above template, sometimes hidden or invisible)[view] [edit] [history] [refresh]

Description

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

Code

{{clr}}<br style="clear:{{{1|both}}};" />

Usage

{{clr}}
{{clr|left}}
{{clr|right}}

Examples

Example without {{clr}}
HeidelbergTun.jpg

Lorem ipsum dolor sit amet, consectetur adipisicing 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 {{clr}}

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

Example that uses {{clr}}
HeidelbergTun.jpg

Lorem ipsum dolor sit amet, consectetur adipisicing 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.
{{clr}}

New section with template {{clr}}

See how this section appears below the image?

Redirects

See also

  • {{align}}
  • {{float}}
  • {{stack}}
  • {{clear}}/{{clr}}
  • {{clear}}-family of templates:[2]
    • {{clear}} → delays content until all columns are complete, using a DIV statement
    • {{clear left}}{{clear|left}} → but to the left only
    • {{clear right}}{{clear|right}} → but to the right only
  • {{clr}}-family of templates:[3]
    • {{clr}} → delays content until all columns are complete, using a linebreak
    • {{clrl}}{{clr|left}} → but to the left only
    • {{clrr}}{{clr|right}} → but to the right only

Notes

  1. {{clr}} uses a line break, which may introduce an ugly extra blank line. If you want to avoid that, use {{clear}} instead.
  2. Based on <div style="clear:both;"></div>
  3. Based on <br style="clear:both;" />



The above Template documentation is transcluded from Template:Clr/doc. (edit | history)
Editors can experiment in this template’s sandbox (create) and testcases (create) pages
Please add categories and interwikis to the /doc subpage.
Subpages of this template
Community content is available under CC-BY-SA unless otherwise noted.