“模板:Clear/doc”的版本间差异

来自橘猪小站
跳到导航 跳到搜索
(创建页面,内容为“{{doc/start}} This template allows you to clear the left side, the right side, or both by adding <code><div style="clear:left/right/both;"></div></code> ==Usage== {{tl|Clear}}: Makes content wait until existing content is completed in all columns. Often used to stop text from flowing next to unrelated images. To clear the left, simply put {{tlx|Clear|left}}. To clear the right, put {{tlx|Clear|right}}. To clear both sides, put {{tl|Clear}}. Thi…”)
 
第1行: 第1行:
{{doc/start}}
<!-- 在本行下編輯模板說明 -->
==说明==
本模板会增加源代码“<nowiki><div style="clear:both;"></div></nowiki>”


This template allows you to clear the left side, the right side, or both by adding <code>&lt;div style="clear:left/right/both;"&gt;&lt;/div&gt;</code>
这会让模板之后的内容不受前面版式的影响。


==Usage==
本模板有一个匿名参数,用法 {{tlx|clear|left}} 或 {{tlx|clear|right}}
{{tl|Clear}}: Makes content wait until existing content is completed in all columns.  Often used to stop text from flowing next to unrelated images.


To clear the left, simply put {{tlx|Clear|left}}. To clear the right, put {{tlx|Clear|right}}. To clear both sides, put {{tl|Clear}}.
输入 left 只会对左侧内容生效,输入 right 只会对右侧内容生效。


This template can also be called with {{tl|-}} for short.
<div style="border:2px solid #000;margin-bottom:10px;padding:10px 15px;background-color:#FEEDE8">
==未使用<nowiki>{{clear}}</nowiki>的范例==
[[File:Logo.png|left]]
文字描述文字描述文字描述文字描述文字描述


{{doc/end}}
文字描述文字描述文字描述文字描述
==新章节==
文字描述文字描述文字描述文字描述文字描述
 
{{clear}}
</div>
 
<div style="border:2px solid #000;padding:10px 15px;background-color:#FEEDE8">
==使用了<nowiki>{{clear}}</nowiki>的范例==
[[File:Logo.png|left]]
文字描述文字描述文字描述文字描述文字描述
 
文字描述文字描述文字描述文字描述
 
{{color|red|<nowiki>{{clear}}</nowiki><small>仅为演示,实际使用时不会出现这行字</small>}}
{{clear}}
 
==新章节==
文字描述文字描述文字描述文字描述文字描述
</div>
 
<!-- 本行下加入模板的分類 -->
<includeonly>[[Category:辅助模板]][[Category:格式模板]]</includeonly>
<noinclude>[[Category:模板说明文件]]</noinclude>

2022年3月8日 (二) 14:01的版本

说明

本模板会增加源代码“<div style="clear:both;"></div>”

这会让模板之后的内容不受前面版式的影响。

本模板有一个匿名参数,用法 {{clear|left}}{{clear|right}}

输入 left 只会对左侧内容生效,输入 right 只会对右侧内容生效。

未使用{{clear}}的范例

Logo.png

文字描述文字描述文字描述文字描述文字描述

文字描述文字描述文字描述文字描述

新章节

文字描述文字描述文字描述文字描述文字描述

使用了{{clear}}的范例

Logo.png

文字描述文字描述文字描述文字描述文字描述

文字描述文字描述文字描述文字描述

模板:Color

新章节

文字描述文字描述文字描述文字描述文字描述