Template:Clear/doc

From RimWorld Wiki
< Template:Clear
Revision as of 18:44, 4 March 2025 by Arcangelus (talk | contribs) (Repurposed from wikipedia. Perhaps not the best example, but it gives an idea of its effect in practice.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template makes content wait until existing content is completed in all columns. It is often used to prevent text from flowing next to unrelated images.

Usage[edit]

  • {{clear}} — adds <div style="clear:both;"></div>
  • {{clear|left}} — adds <div style="clear:left;"></div>
  • {{clear|right}} — adds <div style="clear:right;"></div>

For technical details, see the discussion in the talk page of the wikipedia equivalent.

Examples[edit]

Example without {{clear}}[edit]

Colonists can access Simple research bench outside build zone (indicated with plan) in RimWorld 1.3.3389.jpg

Some text over here

New section without the template before[edit]

Without the code {{clear}}, this section starts at the right of the image.

Example that uses {{clear}}[edit]

Colonists can access Simple research bench outside build zone (indicated with plan) in RimWorld 1.3.3389.jpg

Some text over here
{{clear}}

New section with the template before[edit]

Here the code {{clear}} is placed before this section, so it appears below the image.