Template:Clear/doc: Difference between revisions

From Workers & Resources: Soviet Republic Official Wiki
m (Reverted edits by 182.0.227.32 (talk) to last version by Clump)
m (1 revision imported)
Line 1: Line 1:
{{Languages|Template:Clear/doc}}
<noinclude>{{Documentationpage}}</noinclude>
{{documentation subpage}}
Template which makes content wait until existing content is completed in all columns. Often used to stop text from flowing next to unrelated images.
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
{{tsh|-|clr}}
==Usage==
Shorthand for <syntaxhighlight inline lang="html"><div style="clear: both;"></div></syntaxhighlight>.
<pre>{{clear}}</pre>
== TemplateData ==
 
{{TemplateData header}}
===Parameters===
<templatedata>
{{Docparam|name=&lt;unnamed 1>|req=no|default=both|desc=
{
Can be set to "left", "right" or "both". Can be used to only cancel floats to the left or right.
"description": "Clear floating block-level elements without line break",
}}
"params": {
"1": {
"label": "clear",
"description": "CSS clear: left, right, both, none",
"default": "both",
"type": "string"
}
}
}
</templatedata>
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Formatting templates{{#translation:}}]]
[[Category:Typing-aid templates{{#translation:}}]]
[[Category:Utility templates{{#translation:}}]]
}}</includeonly>

Revision as of 17:43, 14 June 2024

Template which makes content wait until existing content is completed in all columns. Often used to stop text from flowing next to unrelated images.

Usage

{{clear}}

Parameters

Neutral
(default: "both")
<unnamed 1>
Can be set to "left", "right" or "both". Can be used to only cancel floats to the left or right.