wikipedia>Patrick
To allow numerical sorting of a column containing fractions, use {{tl|sortfrac}} instead. It is a combination of this template and {{tl|sort}}.
wikipedia>DKqwerty
m added "See also" section with {{1/2}}
Line 40: Line 40:


To allow numerical sorting of a column containing fractions, use {{tl|sortfrac}} instead. It is a combination of this template and {{tl|sort}}.
To allow numerical sorting of a column containing fractions, use {{tl|sortfrac}} instead. It is a combination of this template and {{tl|sort}}.
==See also==
*{{tl|1/2}}


<includeonly>
<includeonly>

Revision as of 20:10, 23 December 2009

Template:Documentation subpage This template builds nicer-looking common fractions. It takes one, two or three parameters: the optional integer (may be signed), the optional numerator and the required denominator; in this order. Please don't substitute it.

{{frac|A|B|C}}
Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").A+BC (integer, numerator and denominator)
A<s style="display:none">+</s><small><sup>B</sup><big>⁄</big><sub>C</sub></small>
{{frac|A|B}}
Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").AB (numerator and denominator)
<small><sup>A</sup><big>⁄</big><sub>B</sub></small>
{{frac|A}}
Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").1A (denominator only)
<small><sup>1</sup><big>⁄</big><sub>A</sub></small>

Examples:

Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").12 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").13 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").14 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").18 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").12 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").13 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").23 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").14 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").24 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").34 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").18 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").28 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").38 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").48 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").58 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").68 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").78 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").116 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").316 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").516 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").716 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").916 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").1116 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").1316 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").1516 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").532 Page Template:Fraction/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").2732

To allow numerical sorting of a column containing fractions, use {{sortfrac}} instead. It is a combination of this template and {{sort}}.

See also