সমললৈ যাওক

সাঁচ:Mfrac

ৱিকিউৎসৰ পৰা

This template builds an alternative form of common fractions. It takes one, two or three parameters: the optional integer (may be signed), the optional numerator and the required denominator; in this order.

Sampler
{{mfrac|x|y|z}} → xyz
{{mfrac||y|z}} → yz
{{mfrac|x|y}} → xy
{{mfrac|x||z}} → xz
{{mfrac|x||}} → 1x
{{mfrac||y|}} → y
{{mfrac|||z}} → z
{{mfrac||w}} → w
{{mfrac|k}} → 1k
{{mfrac}} →
{{mfrac|A|B|C}}
ABC (integer, numerator and denominator)
{{mfrac|A|B}}
AB (numerator and denominator)
{{mfrac|A}}
1A (special case: interpolated reciprocal (sfrac compatibility))
{{mfrac||B}}
B (denominator only)

A leading 1 to allow for the relative positions compared to a standard character:

112 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
  • {{frac}}, displays common fractions using a fraction slash
  • {{sfrac}}, displays common fractions using a horizontal solidus
  • {{sfrac nobar}}, displays common fractions without a horizontal solidus