Template talk:Clear

From Wikipedia, the free encyclopedia

Template:Clear is permanently protected from editing, as it is a heavily used or visible template.

Substantial changes should be proposed here, and made by administrators if the proposal is uncontroversial, or has been discussed and is supported by consensus. Use {{editprotected}} to attract the attention of an administrator in such cases.
Any contributor may edit the template's documentation to add usage notes, categories or interwiki links.

Why don't you use <br clear="all">? ~iNVERTED | Rob (Talk | Contribs) 17:58, 26 September 2006 (UTC)

Because MediaWiki's software often encapsulates that into an (otherwise empty) paragraph. Often there's nothing that can be done about that and it tends to look ugly. Also, a paragraph should be exactly that: a paragraph. Shinobu 17:04, 28 December 2006 (UTC)
{{-}} contains that markup.  Tcrow777  talk  04:32, 1 August 2007 (UTC)

Contents

[edit] Test 1 -no clear

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 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.

[edit] Stuck Section

Test

[edit] *test2 - with above fix

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 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.

[edit] Section Test

Test

  • It appears to work for this scenario, anyone else? — xaosflux Talk 01:42, 27 September 2006 (UTC)

[edit] A similar problem

Please have a look at wikt:Dervish#English. The Commons template overlaps with the translations table. Any suggestions? Wikipeditor 23:32, 9 December 2006 (UTC)

Same at zh:陰城郡, if viewed at large font sizes.

Somewhat fixed them. (I simply moved them up in the code) However, I do find these [edit] links very misplaced. --Sébastien Leblanc ( Talk | E-mail ) 20:39, 30 July 2007 (UTC)

[edit] <div style="clear:both;"></div> and <br clear="all"/>

What is the difference between <div style="clear:both;"></div> and <br clear="all"/>? -PatPeter 19:07, 26 March 2007 (UTC)

Look at top of this page for the explanation. -- drini [meta:] [commons:] 01:51, 14 April 2007 (UTC)

[edit] Don't subst

I think this template should not be substituted into articles. Many editors won't understand the purpose of the resulting HTML, however if they see a template they can find out what is used for. -- Patleahy (talk) 19:16, 31 July 2007 (UTC)

[edit] empty div syntax

Is there any reason why it is not <div style="clear:both;"/>? This would require less bandwidth and not require the browser to set up a CDATA in the DOM that turns out to be empty. John Vandenberg 01:33, 14 August 2007 (UTC)

Because some browsers don't recognize XHTML-style self-closing tags, so that would result in those browsers seeing a never-closed div. Even modern browsers can do this in some circumstances. Anomie 17:23, 18 August 2007 (UTC)
MediaWiki would turn it into the expanded syntax anyways. Ms2ger (talk) 16:43, 22 December 2007 (UTC)

[edit] Does anyone actually look at the result?

So someone developed another "cool" program. But the resulting page layouts look like a third-grader did them. There is no style, no artistic merit. Sometimes programmers need to have their computers disabled so that people who know what a page layout is actually supposed to look like can do a good job. "Clear" wiki is a miserable "tool". It's like using a hammer to put a staple in your term paper. And to answer your question, NO, It doesn't look better. (Taivo (talk) 11:03, 18 May 2008 (UTC))