User talk:Crissov/Template:Frac
Appearance
New Code
[edit]<span
class="frac {{{class|}}}"
style="{{{style|}}}"
{{#if:{{{int|{{{3|}}}}}}
|{{/3|open={{{open|(}}}|int={{{int|{{{1|0}}}}}}|sep={{{sep|+}}}|num={{{num|{{{2|0}}}}}}|frasl={{{frasl|/}}}|den={{{den|{{{3|1}}}}}}|close={{{close|)}}}|title={{{title|{{{value|}}}}}}}}
|{{#if:{{{num|{{{2|}}}}}}
|{{/2|open={{{open|(}}}|num={{{num|{{{1|0}}}|frasl={{{frasl|/}}}|den={{{den|{{{2|1}}}}}}|close={{{close|)}}}|title={{{title|{{{value|}}}}}}}}
|{{#if:{{{den|{{{1|}}}}}}
|{{/2|open={{{open|(}}}|num=1|frasl={{{frasl|/}}}|den={{{den|{{{1|1}}}}}}|close={{{close|)}}}|title={{{title|{{{value|}}}}}}}}
|{{/0|open={{{open|}}}|frasl={{{frasl|/}}}|close={{{close|}}}|title={{{title|{{{value|}}}}}}}}
}} }} }}</span>
{{#iferror: {{#expr: {{{int}}} + {{{num}}} / {{{den}}} }} ||
value="{{{value|{{#expr: {{{int}}} + {{{num}}} / {{{den}}} }}}}}"
title="{{{title|= {{#expr: {{{int}}} + {{{num}}} / {{{den}}} }}}}}"
}}>
<span class="paren">{{{open}}}</span>
<span class="int">{{{int}}}</span>
<span class="sep">{{{sep}}}</span>
<span class="num">{{{num}}}</span>
<span class="frasl">{{{frasl}}}</span>
<span class="den">{{{den}}}</span>
<span class="paren">{{{close}}}</span>
{{#iferror: {{#expr: {{{num}}} / {{{den}}} }} ||
value="{{{value|{{#expr: {{{num}}} / {{{den}}} }}}}}"
title="{{{title|= {{#expr: {{{num}}} / {{{den}}} }}}}}"
}}>
<span class="paren">{{{open}}}</span>
<span class="num">{{{num}}}</span>
<span class="frasl">{{{frasl}}}</span>
<span class="den">{{{den}}}</span>
<span class="paren">{{{close}}}</span>
#REDIRECT [[Template:Frac/2]]
value="{{{value}}}"
title="{{{title}}}"
>
<span class="paren">{{{open}}}</span>
<span class="num"></span>
<span class="frasl">{{{frasl}}}</span>
<span class="den"></span>
<span class="paren">{{{close}}}</span>
MathML
[edit]<mathml> <mvar>{{{1}}}</mvar> &invisplus; <mnum>{{{2}}}</mnum> ⁄ <mden>{{{3}}}</mden> </mathml>