Template talk:Clear

From Guild Wars 2 Wiki
Jump to navigationJump to search

Protect[edit]

Perhaps protect this template? [1] -ContributionsWhy 11:30, 15 July 2008 (UTC)

Protected from unregistered edits for now. -- Gordon Ecker 23:51, 15 July 2008 (UTC)

Conversion to div from br element[edit]

(For reference, our clear template is now the same as w:Template:Clear)

Per some discussion on my talk page here I've replaced the br with a div element. Such that now it doesn't line-wrap as br elements do. For the majority of individual usage cases, this will have had no effect.

However, this has changed the appearance of the clear within infoboxes, e.g. the purple line dividing ;headers and :text in the infobox on Mirror of Anguish no longer has a space beneath it (that is to say, between the bottom of the infobox and the line).

A few options are available:

  • Do nothing, it doesn't "break" anything, only the appearance has changed.
  • Add height: 5px; to {{clear}} - the gap would be small enough for most people to not notice it.
  • Add a second parameter to optionally add the height to the template.
  • Add a class to it (e.g. "template-clear") and apply a height with CSS if the class is found within an infobox or nav. (personal favourite)

-Chieftain AlexUser Chieftain Alex sig.png 21:45, 29 June 2015 (UTC)

For the infoboxes and navs, what about replacing markup for CSS clearfix? --BryghtShadow (talk) 22:23, 29 June 2015 (UTC)