Template:Clear/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Milker
No edit summary
meta>Milker
No edit summary
Line 10: Line 10:
{{tlx|clear}}: Makes content wait until existing content is completed in all columns.  Often used to stop text from flowing next to unrelated images.
{{tlx|clear}}: Makes content wait until existing content is completed in all columns.  Often used to stop text from flowing next to unrelated images.


==Usage==
== Usage ==
  <nowiki>{{clear}}</nowiki>
  <nowiki>{{clear}}</nowiki>
  <nowiki>{{clear|left}}</nowiki>
  <nowiki>{{clear|left}}</nowiki>
  <nowiki>{{clear|right}}</nowiki>
  <nowiki>{{clear|right}}</nowiki>


===Example without {{tlf|clear}}===
== Examples ==
 
=== Example without {{tlf|clear}} ===
[[File:HeidelbergTun.jpg|200px|left]]
[[File:HeidelbergTun.jpg|200px|left]]
{{Lorem ipsum}}
{{Lorem ipsum}}


====New section without template====
==== New section without template ====
See how this section starts at the right of the image?
Without {{tl|clear}}, this section starts at the right of the image.
{{clear}}
{{clear}}


===Example that uses {{tlf|clear}}===
=== Example that uses {{tlf|clear}} ===
[[File:HeidelbergTun.jpg|200px|left]]
[[File:HeidelbergTun.jpg|200px|left]]
{{Lorem ipsum}}<br/>'''{{tnull|clear}}'''
{{Lorem ipsum}}<br/>
'''{{tnull|clear}}'''
{{clear}}
{{clear}}


====New section with template====
==== New section with template ====
See how this section appears below the image?
{{tl|clear}} placed before this section, so it appears below the image.
{{#ifeq:{{FULLPAGENAME}}|Template:Clear|
 
===TemplateData===
== TemplateData ==
{{TemplateDataHeader}}
{{TemplateDataHeader}}
<templatedata>{
<templatedata>{
Line 45: Line 48:
"format": "inline"
"format": "inline"
}</templatedata>
}</templatedata>
}}


==See also==
== See also ==
* {{tl|Clear left}} (implemented using this template)
* {{tl|Clear left}} (implemented using this template)
* {{tl|Clear right}} (implemented using this template)
* {{tl|Clear right}} (implemented using this template)
Line 53: Line 55:
* {{tl|Float}}
* {{tl|Float}}
* {{tl|Stack}}
* {{tl|Stack}}
<includeonly>
 
[[Category:Line-handling templates]]
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
[[Category:Wikipedia XHTML tag-replacing templates]]
| <!-- ADD CATEGORIES HERE, and INTERWIKIS IN WIKIDATA -->
</includeonly>
[[{{ns:Category}}:Line-handling templates]]
[[{{ns:Category}}:Wikipedia XHTML tag-replacing templates]]
}}</includeonly>

Revision as of 15:15, 6 January 2020


This template adds <div style="clear:both;"></div>, <div style="clear:left;"></div>, or <div style="clear:right;"></div>; for technical HTML 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}}

Examples

Example without {{clear}}

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

Without {{clear}}, this section starts at the right of the image.

Example that uses {{clear}}

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

{{clear}} placed before this section, so it appears below the image.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for this template in articles based on this TemplateData.

TemplateData for Clear

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Side1

Can be 'right' or 'left' so content is delayed until just the right or left column is complete. The default clears both columns.

Lineoptional

See also