Jump to content

Template:Mfrac

From pool
Revision as of 21:57, 8 January 2019 by powerstorewiki>Caleb cooper (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This content is in the Template Namespace. Used for page-templates that can be re-used across the wiki.

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}}
{{mfrac||y|z}}
{{mfrac|x|y}}
{{mfrac|x||z}}
{{mfrac|x||}}
{{mfrac||y|}}
{{mfrac|||z}}
{{mfrac||w}}
{{mfrac|k}}
{{mfrac}}
{{mfrac|A|B|C}}
(integer, numerator and denominator)
{{mfrac|A|B}}
(numerator and denominator)
{{mfrac|A}}
(special case: interpolated reciprocal (sfrac compatibility))
{{mfrac||B}}
(denominator only)

Examples

See also

  • {{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