Template:Simplified fraction/doc: Difference between revisions

Tristanbay (talk | contribs)
m Tristanbay moved page Template:Reduced fraction/doc to Template:Simplified fraction/doc: "Reduced" refers more to dividing or multiplying to fit within an equave
Tristanbay (talk | contribs)
Update template name
Line 1: Line 1:
{{dochead}}{{lua}}{{clear}}
{{dochead}}{{lua}}{{clear}}
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.
This template is for creating fractions that are automatically made into 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:
There are 3 parameters:
Line 9: Line 9:
== Examples ==
== Examples ==


<pre>{{Reduced fraction|16|15|false}}
<pre>{{Simplified fraction|16|15|false}}
</pre>
</pre>
{{{{ROOTPAGENAME}}|16|15|false}}
{{{{ROOTPAGENAME}}|16|15|false}}




<pre>{{Reduced fraction|8|15|true}}
<pre>{{Simplified fraction|8|15|true}}
</pre>
</pre>
{{{{ROOTPAGENAME}}|8|15|true}}
{{{{ROOTPAGENAME}}|8|15|true}}




<pre>{{Reduced fraction|24|15|false}}
<pre>{{Simplified fraction|24|15|false}}
</pre>
</pre>
{{{{ROOTPAGENAME}}|24|15|false}}
{{{{ROOTPAGENAME}}|24|15|false}}




<pre>{{Reduced fraction|44|14|true}}
<pre>{{Simplified fraction|44|14|true}}
</pre>
</pre>
{{{{ROOTPAGENAME}}|44|14|true}}
{{{{ROOTPAGENAME}}|44|14|true}}




<pre>{{Reduced fraction|75|15|false}}
<pre>{{Simplified fraction|75|15|false}}
</pre>
</pre>
{{{{ROOTPAGENAME}}|75|15|false}}
{{{{ROOTPAGENAME}}|75|15|false}}




<pre>{{Reduced fraction|100|5|true}}
<pre>{{Simplified fraction|100|5|true}}
</pre>
</pre>
{{{{ROOTPAGENAME}}|100|5|true}}
{{{{ROOTPAGENAME}}|100|5|true}}