Template:Clr/doc: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
(Created page with " ==Description== :This template is a shorthand for <code><div style="clear:both;"></div></code>. :It moves any content following the template below any objects floating...")
 
(TemplateData text copied from wikipedia:Template:Clear)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:


==Description==
==Description==
:This template is a shorthand for <code>&lt;div style="clear:both;">&lt;/div></code>.
This template is a shorthand for <code>&lt;div style="clear:both;">&lt;/div></code>. It moves any content following the template below any objects floating to the left and/or right (TOCs, infoboxes, images, etc..).
:It moves any content following the template below any objects floating to the left and/or right (TOCs, infoboxes, images, etc..).


==Syntax==
==Usage==
:Type <code>{{t|clr}}</code> in an article at the point you want the clear.
Type {{tlx|clr}} in an article at the point you want the clear.


This parameter also accepts one parameter, which can be written as {{tlx|clr|right}} or {{tlx|clr|left}}. This makes it so content is delayed until just the right or left column is complete. The default clears both columns.
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]<includeonly>

<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

==TemplateData==
{{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": "string",
"required": false
}
}
}
</templatedata>

Latest revision as of 20:33, 19 March 2019

Description[edit source]

This template is a shorthand for <div style="clear:both;"></div>. It moves any content following the template below any objects floating to the left and/or right (TOCs, infoboxes, images, etc..).

Usage[edit source]

Type {{clr}} in an article at the point you want the clear.

This parameter also accepts one parameter, which can be written as {{clr|right}} or {{clr|left}}. This makes it so content is delayed until just the right or left column is complete. The default clears both columns.

TemplateData[edit source]

This is the TemplateData documentation for this template used by the VisualEditor and other tools.

TemplateData for Clr

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

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.

Stringoptional