Difference between revisions of "Template:Clear/doc"

From Official Kodi Wiki
Jump to navigation Jump to search
(+cat.)
(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.

1 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.

1.1 Example without the {{Clear}} template

HeidelbergTun.jpg

Template:Lorem

1.1.1 New section without template

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

1.2 Example with the {{Clear}} template

HeidelbergTun.jpg

Template:Lorem {{clear}}

1.3 New section with template

See how this section appears below the image?

2 See also