求真百科歡迎當事人提供第一手真實資料,洗刷冤屈,終結網路霸凌。

變更

前往: 導覽搜尋

Template:Clear/doc

移除 1,178 位元組, 6 年前
导入1个版本
<includeonly></includeonly><noinclude>{{template doc page viewed directlyDocumentation subpage}}</noinclude>{{high-userisk|36,0001610000+}}<!-- 在本行下編輯模板說明 -->{{Nosubst|The markup provided will be confusing to many editors, and as this template provides documentation for itself, there is little justification for substitution.}}本模板會增加原始碼<tt>&lt;div style="clear:both;"&gt;&lt;/div&gt;</tt>;XHTML技術的細節請見[[:en:{{Template talk:Clear]]。shortcut|-|Br|Clr}}
This template adds <code>&lt;div style="clear:both;"&gt;&lt;/div&gt;</code>, <code>&lt;div style= 說明 ="clear:left;"&gt;&lt;/div&gt;</code>, or <code>&lt;div style="clear:right;"&gt;&lt;/div&gt;</code>;{{tlx|clear}}讓後續內容整個在新列呈現。常使用於避免文字跟在無關的圖像後方。for technical HTML details, see [[Template talk:Clear]].
===使用方法===直接使用: <nowiki>{{Clear}}</nowiki>使用匿名参数: <nowiki>{{Clear|left}}</nowiki> <nowiki>{{Cleartlx|rightclear}}</nowiki><!-- The template may also be [[Wikipedia:Template substitution|substituted]], but as the markup provided will be confusing to many editors, and this template provides documentation for itself, there Makes content wait until existing content is little justification for substitutioncompleted in all columns. --> 本模板也可用[[Help:替换引用|替换引用]](Subst:)形式使用,但鉴于生成的标记会让很多编辑者感到困惑,并且本模板也提供了自身的说明文档,因此没有多大理由使用替换引用形式。<!-- <nowiki>{{subst:Clear}}</nowiki>本模板也可用[[Wikipedia:嵌入包含|嵌入包含]]形式使用,但由於提供的標記未必會改變或改善,有可能會超過嵌入包含的限制容量。 --><!-- The template may also be transcluded, but as the markup provided is unlikely Often used to stop text from flowing next to change or improve,there is little justification for transclusion overheadunrelated images.-->
== Usage== 未使用<nowiki>{{tnull|clear}} 模板的範例==</nowiki>[[File:101.portrait.altonthompson.jpg|示範圖片|200px <nowiki>{{clear|left]][[Lorem ipsum]] dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}}<br/nowiki>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. <brnowiki>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.{{clear|right}}<br/nowiki>
=== 新章節 Example without {{tlf|clear}}===注意本節和圖像重疊於同列,章節內容起始於圖像的右側。[[File:HeidelbergTun.jpg|200px|left]]{{Lorem}}
<div style="clear:both;"></div> <!-- a genuine use ===New section without template====See how this section starts at the right of the template! -->image?{{clear}}
== 使用=Example that uses {{tnulltlf|clear}} 模板的範例 ===[[File:101.portrait.altonthompsonHeidelbergTun.jpg|示範圖片|200px|left]][[{{Lorem ipsum]] dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}}<br/>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br>'''{{tnull|clear}}'''<div style="{{clear:both;"></div>}}
=== 新章節 =New section with template====這樣看起來不是好多了嗎?See how this section appears below the image?{{#ifeq:{{FULLPAGENAME}}|Template:Clear|== 參見 =TemplateData===* {{Tl|clearleftTemplateDataHeader}} <!-- delays templatedata>{ "description": "Makes content wait until left column existing content is completecompleted in all columns. Often used to stop text from flowing next to unrelated images, so text will appear on a full width line under the image. -->",* "params": { "1": {Tl|clearright}} <!-- delays "label": "side", "description": "can be 'right' or 'left' so content is delayed until just the right or left column is complete. -->The default clears both columns.", "type": "string", "required": false* {{Tl|clear2 } }* {{Tl|float}}</templatedata>* {{Tl|stack}}
==See also==
* {{tl|Clear left}}
* {{tl|Clear right}}
* {{tl|Clear2}}
* {{tl|Float}}
* {{tl|Stack}}
<includeonly>
[[Category: 辅助模板Line-handling templates]][[Category: 格式模板Wikipedia XHTML tag-replacing templates]]
</includeonly>
行政員使用者查核員拒收員巡檢員管理員、water、waterc、waterh、waterm、waterp、waters、watert、waterv、waterw、waterz
10,320
次編輯