Template:Clear: Difference between revisions

From Celeste Wiki
Jump to navigation Jump to search
Content added Content deleted
m (1 revision imported: Reference-related templates)
(moving to doc)
Tag: Replaced
 
Line 1:
<div style="clear: both"></div><noinclude>{{Documentation}}</noinclude>
 
== Usage ==
 
Note there are no parameters for this template
 
'''<nowiki>{{Clear}}</nowiki>''' Included in page code, inserts the following code:
<nowiki><div style="clear: both"></div></nowiki>
 
This template adds <tt>&lt;div style="clear: both"&gt;&lt;/div&gt;</tt>;
for technical XHTML details see [[Template talk:Clear]].
 
== Documentation ==
 
{{tl|clear}}: Makes content wait until existing content is completed in all columns. Often used to stop text from flowing next to unrelated images.
 
=== Usage ===
 
<nowiki>{{subst:Clear}}</nowiki>
 
The template may also be transcluded, but as the
markup provided is unlikely to change or improve,
there is little justification for transclusion
overhead.
 
== Example without the '''<nowiki>{{clear}}</nowiki>''' template==
 
[[Image:Hitlers grandson.jpg|300px|left]]
{{lorum}}
==New section==
See how this section starts at the right of the image, with the line actually overlapping the image
 
<div style="clear: both"></div> <!-- a genuine use of the template! -->
== Example with the '''<nowiki>{{clear}}</nowiki>''' template==
 
[[Image:Hitlers grandson.jpg|300px|left]]
{{lorum}}
'''<nowiki>{{clear}}</nowiki>'''
<div style="clear: both"></div>
 
==New section==
See how this looks much better?
 
==How it works==
This is what {{Tl|clear}} actually does, ignore the <tt>&lt;noinclude&gt;</tt> stuff shown by <nowiki>{{msgnw:clear}}</nowiki>:
 
== Discussion ==
 
''The fine points of {{Tl|clear}} vs. {{Tl|-}} are discussed in [[Template talk:-#-_versus_clear|Template talk:-]].''
 
[[Category:Utility templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 18:26, 30 June 2024