Template:Clr/doc: Difference between revisions
(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><div style="clear:both;"></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..). |
|||
== |
==Usage== |
||
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. |
|||
⚫ | |||
⚫ | |||
<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]
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
side | 1 | can be 'right' or 'left' so content is delayed until just the right or left column is complete. The default clears both columns. | String | optional |