Difference between revisions of "Template:-"

From YUIkipedia
Jump to navigation Jump to search
 
m (1 revision)
Line 1: Line 1:
<includeonly><br clear="all" /></includeonly><noinclude>
+
<includeonly><br style="clear:both" /></includeonly><noinclude>
このテンプレートは記事の == == 空間を画像や表などが越えることを防止するためのもので、レイアウトに使います。[[Help:画像の表示#回り込みの解除]]を参照してください。
+
{{pp-template|small=yes}}
 
+
{{documentation}}
[[Category:レイアウト用テンプレート|-]]
+
</noinclude>
 
 
[[ar:قالب:-]]
 
[[bs:Šablon:-]]
 
[[ca:Plantilla:-]]
 
[[cs:Šablona:-]]
 
[[da:Skabelon:-]]
 
[[en:Template:-]]
 
[[es:Plantilla:--]]
 
[[et:Mall:Puhasta]]
 
[[fr:Modèle:Clr]]
 
[[hr:Predložak:-]]
 
[[hu:Sablon:-]]
 
[[ia:Patrono:-]]
 
[[id:Templat:-]]
 
[[io:Shablono:-]]
 
[[is:Snið:-]]
 
[[ka:თარგი:-]]
 
[[ko:틀:-]]
 
[[lt:Šablonas:-]]
 
[[lv:Veidne:-]]
 
[[ms:Templat:-]]
 
[[nl:Sjabloon:Clearboth]]
 
[[no:Mal:-]]
 
[[oc:Modèl:Clr]]
 
[[pt:Predefinição:Clear]]
 
[[ro:Format:-]]
 
[[simple:Template:-]]
 
[[sl:Predloga:-]]
 
[[su:Citakan:-]]
 
[[sv:Mall:-]]
 
[[tr:Şablon:-]]
 
[[vi:Bản mẫu:-]]
 
[[zh:Template:-]]
 
[[ru:Template:clear]]</noinclude>
 

Revision as of 13:21, 18 March 2010

[edit] [purge] 50px Template documentation

Use {{-}} after any floating elements and before elements you do not wish to float together with the first set. This uses a line break, which may introduce an ugly extra blank line. If you want to avoid that, use {{clear}} instead.

Details

{{-}} contains the markup:

<br style="clear:both" />

This causes any previously-established float to clear.

The unusual name of this template is a mnemonic for an imaginary horizontal line, which separates floating elements above from those below. Some editors prefer the mnemonic {{clr}} ("clear"), which simply redirects here. However, don't confuse {{clr}} with {{clear}}, which is a different template that uses <div /> instead of <br /> and so does not introduce an extra line break.

Examples

Template:Wrapper (edit talk links history)
starts a table floating right e.g. for an
infobox next to the ToC. For better
examples check out the links. Please
add missing {{-}} where necessary.
 
This ugly table is only a quick example.

First

In the first example {{-}} after the word browser guarantees that the table doesn't float into the second example.

  • Cute, but less funny if it overlaps the next table or section, causing horizontal scrolling or worse depending on the browser.
Template:Wrapper (edit talk links history)
starts a table floating right e.g. for an
infobox next to the ToC. For better
examples check out the links. Please
add missing {{-}} where necessary.
 
This ugly table is only a quick example.

Second

In the second example the position of {{-}} is after the word but. Note that it doesn't affect the left margin of the bullet * list, because it's used inside of it.

  • Cute, but
    less funny if it overlaps the next table or section, causing horizontal scrolling or worse depending on the browser.
Template:Wrapper (edit talk links history)
starts a table floating right e.g. for an
infobox next to the ToC. For better
examples check out the links. Please
add missing {{-}} where necessary.
 
This ugly table is only a quick example.

Third

The third example has a new line after the word but and {{-}} after the word browser.

  • Cute, but

less funny if it overlaps the next table or section, causing horizontal scrolling or worse depending on the browser.

Template:Wrapper (edit talk links history)
starts a table floating right e.g. for an
infobox next to the ToC. For better
examples check out the links. Please
add missing {{-}} where necessary.
 
This ugly table is only a quick example.

Fourth

The fourth example has {{-}} and a new line after the word but.

  • Cute, but

less funny if it overlaps the next table or section, causing horizontal scrolling or worse depending on the browser.

See also

ar:قالب:- bs:template:- ca:template:- cs:Šablona:- da:template:- de:Vorlage:- dsb:Pśedłoga:- eo:Ŝablono:- es:Plantilla:-- hr:template:- hsb:Předłoha:- ia:Patrono:- id:template:- is:template:- ka:თარგი:- ko:틀:- it:Template:Clear ja:Template:- lt:template:- lv:template:- ms:template:- nl:Sjabloon:Clear no:template:- oc:template:- pl:template:- pt:Predefinição:- ro:template:- simple:template:- sl:template:- su:template:- sv:template:- vi:Tiêu bản:- zh:Template:-