Template:Winning percentage/doc
This is a documentation subpage for Template:Winning percentage. It contains usage information, categories and other content that is not part of the original template page. |
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}}
|
Expression error: Unexpected = operator. |
{{Winning percentage|100|50}}
|
Expression error: Unexpected = operator. |
{{Winning percentage|100|50|3|leading_zero=y}}
|
Expression error: Unexpected = operator. |
{{Winning percentage|100|50|leading_zero=y}}
|
Expression error: Unexpected = operator. |
{{Winning percentage|100|0}}
|
Expression error: Unexpected = operator. |
{{Winning percentage|0|4}}
|
Expression error: Unexpected = operator. |
{{Winning percentage|0|0}}
|
Expression error: Unexpected = operator. |
Aliases
See also
- {{Percentage}}