Template:Clear: Difference between revisions

From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
(documentation and TemplateData)
m (optional)
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:
* {{tlx|clear|right}} — adds <code>&lt;div style="clear:right;"&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.",
<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": {
"params": {
"1": {
"1": {
"label": "(optional) Side",
"label": "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.",
"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",
"type": "line",
"default": "both",
"suggested": true,
"suggested": true
"autovalue": "both"
}
}
},
},
"format": "inline"
"format": "inline"
}</templatedata>
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 13:25, December 13, 2021

template icon Template documentation[create]

Description[edit source]

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[edit source]

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

TemplateData[edit source]

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
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