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><div style="clear:both;"></div></code> | |||
* {{tlx|clear|left}} — adds <code><div style="clear:left;"></div></code> | |||
* {{tlx|clear|right}} — adds <code><div style="clear:right;"></div></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 documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
(optional) Side | 1 | 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.
| Line | suggested |