“模板:Clear/doc”的版本间差异
< 模板:Clear
跳到导航
跳到搜索
(创建页面,内容为“{{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行: | 第1行: | ||
<!-- 在本行下編輯模板說明 --> | |||
==说明== | |||
本模板会增加源代码“<nowiki><div style="clear:both;"></div></nowiki>” | |||
这会让模板之后的内容不受前面版式的影响。 | |||
本模板有一个匿名参数,用法 {{tlx|clear|left}} 或 {{tlx|clear|right}}。 | |||
{{ | |||
输入 left 只会对左侧内容生效,输入 right 只会对右侧内容生效。 | |||
<div style="border:2px solid #000;margin-bottom:10px;padding:10px 15px;background-color:#FEEDE8"> | |||
==未使用<nowiki>{{clear}}</nowiki>的范例== | |||
[[File:Logo.png|left]] | |||
文字描述文字描述文字描述文字描述文字描述 | |||
{{ | 文字描述文字描述文字描述文字描述 | ||
==新章节== | |||
文字描述文字描述文字描述文字描述文字描述 | |||
{{clear}} | |||
</div> | |||
<div style="border:2px solid #000;padding:10px 15px;background-color:#FEEDE8"> | |||
==使用了<nowiki>{{clear}}</nowiki>的范例== | |||
[[File:Logo.png|left]] | |||
文字描述文字描述文字描述文字描述文字描述 | |||
文字描述文字描述文字描述文字描述 | |||
<nowiki>{{clear}}</nowiki><small>仅为演示,实际使用时不会出现这行字</small> | |||
{{clear}} | |||
==新章节== | |||
文字描述文字描述文字描述文字描述文字描述 | |||
</div> | |||
<!-- 本行下加入模板的分類 --> | |||
<includeonly>[[Category:辅助模板]][[Category:格式模板]]</includeonly> | |||
<noinclude>[[Category:模板说明文件]]</noinclude> | |||
