Jump to content

Template talk:Mfrac

Page contents not supported in other languages.
Add topic
From Wikisource
Latest comment: 9 years ago by AuFCL

Debugging

[edit]

If you seriously want this to work you need to at least rewrite as

{{#tag:math|\scriptstyle{\frac{{{{1|}}}}{{{{2|}}}} } }}

AuFCL (talk) 08:22, 2 August 2015 (UTC)Reply

Suggestion

[edit]

To replicate the semantics of {{sfrac}}:

{{#tag:math|\scriptstyle{ {{{1|}}}\frac{ {{#if:{{{3|}}}|{{{2|}}}|{{{1|}}}}} }{ {{#if:{{{3|}}}|{{{3}}}|{{{2|}}}}} } } }}

ought to suffice. AuFCL (talk) 09:38, 2 August 2015 (UTC)Reply

Some test cases to consider

[edit]
{{mfrac|x|y|z}}
{{mfrac||y|z}}
{{mfrac|x|y}}
{{mfrac|x||z}}
{{mfrac|x||}}
{{mfrac||y|}}
{{mfrac|||z}}
{{mfrac||w}}
{{mfrac|k}}
{{mfrac}}