Template:Sfrac

From RimWorld Wiki
Revision as of 23:00, 2 May 2023 by Harakoni (talk | contribs) (Removing double space when no scalar)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Documentation icon Template documentation[view] [edit] [history] [purge]

Formats a fraction

  1. First parameter is the scalar
  2. Second paramater is the numerator
  3. Third parameter is the denominator
{{Sfrac|1|2|3}}

results in: 1 23

This is text before {{Sfrac|421g|abc345|8989}} this is text after

results in: This is text before 421g abc3458989 this is text after

Before {{Sfrac||2|3}} after

results in: Before 23 after


Before {{Sfrac||{{Cross}}{{RimworldIcon}}|{{Check}}{{RoyaltyIcon}}}} after

results in: Before Ex.pngContent from Rimworld core game onlyCheck.pngContent added by the Royalty DLC after