Difference between revisions of "Template:Clear"
From TLoZ: ALTTP Hacking Resources
Line 1: | Line 1: | ||
− | <includeonly><div style="clear:{{{1}}}"></div></includeonly><noinclude>Inserts a <tt>clear: both</tt> block. Useful for getting below images in pages.[[Category:Templates]]</noinclude> | + | <includeonly><div style="clear: {{ #if: {{{1|}}} | {{{1}}} | both }};"></div></includeonly><noinclude> |
+ | Inserts a <tt>clear: both</tt> block. Useful for getting below images in pages. | ||
+ | |||
+ | You can set the first parameter to ''left'' or ''right'' to only have it clear that side, e.g. <tt><nowiki>{{clear|left}}</nowiki></tt>. | ||
+ | |||
+ | [[Category:Templates]]</noinclude> |
Latest revision as of 02:50, 21 December 2016
Inserts a clear: both block. Useful for getting below images in pages.
You can set the first parameter to left or right to only have it clear that side, e.g. {{clear|left}}.