Actions

Frac

Difference between revisions of "Frac"

m
m
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
It should be called in the following format:
 
It should be called in the following format:
 
<pre>
 
<pre>
{{frac|numerator|denominator|multiplier}}
+
{{frac|numerator|denominator|multiplier|prequel}}
 
</pre>  
 
</pre>  
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
<table class="orfrac" style="width:initial; padding: 0; white-space: nowrap; display:inline-block; margin-bottom:0; background: inherit;">
 
<table class="orfrac" style="width:initial; padding: 0; white-space: nowrap; display:inline-block; margin-bottom:0; background: inherit;">
 
   <tr style="background: transparent;">
 
   <tr style="background: transparent;">
{{#if: {{{4|}}}|<td style="vertical-align: middle;" rowspan="2">&#160;&#160;&#215;&#160;{{{3}}}</td>|}}
+
{{#if: {{{4|}}}|<td style="vertical-align: middle;" rowspan="2">{{{4}}}&#160;&#160;</td>|}}
 
     <td style="border-bottom: 1px solid #696969; padding: 0; text-align: center;">{{{1}}}</td>
 
     <td style="border-bottom: 1px solid #696969; padding: 0; text-align: center;">{{{1}}}</td>
 
{{#if: {{{3|}}}|<td style="vertical-align: middle;" rowspan="2">&#160;&#160;&#215;&#160;{{{3}}}</td>|}}
 
{{#if: {{{3|}}}|<td style="vertical-align: middle;" rowspan="2">&#160;&#160;&#215;&#160;{{{3}}}</td>|}}

Latest revision as of 17:34, 18 November 2021

This is the "fraction" template. It should be called in the following format:

{{frac|numerator|denominator|multiplier|prequel}}