Template:Clr: Difference between revisions

From Starfy Wiki
Jump to navigationJump to search
mNo edit summary
 
m & much better method of handling; consolidate templates
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<div style="clear:both; margin:0; padding:0;"></div><noinclude>
<div style="clear:{{#switch:{{{1|}}}|l=left|r=right|#default=both}}; margin:0; padding:0;"></div><noinclude>
{{documentation}}</noinclude>
{{documentation}}</noinclude>

Latest revision as of 04:38, 18 June 2026

Template documentation (for the template shown above, sometimes hidden or invisible)
Description
This template is a shorthand for <div style="clear:both;"></div>.
It moves any content following the template below any objects floating to the left and/or right (TOCs, infoboxes, images, etc..).
Syntax
Type {{clr}} in an article at the point you want the clear.
Alternatively, only clear on one side by adding a parameter "l" for left or "r" for right.
Type {{clr|l}} or {{clr|r}}.

Visit Template:Clr/doc to edit this text! (How does this work?)