Jump to content

Template:Fraction/testcases

From Wikipedia, the free encyclopedia

Plain text

[edit]
Sandbox
11 11 12 22 13 23 14 34 15 25 35 45 16 56 17 27 37 47 57 67 18 38 58 78 116 316 516 716 916 1116 1316 1516 123456789 123456789
Live
11 11 12 22 13 23 14 34 15 25 35 45 16 56 17 27 37 47 57 67 18 38 58 78 116 316 516 716 916 1116 1316 1516 123456789 123456789

In {{math}}

[edit]
Sandbox
11 11 12 22 13 23 14 34 15 25 35 45 16 56 17 27 37 47 57 67 18 38 58 78 116 316 516 716 916 1116 1316 1516 123456789 123456789
Live
11 11 12 22 13 23 14 34 15 25 35 45 16 56 17 27 37 47 57 67 18 38 58 78 116 316 516 716 916 1116 1316 1516 123456789 123456789


In {{bigmath}}

[edit]
Sandbox
11 11 12 22 13 23 14 34 15 25 35 45 16 56 17 27 37 47 57 67 18 38 58 78 116 316 516 716 916 1116 1316 1516 123456789 123456789
Live
11 11 12 22 13 23 14 34 15 25 35 45 16 56 17 27 37 47 57 67 18 38 58 78 116 316 516 716 916 1116 1316 1516 123456789 123456789

In .stacked

[edit]
Sandbox
11 11 12 22 13 23 14 34 15 25 35 45 16 56 17 27 37 47 57 67 18 38 58 78 116 316 516 716 916 1116 1316 1516 123456789 123456789
Live
11 11 12 22 13 23 14 34 15 25 35 45 16 56 17 27 37 47 57 67 18 38 58 78 116 316 516 716 916 1116 1316 1516 123456789 123456789

In .vulgar

[edit]
Sandbox
11 11 12 22 13 23 14 34 15 25 35 45 16 56 17 27 37 47 57 67 18 38 58 78 116 316 516 716 916 1116 1316 1516 123456789 123456789
Live
11 11 12 22 13 23 14 34 15 25 35 45 16 56 17 27 37 47 57 67 18 38 58 78 116 316 516 716 916 1116 1316 1516 123456789 123456789

In .fancy

[edit]
Sandbox
11 11 12 22 13 23 14 34 15 25 35 45 16 56 17 27 37 47 57 67 18 38 58 78 116 316 516 716 916 1116 1316 1516 123456789 123456789
  • Live:
    11 11 12 22 13 23 14 34 15 25 35 45 16 56 17 27 37 47 57 67 18 38 58 78 116 316 516 716 916 1116 1316 1516 123456789 123456789

In .math

[edit]
Sandbox
11 11 12 22 13 23 14 34 15 25 35 45 16 56 17 27 37 47 57 67 18 38 58 78 116 316 516 716 916 1116 1316 1516 123456789 123456789
Live
11 11 12 22 13 23 14 34 15 25 35 45 16 56 17 27 37 47 57 67 18 38 58 78 116 316 516 716 916 1116 1316 1516 123456789 123456789

In .fancy.stacked

[edit]
Sandbox
11 11 12 22 13 23 14 34 15 25 35 45 16 56 17 27 37 47 57 67 18 38 58 78 116 316 516 716 916 1116 1316 1516 123456789 123456789
Live
11 11 12 22 13 23 14 34 15 25 35 45 16 56 17 27 37 47 57 67 18 38 58 78 116 316 516 716 916 1116 1316 1516 123456789 123456789

In .fancy.vulgar

[edit]
Sandbox
11 11 12 22 13 23 14 34 15 25 35 45 16 56 17 27 37 47 57 67 18 38 58 78 116 316 516 716 916 1116 1316 1516 123456789 123456789
Live
11 11 12 22 13 23 14 34 15 25 35 45 16 56 17 27 37 47 57 67 18 38 58 78 116 316 516 716 916 1116 1316 1516 123456789 123456789

Parameter test

[edit]
Side by side comparison
{{Fraction}}{{Fraction/sandbox}}{{fraction}}{{sfrac}}
1+23 1+23 1+23 ⁠1+2/3
Side by side comparison
{{Fraction}}{{Fraction/sandbox}}{{fraction}}{{sfrac}}
1+23 1+23 1+23 ⁠1+2/3
Side by side comparison
{{Fraction}}{{Fraction/sandbox}}{{fraction}}{{sfrac}}
1+23 1+23 1+23 ⁠1+2/3
Side by side comparison
{{Fraction}}{{Fraction/sandbox}}{{fraction}}{{sfrac}}
1+23 1+23 1+23 ⁠1+2/3
Side by side comparison
{{Fraction}}{{Fraction/sandbox}}{{fraction}}{{sfrac}}
1+23 1+23 1+23 ⁠1+2/3
Side by side comparison
{{Fraction}}{{Fraction/sandbox}}{{fraction}}{{sfrac}}
1+23 1+23 1+23 ⁠1+2/3
Side by side comparison
{{Fraction}}{{Fraction/sandbox}}{{fraction}}{{sfrac}}
1+23 1+23 1+23 ⁠1+2/3
Side by side comparison
{{Fraction}}{{Fraction/sandbox}}{{fraction}}{{sfrac}}
1+23 1+23 1+23 ⁠1+2/3
comparison with legacy templates
parameters {{fraction/sandbox}} {{frac}} {{fraction}} {{sfrac}}
{{fraction|1|2|3}} 1+23 1+23 1+23 ⁠1+2/3
{{fraction|0|1|2}} 0+12 0+12 0+12 ⁠0+1/2
{{fraction|1|2}} 12 12 12 1/2
{{fraction|2|2}} 22 22 22 2/2
{{fraction|3}} 13 13 13 1/3
{{fraction|1}} 11 11 11 1/1
{{fraction|0}} 10 10 10 1/0
{{frac}} 1/1
{{fraction|a|b|c}} a+bc a+bc a+bc ⁠a+b/c
{{fraction|a|b}} ab ab ab a/b
{{fraction|c}} 1c 1c 1c 1/c
{{fraction|1|2.3}} 12.3 12.3 12.3 1/2.3
{{fraction|1.2|3}} 1.23 1.23 1.23 1.2/3
{{fraction|1.2}} 11.2 11.2 11.2 1/1.2
{{fraction|1|2|_=3}} 12 12 12 1/2
{{fraction|1|_=2}} 11 11 11 1/1
{{fraction|_=1}} 1/1
{{fraction|2=1}} {{{1}}}1 {{{1}}}1 {{{1}}}1 {{{1}}}/1
{{fraction|3=1}} {{{1}}}+{{{2}}}1 {{{1}}}+{{{2}}}1 {{{1}}}+{{{2}}}1 ⁠{{{1}}}+{{{2}}}/1
{{fraction|2=1|3=2}} {{{1}}}+12 {{{1}}}+12 {{{1}}}+12 ⁠{{{1}}}+1/2
{{fraction|1|3=2}} 1+{{{2}}}2 1+{{{2}}}2 1+{{{2}}}2 ⁠1+{{{2}}}/2
{{fraction|1|2345|6789|fmt}} 1+23456789 1+23456789 1+23456789 ⁠1+2345/6789
{{fraction|1|2345|6789|gaps}} 1+23456789 1+23456789 1+23456789 ⁠1+2345/6789
{{fraction|1|2345|6789|commas}} 1+23456789 1+23456789 1+23456789 ⁠1+2345/6789
{{fraction|1234|6789|fmt=gaps}} 12346789 12346789 12346789 1234/6789
{{fraction|1234|6789|fmt=gaps5}} 12346789 12346789 12346789 1234/6789
{{fraction|1234|6789|fmt=commas}} 12346789 12346789 12346789 1234/6789
{{fraction|1234|6789|fmt=}} 12346789 12346789 12346789 1234/6789
{{fraction|1234|6789|fmt= }} 12346789 12346789 12346789 1234/6789
{{fraction|1234|6789|fmt=}} 12346789 12346789 12346789 1234/6789
{{fraction|1234|6789|fmt=_}} 12346789 12346789 12346789 1234/6789
{{fraction|1234|6789|fmt=,}} 12346789 12346789 12346789 1234/6789
{{fraction|1234|6789|fmt=;}} 12346789 12346789 12346789 1234/6789
{{fraction|1234|6789|fmt=.}} 12346789 12346789 12346789 1234/6789
{{fraction|1234|6789|fmt='}} 12346789 12346789 12346789 1234/6789
{{fraction|1234|6789|fmt=’}} 12346789 12346789 12346789 1234/6789
{{fraction|1234|6789|fmt=!}} 12346789 12346789 12346789 1234/6789