Difference between revisions of "Template:Hands/numdisp/frac1/doc"
< Template:Hands | numdisp | frac1
Jump to navigation
Jump to search
imported>Jimp m (Jimp moved page Template:Convert/numdisp/frac1/doc to Template:Hands/numdisp/frac1/doc without leaving a redirect: see Template talk:Convert#Template:Convert/numdisp) |
imported>Geoffr (Finish off the move from Template:Convert to Template:Hands - missed documentation updates) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | ||
| − | The '''[[Template: | + | The '''[[Template:Hands/numdisp/frac1]]''' formats a fraction (or [[mixed number]]) for positive values, with parameters as follows: |
| − | :: parameter 1 - blank, used by { | + | :: parameter 1 - blank, used by {Hands/numdisp/frac} |
:: parameter 2 - the [[whole number]] portion (if any) | :: parameter 2 - the [[whole number]] portion (if any) | ||
:: parameter 3 - numerator of fraction portion | :: parameter 3 - numerator of fraction portion | ||
| Line 9: | Line 9: | ||
== Usage == | == Usage == | ||
| − | ::: {{ | + | ::: {{hands/numdisp/frac1| |2000|12|50}} → {{hands/numdisp/frac1| |2000|12|50}} |
| − | ::: {{ | + | ::: {{hands/numdisp/frac1| ||7|8}} {{ns|11}}→ {{hands/numdisp/frac1| ||7|8}} |
| − | For negative values, the related [[Template: | + | For negative values, the related [[Template:Hands/numdisp/frac-1]] is used instead, to format data with unicode &minus. |
<includeonly> | <includeonly> | ||
Revision as of 22:31, 16 November 2015
| This is a documentation subpage for Template:Hands/numdisp/frac1. It contains usage information, categories and other content that is not part of the original template page. |
The Template:Hands/numdisp/frac1 formats a fraction (or mixed number) for positive values, with parameters as follows:
- parameter 1 - blank, used by {Hands/numdisp/frac}
- parameter 2 - the whole number portion (if any)
- parameter 3 - numerator of fraction portion
- parameter 4 - denominator of fraction portion
All 4 of the parameters are required, although {2} can have an empty/blank value.
Usage
- {{hands/numdisp/frac1| |2000|12|50}} → 2,000 12⁄50
- {{hands/numdisp/frac1| ||7|8}} Template:Ns→ 7⁄8
For negative values, the related Template:Hands/numdisp/frac-1 is used instead, to format data with unicode &minus.