mNo edit summary |
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=" |
+ | <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=" |
+ | <pre style="display: table">{{frac|numerator|denominator}}</pre> |
=== Examples === |
=== Examples === |
||
− | <pre style=" |
+ | <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=" |
+ | <pre style="display: table">{{frac|A|B}}</pre> |
{{frac|A|B}} (numerator and denominator) |
{{frac|A|B}} (numerator and denominator) |
||
+ | <includeonly> |
||
⚫ | |||
+ | <!-- Template categories/interwiki here --> |
||
+ | [[Category:Formatting templates]] |
||
+ | |||
+ | [[de:Vorlage:Bruch]] |
||
+ | [[it:Template:Frazione]] |
||
+ | [[fr:Modèle:Fraction]] |
||
+ | [[ja:テンプレート:Fraction]] |
||
+ | [[ru:Шаблон:Дробь]] |
||
+ | </includeonly> |
||
⚫ | |||
+ | <!-- 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
[purge]
This is the documentation page. It should be transcluded into the main template page. See Template:Documentation for more informationShortcut
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}}
A B⁄C (integer, numerator and denominator)
{{frac|A|B}}
A⁄B (numerator and denominator)