Template:Simplified fraction/doc

Revision as of 09:27, 12 October 2025 by Tristanbay (talk | contribs) (Tristanbay moved page Template:Reduced fraction/doc to Template:Simplified fraction/doc: "Reduced" refers more to dividing or multiplying to fit within an equave)
This template has a corresponding Lua module Module:Simplified fraction, but does not invoke its functions.
This template invokes the following functions: simfrac from Reduced fraction.

This template is for creating fractions that are automatically reduced to their simplest form. It is meant to come in handy for automated template modules that use Lua to generate fractional numbers in a loop.

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

{{Reduced fraction|16|15|false}}

16⁄15


{{Reduced fraction|8|15|true}}

8⁄15


{{Reduced fraction|24|15|false}}

8⁄5


{{Reduced fraction|44|14|true}}

3 1⁄7


{{Reduced fraction|75|15|false}}

5


{{Reduced fraction|100|5|true}}

20