<translate> {{<tvar name=1>PLURAL:2</tvar>|shortcut|shortcuts}}:</translate> {{-}} {{clr}}

Template:Clear/doc: Difference between revisions

From Workers & Resources: Soviet Republic Official Wiki
workers-resources-fandom>Abominação
mNo edit summary
 
m (Reverted edits by 182.0.227.32 (talk) to last version by Clump)
Line 1: Line 1:
<noinclude>{{Documentationpage}}</noinclude>
{{Languages|Template:Clear/doc}}
Template which makes content wait until existing content is completed in all columns. Often used to stop text from flowing next to unrelated images.
{{documentation subpage}}
 
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
==Usage==
{{tsh|-|clr}}
<pre>{{clear}}</pre>
Shorthand for <syntaxhighlight inline lang="html"><div style="clear: both;"></div></syntaxhighlight>.
 
== TemplateData ==
===Parameters===
{{TemplateData header}}
{{Docparam|name=&lt;unnamed 1>|req=no|default=both|desc=
<templatedata>
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 18:04, 25 January 2024

[[Category:Template documentation pages{{#translation:}}]] Shorthand for <syntaxhighlight inline lang="html">

</syntaxhighlight>.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Clear

[[Category:TemplateData documentation{{#translation:}}]]

<templatedata> { "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>