మూస:Winning percentage
స్వరూపం
–
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, including |leading_zero=y
will add a leading 0 before the period (.), while adding |record=y
will show the record followed by the winning percentage.
In scenarios where ties aren't regarded as half a win, using |ignore_ties=y
will omit ties and equate the winning percentage exactly as wins divided by the total number of games/matches played (i.e. wins plus draws plus losses).
Code | Result |
---|---|
{{Winning percentage|30|20}}
|
.600 |
{{Winning percentage|30|20|50}}
|
.550 |
{{Winning percentage|30|20|50|ignore_ties=y}}
|
.300 |
{{Winning percentage|100|50|record=y}}
|
100–50 (.667) |
{{Winning percentage|100|50|3|leading_zero=y|record=y}}
|
100–50–3 (0.663) |
{{Winning percentage|100|50|leading_zero=y}}
|
0.667 |
{{Winning percentage|100|0}}
|
1.000 |
{{Winning percentage|0|4}}
|
.000 |
{{Winning percentage|0|0}}
|
– |
Aliases
[మార్చు]See also
[మార్చు]- {{Win-loss record}}
- {{Wins-losses-pct in table}}
- {{Percentage}}