Template:Clear

From EarthMC
Revision as of 17:35, 28 December 2022 by 181cm#0 (talk | contribs) (Created page with "<div style="clear:{{{1|both}}};"></div> <noinclude> ==Usage== ''This template is derived from [https://zh.moegirl.org.cn/ Moegirl Encyclopedia], and I only translated the description document.'' This template will add source code“<nowiki><div style="clear:both;"></div></nowiki>” This will make the content behind the template unaffected by the previous layout. This template has an anonymous parameter, using <code><nowiki>{{tlx|clear|left}}</nowiki></code> or <code>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

This template is derived from Moegirl Encyclopedia, and I only translated the description document.

This template will add source code“<div style="clear:both;"></div>”

This will make the content behind the template unaffected by the previous layout.

This template has an anonymous parameter, using {{tlx|clear|left}} or {{tlx|clear|right}}}.

Entering left will only take effect on the left content, and entering right will only take effect on the right content.

Example:

The example of {{clear}} is not used

Komeiji Koishi test.jpg

Text Text Text Text Text Text Text Text Text Text

Text Text Text Text Text Text Text

New chapter

Text Text Text Text Text Text Text Text

The example of {{clear}} is used

Komeiji Koishi test.jpg

Text Text Text Text Text Text Text Text Text Text

Text Text Text Text Text Text Text

{{clear}}This line is only for demonstration and will not appear in actual use


New chapter

Text Text Text Text Text Text Text Text