Template:Clear float

From OpenGL Wiki
Revision as of 17:00, 8 September 2012 by Alfonse (talk | contribs) (Template for clearing floats.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template is used to ensure that floating panels are cleared, so that they do not interfere with section titles, code blocks, and the like.

For example:

{{infobox feature | name = This is a test | core = 0.1 | core_extension = I have an extension | arb_extension = Another extension | ext_extension = I'm really long }}

void TheInfoBoxOverlapsWithMe(int iThinkThisIsBad);

becomes this:

This is a test
Core in version 4.6
Core since version 0.1
Core ARB extension I have an extension
ARB extension Another extension
EXT extension I'm really long
void TheInfoBoxOverlapsWithMe(int iThinkThisIsBad);



To avoid this, use this template{{clear float}}:

{{infobox feature | name = This is a test | core = 0.1 | core_extension = I have an extension | arb_extension = Another extension | ext_extension = I'm really long }} {{clear float}}

void TheInfoBoxOverlapsWithMe(int iThinkThisIsBad);

Which renders as this:

This is a test
Core in version 4.6
Core since version 0.1
Core ARB extension I have an extension
ARB extension Another extension
EXT extension I'm really long


void TheInfoBoxOverlapsWithMe(int iThinkThisIsBad);