Template:Fraction/doc
This is a documentation subpage for Template:Fraction. It contains usage information, categories, and other content that is not part of the original template page. |
This template uses TemplateStyles: |
This template has a duplicate on Meta-Wiki. Please visit its documentation on Meta-Wiki for usage details and any additional information. Please keep the content and translations synchronized as much as possible. Thank you! |
Parameters
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools.
TemplateData for Fraction
A template for displaying common fractions of the form int+num/den nicely. It supports 0–3 anonymous parameters with positional meaning.
Parameter | Description | Type | Status | |
---|---|---|---|---|
leftmost part | 1 | Denominator if only parameter supplied. Numerator if 2 parameters supplied. Integer if 3 parameters supplied. If no parameter is specified the template will render a fraction slash only. | Line | optional |
middle-right part | 2 | Denominator if 2 parameters supplied. Numerator if 3 parameters supplied. | Line | optional |
rightmost part | 3 | Denominator, always. | Line | optional |