Template:Winning percentage

From Iwe

(Difference between revisions)
(Created page with '<includeonly>{{#ifexpr:{{#if:{{{1|}}}|{{{1}}}|0}}+{{#if:{{{2|}}}|{{{2}}}|0}}+{{#if:{{{3|}}}|{{{3}}}|0}}=0|–|{{#ifeq:{{#expr:({{{1}}}{{#if:{{{3|}}}|+({{{3}}}/2)}})/({{{1}}}+{{{2…')
(Replaced content with '{{Winning percentage|<wins>|<losses>|<ties>}}')
Line 1: Line 1:
-
<includeonly>{{#ifexpr:{{#if:{{{1|}}}|{{{1}}}|0}}+{{#if:{{{2|}}}|{{{2}}}|0}}+{{#if:{{{3|}}}|{{{3}}}|0}}=0|–|{{#ifeq:{{#expr:({{{1}}}{{#if:{{{3|}}}|+({{{3}}}/2)}})/({{{1}}}+{{{2}}}{{#if:{{{3|}}}|+{{{3}}}}}) round 3}}|0|{{#ifeq:{{{leading_zero|}}}|y|0}}.000|{{#ifeq:{{#expr:({{{1}}}{{#if:{{{3|}}}|+({{{3}}}/2)}})/({{{1}}}+{{{2}}}{{#if:{{{3|}}}|+{{{3}}}}}) round 3}}|1|1.000|{{#ifeq:{{{leading_zero|}}}|y|0}}{{str right|{{padright:{{#expr:({{{1}}}{{#if:{{{3|}}}|+({{{3}}}/2)}})/({{{1}}}+{{{2}}}{{#if:{{{3|}}}|+{{{3}}}}}) round 3}}|5|0}}|1}}}}}}}}</includeonly><noinclude>
+
{{Winning percentage|<wins>|<losses>|<ties>}}
-
{{documentation}}
+
-
</noinclude>
+

Revision as of 21:59, 7 December 2014

{{#ifexpr:<wins>+<losses>{{#if:<ties>|+<ties>}}=0|—|{{#ifeq:{{#expr:(<wins>{{#if:<ties>|+(<ties>/2)}})/(<wins>+<losses>{{#if:<ties>|+<ties>}}) round 3}}|0|{{#ifeq:|y|0}}.000|{{#ifeq:{{#expr:(<wins>{{#if:<ties>|+(<ties>/2)}})/(<wins>+<losses>{{#if:<ties>|+<ties>}}) round 3}}|1|1.000|{{#ifeq:|y|0}}Template:Str right}}}}}}

Personal tools