Template:Clear: Difference between revisions
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
(documentation and TemplateData) |
Notjusttired (talk | contribs) m (optional) |
||
(One intermediate revision by one other user not shown) | |||
Line 9: | Line 9: | ||
* {{tlx|clear|right}} — adds <code><div style="clear:right;"></div></code> | * {{tlx|clear|right}} — adds <code><div style="clear:right;"></div></code> | ||
<templatedata>{ | == TemplateData == | ||
"description": "This template provides extra clear space, | <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": " | "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 | "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", | ||
" | "suggested": true, | ||
" | "autovalue": "both" | ||
} | } | ||
}, | }, | ||
"format": "inline" | "format": "inline" | ||
}</templatedata> | } | ||
</templatedata> | |||
</noinclude> | </noinclude> |
Latest revision as of 13:25, December 13, 2021
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[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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
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 |