Difference between revisions of "Template:Hands/numdisp/frac1/doc"

From blackwiki
Jump to navigation Jump to search
imported>Geoffr
(Finish off the move from Template:Convert to Template:Hands - missed documentation updates)
imported>Vanisaac
m (→‎Usage: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 13: Line 13:
 
For negative values, the related [[Template:Hands/numdisp/frac-1]] is used instead, to format data with unicode &minus.
 
For negative values, the related [[Template:Hands/numdisp/frac-1]] is used instead, to format data with unicode &minus.
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
[[Category:Subtemplates of Template Convert]]
 
[[Category:Subtemplates of Template Convert]]
Line 19: Line 19:
 
[[bn:টেমপ্লেট:Convert/numdisp/frac1]]
 
[[bn:টেমপ্লেট:Convert/numdisp/frac1]]
 
[[vi:Bản mẫu:Convert/numdisp/frac1]]
 
[[vi:Bản mẫu:Convert/numdisp/frac1]]
</includeonly>
+
}}</includeonly>

Latest revision as of 16:38, 25 April 2020

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 1250
{{hands/numdisp/frac1| ||7|8}} Template:Ns 78

For negative values, the related Template:Hands/numdisp/frac-1 is used instead, to format data with unicode &minus.