Template:Clear/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SMcCandlish
+cat.
meta>Mirokado
add missing cat namespace; formatting: duplicate section name, 2x heading-style (using Advisor.js)
Line 17: Line 17:
[[Image:HeidelbergTun.jpg|200px|left]]
[[Image:HeidelbergTun.jpg|200px|left]]
{{Lorem}}
{{Lorem}}
====New section====
====New section without template====
See how this section starts at the right of the image?
See how this section starts at the right of the image?


Line 28: Line 28:
{{Clear}}
{{Clear}}


=== New section ===
===New section with template===
See how this section appears below the image?
See how this section appears below the image?


== See also ==
==See also==
* {{Lts|Clear left}} delays content until left column is complete.
* {{Lts|Clear left}} delays content until left column is complete.
* {{Lts|Clear right}} delays content until right column is complete.
* {{Lts|Clear right}} delays content until right column is complete.
Line 40: Line 40:


[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
[[Wikipedia XHTML tag replacing templates]]
[[Category:Wikipedia XHTML tag replacing templates]]


[[ar:قالب:تحديد]]
[[ar:قالب:تحديد]]

Revision as of 13:13, 11 February 2012


This template adds <div style="clear:both;"></div>; for technical XHTML details, see Template talk:Clear.

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

The template should not be substituted, as the markup provided will be confusing to many editors, and this template provides documentation for itself, there is little justification for substitution.

Example without the {{Clear}} template

Template:Lorem

New section without template

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

Example with the {{Clear}} template

Template:Lorem {{Clear}}

New section with template

See how this section appears below the image?

See also