Minecraft Wiki
mNo edit summary
Hades783 (talk | contribs)
mNo edit summary
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
  +
{{Documentation header}}
{{doc/start}}
 
 
{{shortcut|frac}}
 
{{shortcut|frac}}
 
This template allows you to easily create fractions.
 
This template allows you to easily create fractions.
   
 
== Usage ==
 
== Usage ==
<pre style="max-width: 305px">{{frac|integer|numerator|denominator}}</pre>
+
<pre style="display: table">{{frac|integer|numerator|denominator}}</pre>
   
 
If only two parameters are specified the integer parameter will become the numerator parameter, and the numerator parameter will become the denominator parameter.
 
If only two parameters are specified the integer parameter will become the numerator parameter, and the numerator parameter will become the denominator parameter.
<pre style="max-width: 238px">{{frac|numerator|denominator}}</pre>
+
<pre style="display: table">{{frac|numerator|denominator}}</pre>
   
 
=== Examples ===
 
=== Examples ===
<pre style="max-width: 110px">{{frac|A|B|C}}</pre>
+
<pre style="display: table">{{frac|A|B|C}}</pre>
 
{{frac|A|B|C}} (integer, numerator and denominator)
 
{{frac|A|B|C}} (integer, numerator and denominator)
   
<pre style="max-width: 92px">{{frac|A|B}}</pre>
+
<pre style="display: table">{{frac|A|B}}</pre>
 
{{frac|A|B}} (numerator and denominator)
 
{{frac|A|B}} (numerator and denominator)
  +
<includeonly>
{{doc/end}}<noinclude>
 
  +
<!-- Template categories/interwiki here -->
  +
[[Category:Formatting templates]]
  +
  +
[[de:Vorlage:Bruch]]
  +
[[it:Template:Frazione]]
  +
[[fr:Modèle:Fraction]]
  +
[[ja:テンプレート:Fraction]]
  +
[[ru:Шаблон:Дробь]]
  +
</includeonly>
 
<noinclude>
  +
<!-- Documentation categories/interwiki here -->
  +
[[de:Vorlage:Bruch/Dokumentation]]
 
[[fr:Modèle:Fraction/doc]]
 
[[fr:Modèle:Fraction/doc]]
  +
[[ja:テンプレート:Fraction/doc]]
  +
[[ru:Шаблон:Дробь/док]]
 
</noinclude>
 
</noinclude>

Revision as of 19:47, 30 November 2020

This is the documentation page. It should be transcluded into the main template page. See Template:Documentation for more information
Shortcut

This template allows you to easily create fractions.

Usage

{{frac|integer|numerator|denominator}}

If only two parameters are specified the integer parameter will become the numerator parameter, and the numerator parameter will become the denominator parameter.

{{frac|numerator|denominator}}

Examples

{{frac|A|B|C}}

BC (integer, numerator and denominator)

{{frac|A|B}}

AB (numerator and denominator)