Difference between revisions of "Template:Winning percentage/doc"
Jump to navigation
Jump to search
m (1 revision) |
(No difference)
|
Latest revision as of 17:54, 18 January 2010
Usage
This template calculates the winning percentage given three parameters: wins, losses and ties. Those three parameters are unnamed.
{{Winning percentage|<wins>|<losses>|<ties>}}
Wins and losses are required while ties are optional. In addition, by including |leading_zero=y
will add a leading 0 before the period (.).
Code | Result |
---|---|
{{Winning percentage|100|50|3}}
|
Template:Str ≥ lenTemplate:Str ≥ lenTemplate:Str ≥ lenTemplate:Str ≥ len |
{{Winning percentage|100|50}}
|
Template:Str ≥ lenTemplate:Str ≥ lenTemplate:Str ≥ lenTemplate:Str ≥ len |
{{Winning percentage|100|50|3|leading_zero=y}}
|
0Template:Str ≥ lenTemplate:Str ≥ lenTemplate:Str ≥ lenTemplate:Str ≥ len |
{{Winning percentage|100|50|leading_zero=y}}
|
0Template:Str ≥ lenTemplate:Str ≥ lenTemplate:Str ≥ lenTemplate:Str ≥ len |
{{Winning percentage|100|0}}
|
1.000 |
{{Winning percentage|0|4}}
|
.000 |
{{Winning percentage|0|0}}
|
– |
Alias
- {{winperc}}