Template:Simplified fraction

Revision as of 19:56, 10 October 2025 by Tristanbay (talk | contribs) (Added reduced fraction template page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation[view] [edit] [history] [purge]
This template has a corresponding Lua module Module:Simplified fraction, but does not invoke its functions.
This template invokes the following functions: refrac from Reduced fraction.

This template is for creating fractions that are automatically made into their simplest form. It is recommended to use this template in tables instead of {{frac}} to prevent unwanted horizontal page scrolling on mobile (possibly due to a bug with how MediaWiki handles that specific style of fraction in one or more specific situations).

There are 3 parameters:

  • n: the numerator
  • d: the denominator
  • mixed: whether the fraction is mixed or not if it's more than 1

Examples

{{Simplified fraction|16|15|false}}

Script error: The function "refrac" does not exist.


{{Simplified fraction|8|15|true}}

Script error: The function "refrac" does not exist.


{{Simplified fraction|24|15|false}}

Script error: The function "refrac" does not exist.


{{Simplified fraction|44|14|true}}

Script error: The function "refrac" does not exist.


{{Simplified fraction|75|15|false}}

Script error: The function "refrac" does not exist.


{{Simplified fraction|100|5|true}}

Script error: The function "refrac" does not exist.