Template:Clear/doc

From Moegirlpedia
Jump to: navigation, search


Description

This template is the equivalent of “<div style="clear:both;"></div>”.

Adding this template will allow the contents below the template to be unaffected by the layout of the contents above.

This template has one anonymous parameter: {{clear|left}} or {{clear|right}}.

Passing parameter left will result in the template being effective for the contents on the left, and passing right will result in the template being effective for the contents on the right.

An example of contents without {{clear}}

Kedama Girl 17160696.png

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque ut dignissim ipsum. Nunc rhoncus a quam efficitur sodales. Vivamus eu placerat sem.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque ut dignissim ipsum. Nunc rhoncus a quam efficitur sodales. Vivamus eu placerat sem.

New Chapter

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque ut dignissim ipsum. Nunc rhoncus a quam efficitur sodales. Vivamus eu placerat sem.

An example of contents with {{clear}}

Kedama Girl 17160696.png

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque ut dignissim ipsum. Nunc rhoncus a quam efficitur sodales. Vivamus eu placerat sem.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque ut dignissim ipsum. Nunc rhoncus a quam efficitur sodales. Vivamus eu placerat sem.

{{clear}}This "clear" is an example,it won't appear in using


New Chapter

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque ut dignissim ipsum. Nunc rhoncus a quam efficitur sodales. Vivamus eu placerat sem.

See also

  • {{-}} is similar to this template, but will generate a line break.
  • {{Clear2}} is similar to this template, but can only be used between floating elements.