Difference between revisions of "Template:Sfrac/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "Formats a fraction First parameter is the scalar Second paramater is the numerator Third parameter is the denominator <pre> {{Sfrac|1|2|3}} </pre> results in: {{Sfrac|1|2|3}...")
 
 
Line 1: Line 1:
 
Formats a fraction
 
Formats a fraction
  
First parameter is the scalar
+
# First parameter is the scalar
Second paramater is the numerator
+
# Second paramater is the numerator
Third parameter is the denominator
+
# Third parameter is the denominator
  
 
<pre>
 
<pre>
Line 19: Line 19:
 
</pre>
 
</pre>
 
results in: Before {{Sfrac||2|3}} after
 
results in: Before {{Sfrac||2|3}} after
 +
 +
 +
<pre>
 +
Before {{Sfrac||{{Cross}}{{RimworldIcon}}|{{Check}}{{RoyaltyIcon}}}} after
 +
</pre>
 +
results in: Before {{Sfrac||{{Cross}}{{RimworldIcon}}|{{Check}}{{RoyaltyIcon}}}} after
  
 
<includeonly>[[Category:Formatting templates]]</includeonly>
 
<includeonly>[[Category:Formatting templates]]</includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 23:01, 2 May 2023

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