Difference between revisions of "Template:Clear"

From Nookipedia, the Animal Crossing wiki
(improved, allowing it to clear to left & right as well but still center by default)
m (Text replacement - "Category:Formatting Templates" to "Category:Formatting templates")
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
Placing <nowiki>{{clear}}</nowiki> onto a page causes any following content to appear below the content above the template. This template is mainly used to prevent new sections from appearing next to images.
 
Placing <nowiki>{{clear}}</nowiki> onto a page causes any following content to appear below the content above the template. This template is mainly used to prevent new sections from appearing next to images.
  
to give space to sections if they have a spacing issue. It can also give space to left or right sides of a section:
+
It can also give space to left or right sides of a section:
  
 
*<code><nowiki>{{clear|right}}</nowiki></code> gives space to right side of a section.
 
*<code><nowiki>{{clear|right}}</nowiki></code> gives space to right side of a section.
 
*<code><nowiki>{{clear|left}}</nowiki></code> gives space to left side of a section (ideal when headers clash with infoboxes).
 
*<code><nowiki>{{clear|left}}</nowiki></code> gives space to left side of a section (ideal when headers clash with infoboxes).
[[Category:Formatting Templates]]
+
[[Category:Formatting templates]]
 
</noinclude>
 
</noinclude>

Revision as of 19:47, March 22, 2021

Placing {{clear}} onto a page causes any following content to appear below the content above the template. This template is mainly used to prevent new sections from appearing next to images.

It can also give space to left or right sides of a section:

  • {{clear|right}} gives space to right side of a section.
  • {{clear|left}} gives space to left side of a section (ideal when headers clash with infoboxes).