Template:Clear/doc
{{#ifeq: doc | doc
|
{{
#ifeq: show | show | {{#invoke:Message box|mbox}} }}{{ #if: | | {{#ifexist:Template:Clear|[[Category:{{ #switch: Template | Template = Template | Module = Module | User = User | #default = Wikidata }} documentation pages]]|}} }}
| }} Template:Used in system Template:High-risk Template:Nosubst {{#ifeq:Template:Clear/doc|Template:Clear|Template:Template shortcut}}
Contents
Description
It 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
- Template:Tlx — adds
<div style="clear:both;"></div>
- Template:Tlx — adds
<div style="clear:left;"></div>
- Template:Tlx — adds
<div style="clear:right;"></div>
For technical details, see the discussion in the talk page.
Examples
Example without Template:Tlf
New section without template
Without {{{{#if:|subst:}}{{#ifeq:c|:|:Clear|{{#switch:||Template=Clear|File|Category=clear|#default=clear}}}}{{#ifeq:x|{{{2}}}||{{{2}}}}}{{#ifeq:x|{{{3}}}||{{{3}}}}}{{#ifeq:x|{{{4}}}||{{{4}}}}}{{#ifeq:x|{{{5}}}||{{{5}}}}}{{#ifeq:x|{{{6}}}||{{{6}}}}}{{#ifeq:x|{{{7}}}||{{{7}}}}}{{#ifeq:x|{{{8}}}||{{{8}}}}}{{#ifeq:x|{{{9}}}||{{{9}}}}}{{#ifeq:x|{{{10}}}||{{{10}}}}}}}
, this section starts at the right of the image.
Example that uses Template:Tlf
Template:Lorem ipsum
Template:Tnull
New section with template
{{{{#if:|subst:}}{{#ifeq:c|:|:Clear|{{#switch:||Template=Clear|File|Category=clear|#default=clear}}}}{{#ifeq:x|{{{2}}}||{{{2}}}}}{{#ifeq:x|{{{3}}}||{{{3}}}}}{{#ifeq:x|{{{4}}}||{{{4}}}}}{{#ifeq:x|{{{5}}}||{{{5}}}}}{{#ifeq:x|{{{6}}}||{{{6}}}}}{{#ifeq:x|{{{7}}}||{{{7}}}}}{{#ifeq:x|{{{8}}}||{{{8}}}}}{{#ifeq:x|{{{9}}}||{{{9}}}}}{{#ifeq:x|{{{10}}}||{{{10}}}}}}}
placed before this section, so it appears below the image.
TemplateData
Template:TemplateData header <templatedata>{ "description": "Makes content wait until existing content is completed in all columns. Often used to stop text from flowing next to unrelated images, so text will appear on a full width line under the image.", "params": { "1": { "label": "Side", "description": "Can be 'right' or 'left' so content is delayed until just the right or left column is complete. The default clears both columns.", "type": "line", "required": false } }, "format": "inline" }</templatedata>
See also
{{{{#if:|subst:}}{{#ifeq:C|:|:Clear left|{{#switch:||Template=Clear left|File|Category=Clear left|#default=Clear left}}}}{{#ifeq:x|{{{2}}}||{{{2}}}}}{{#ifeq:x|{{{3}}}||{{{3}}}}}{{#ifeq:x|{{{4}}}||{{{4}}}}}{{#ifeq:x|{{{5}}}||{{{5}}}}}{{#ifeq:x|{{{6}}}||{{{6}}}}}{{#ifeq:x|{{{7}}}||{{{7}}}}}{{#ifeq:x|{{{8}}}||{{{8}}}}}{{#ifeq:x|{{{9}}}||{{{9}}}}}{{#ifeq:x|{{{10}}}||{{{10}}}}}}}
(implemented using this template){{{{#if:|subst:}}{{#ifeq:C|:|:Clear right|{{#switch:||Template=Clear right|File|Category=Clear right|#default=Clear right}}}}{{#ifeq:x|{{{2}}}||{{{2}}}}}{{#ifeq:x|{{{3}}}||{{{3}}}}}{{#ifeq:x|{{{4}}}||{{{4}}}}}{{#ifeq:x|{{{5}}}||{{{5}}}}}{{#ifeq:x|{{{6}}}||{{{6}}}}}{{#ifeq:x|{{{7}}}||{{{7}}}}}{{#ifeq:x|{{{8}}}||{{{8}}}}}{{#ifeq:x|{{{9}}}||{{{9}}}}}{{#ifeq:x|{{{10}}}||{{{10}}}}}}}
(implemented using this template){{{{#if:|subst:}}{{#ifeq:C|:|:Clear2|{{#switch:||Template=Clear2|File|Category=Clear2|#default=Clear2}}}}{{#ifeq:x|{{{2}}}||{{{2}}}}}{{#ifeq:x|{{{3}}}||{{{3}}}}}{{#ifeq:x|{{{4}}}||{{{4}}}}}{{#ifeq:x|{{{5}}}||{{{5}}}}}{{#ifeq:x|{{{6}}}||{{{6}}}}}{{#ifeq:x|{{{7}}}||{{{7}}}}}{{#ifeq:x|{{{8}}}||{{{8}}}}}{{#ifeq:x|{{{9}}}||{{{9}}}}}{{#ifeq:x|{{{10}}}||{{{10}}}}}}}
{{{{#if:|subst:}}{{#ifeq:F|:|:Float|{{#switch:||Template=Float|File|Category=Float|#default=Float}}}}{{#ifeq:x|{{{2}}}||{{{2}}}}}{{#ifeq:x|{{{3}}}||{{{3}}}}}{{#ifeq:x|{{{4}}}||{{{4}}}}}{{#ifeq:x|{{{5}}}||{{{5}}}}}{{#ifeq:x|{{{6}}}||{{{6}}}}}{{#ifeq:x|{{{7}}}||{{{7}}}}}{{#ifeq:x|{{{8}}}||{{{8}}}}}{{#ifeq:x|{{{9}}}||{{{9}}}}}{{#ifeq:x|{{{10}}}||{{{10}}}}}}}
{{{{#if:|subst:}}{{#ifeq:S|:|:Stack|{{#switch:||Template=Stack|File|Category=Stack|#default=Stack}}}}{{#ifeq:x|{{{2}}}||{{{2}}}}}{{#ifeq:x|{{{3}}}||{{{3}}}}}{{#ifeq:x|{{{4}}}||{{{4}}}}}{{#ifeq:x|{{{5}}}||{{{5}}}}}{{#ifeq:x|{{{6}}}||{{{6}}}}}{{#ifeq:x|{{{7}}}||{{{7}}}}}{{#ifeq:x|{{{8}}}||{{{8}}}}}{{#ifeq:x|{{{9}}}||{{{9}}}}}{{#ifeq:x|{{{10}}}||{{{10}}}}}}}