Template:Frac: Difference between revisions
From Vigyanwiki
Template>Crissov (1/7, 1/9, 1/10, ditch ⁄, CSS3 font-variant-numeric: diagonal-fractions) |
Template>Crissov (change <span> to <abbr>, add title parameter) |
||
Line 1: | Line 1: | ||
< | <abbr class="frac nowrap" style="font-variant-numeric: diagonal-fractions;border-bottom:0" title="{{#invoke:ConvertNumeric | numeral_to_english | {{#if:{{{3|}}}|{{{1|0}}}|}} | numerator={{#if:{{{3|}}}|{{{2|0}}}|{{#if:{{{2|}}}|{{{1|0}}}|1}}}} | denominator={{#if:{{{3|}}}|{{{3|1}}}|{{#if:{{{2|}}}|{{{2|1}}}|{{{1|1}}}}}}} }}">{{#if:{{{3|{{{2|}}}}}} | ||
|{{#if: {{{3|}}} |{{{1}}} |}}{{#switch: | |{{#if: {{{3|}}} |{{{1}}} |}}{{#switch: | ||
{{#expr: {{#if: {{{3|}}} | {{{2}}}/{{{3}}} | {{{1}}}/{{{2}}} }} }} | {{#expr: {{#if: {{{3|}}} | {{{2}}}/{{{3}}} | {{{1}}}/{{{2}}} }} }} | ||
Line 31: | Line 31: | ||
|#default=⅟{{{1|x}}} | |#default=⅟{{{1|x}}} | ||
}} | }} | ||
}}</ | }}</abbr><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 01:16, 7 January 2014
⅟x
Template documentation
[create]