Template:Clear: Difference between revisions
m (1 revision imported: Wikipedia's Clear Template for Images) |
(Added documentation) |
||
Line 1: | Line 1: | ||
<div style="clear:{{{1|both}}};" class={{{class|}}}></div><noinclude> | <div style="clear:{{{1|both}}};" class={{{class|}}}></div><noinclude> | ||
{{ | == Examples == | ||
<div style="border: 1px solid black; background: #fde; padding: 1em; margin: 2em;"> | |||
=== Example without <code><nowiki>{{clear}}</nowiki></code> === | |||
[[File:Papyrus_Scroll_Crafting_Recipe.png|200px|left]] | |||
The base ingredient in any portal scroll recipe, Papyrus Scrolls are crafted using rabbit hide, paper, ender pearls, and gold nuggets. | |||
==== New section without the template before ==== | |||
Without the code <code><nowiki>{{clear}}</nowiki></code>, this section starts at the right of the image. | |||
</div> | |||
<div style="border: 1px solid black; background: #fde; padding: 1em; margin: 2em;"> | |||
=== Example that uses <code><nowiki>{{clear}}</nowiki></code> === | |||
[[File:Papyrus_Scroll_Crafting_Recipe.png|200px|left]] | |||
Without the code <code><nowiki>{{clear}}</nowiki></code>, this section starts at the right of the image. | |||
{{clear}} | |||
==== New section with the template before ==== | |||
Here the code <code><nowiki>{{clear}}</nowiki></code> is placed before this section, so it appears below the image. | |||
</div> | |||
</noinclude> | </noinclude> |
Revision as of 07:43, 8 June 2024
Examples
Example without {{clear}}
The base ingredient in any portal scroll recipe, Papyrus Scrolls are crafted using rabbit hide, paper, ender pearls, and gold nuggets.
New section without the template before
Without the code {{clear}}
, this section starts at the right of the image.
Example that uses {{clear}}
Without the code {{clear}}
, this section starts at the right of the image.
New section with the template before
Here the code {{clear}}
is placed before this section, so it appears below the image.