Template:Mfrac

Revision as of 15:03, 28 January 2020 by Caleb Cooper (talk | contribs) (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}} → Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ x\frac{ y }{ z } }}
{{mfrac||y|z}} → Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ y }{ z } }}
{{mfrac|x|y}} → Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ x }{ y } }}
{{mfrac|x||z}} → Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ x\frac{ }{ z } }}
{{mfrac|x||}} → Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{1}{ x } }}
{{mfrac||y|}} → Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ }{ y } }}
{{mfrac|||z}} → Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ }{ z } }}
{{mfrac||w}} → Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ }{ w } }}
{{mfrac|k}} → Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{1}{ k } }}
{{mfrac}} → Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle }
{{mfrac|A|B|C}}
Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ A\frac{ B }{ C } }} (integer, numerator and denominator)
{{mfrac|A|B}}
Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ A }{ B } }} (numerator and denominator)
{{mfrac|A}}
Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{1}{ A } }} (special case: interpolated reciprocal (sfrac compatibility))
{{mfrac||B}}
Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ }{ B } }} (denominator only)

Examples

Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 1 }{ 2 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 1 }{ 3 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 2 }{ 3 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 1 }{ 4 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 3 }{ 4 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 1 }{ 5 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 2 }{ 5 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 3 }{ 5 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 4 }{ 5 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 1 }{ 6 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 5 }{ 6 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 1 }{ 7 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 2 }{ 7 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 3 }{ 7 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 4 }{ 7 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 5 }{ 7 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 6 }{ 7 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 1 }{ 8 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 3 }{ 8 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 5 }{ 8 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 7 }{ 8 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 1 }{ 16 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 3 }{ 16 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 5 }{ 16 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 7 }{ 16 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 9 }{ 16 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 11 }{ 16 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 13 }{ 16 } }} Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://restbase-web.local/pool.cubeman.uk/v1/":): {\displaystyle \scriptstyle{ \frac{ 15 }{ 16 } }}

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