Template:Sfrac

From RimWorld Wiki
Revision as of 05:03, 20 August 2014 by Zesty (talk | contribs) (Shameless rip for math purposes.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

1/{{{1}}}

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 2/3

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

results in: This is text before 421g abc345/8989 this is text after

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

results in: Before  2/3 after


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

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