Template:Winning percentage
–
Template documentation
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
Related pages
🔥 Top keywords: Main PageSpecial:SearchModule:Track gauge/dataSOLID (object-oriented design)Wikipedia:AboutHelp:ContentsHelp:IntroductionSpecial:RecentChangesPornhubBlackAdolf Hitler UunonaFile:ASCII-Table-wide.svgList of constituencies of the Lok SabhaList of U.S. states and territories by time zoneSchrödinger's catList of U.S. states by date of admission to the UnionFile:Sexual intercourse with internal ejaculation.webmHeera MandiList of people who have walked on the MoonDavid24-hour clockModule:Emoji/dataLawrence WongCristiano RonaldoPeriodic tableList of countries by areaUnited StatesCategory:2000s American music groupsList of U.S. statesBismillahir Rahmanir RaheemList of fruitsQueen (band)Special:MyTalkXXXTentacionWikipedia:Contact usHelp:Authority controlWikipedia:Simple talkList of countries by continentsWikipedia:Simple start