Template:Clear: Difference between revisions

From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
m (1 revision imported)
(TemplateData)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div style="clear:{{{1|both}}};"></div><noinclude>
<div style="clear:{{{1|both}}};"></div><noinclude>
{{documentation}}
{{documentation}}
== Description ==
This template provides extra clear space, ''if needed'', to ensure that the previous text and its accompanying image stay together. It is often used to prevent the following text from flowing next to the previous, unrelated image.
== Usage ==
* {{tlx|clear}} — adds <code>&lt;div style="clear:both;"&gt;&lt;/div&gt;</code>
* {{tlx|clear|left}} — adds <code>&lt;div style="clear:left;"&gt;&lt;/div&gt;</code>
* {{tlx|clear|right}} — adds <code>&lt;div style="clear:right;"&gt;&lt;/div&gt;</code>
== TemplateData ==
<templatedata>
{
"description": "This template provides extra clear space, if needed, to ensure that the previous text and its accompanying image stay together. It is often used to prevent the following text from flowing next to the previous, unrelated image.  You do NOT need to enter any information below.",
"params": {
"1": {
"label": "(optional) Side",
"description": "If you wish, you can specify 'right' or 'left' depending upon whether the previous image is on the right or left side of the page.  You normally DON'T need to specify this.",
"type": "line",
"suggested": true,
"autovalue": "both"
}
},
"format": "inline"
}
</templatedata>
</noinclude>
</noinclude>

Revision as of 02:12, February 22, 2020

template icon Template documentation[create]

Description

This template provides extra clear space, if needed, to ensure that the previous text and its accompanying image stay together. It is often used to prevent the following text from flowing next to the previous, unrelated image.

Usage

  • {{clear}} — adds <div style="clear:both;"></div>
  • {{clear|left}} — adds <div style="clear:left;"></div>
  • {{clear|right}} — adds <div style="clear:right;"></div>

TemplateData

This template provides extra clear space, if needed, to ensure that the previous text and its accompanying image stay together. It is often used to prevent the following text from flowing next to the previous, unrelated image. You do NOT need to enter any information below.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
(optional) Side1

If you wish, you can specify 'right' or 'left' depending upon whether the previous image is on the right or left side of the page. You normally DON'T need to specify this.

Auto value
both
Linesuggested