Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a294c9f00f9d7fd8

Jump to content

Template:Winning percentage/testcases

From Wikipedia, the free encyclopedia

Testing sandbox version

[edit]
ExampleExpected outputActual output
{{winning percentage/sandbox | | | |record=y}}0–0 (–)– (–)
{{winning percentage/sandbox | 0 | 0 | 0}}
{{winning percentage/sandbox | 0 | 0 | 1|record=y}}0–0–1 (.500)0–0–1 (.500)
{{winning percentage/sandbox | 0 | 1 | 0}}.000.000
{{winning percentage/sandbox | 0 | 1 | 1}}.250.250
{{winning percentage/sandbox | 1 | 0 | 0}}1.0001.000
{{winning percentage/sandbox | 1 | 0 | 1}}.750.750
{{winning percentage/sandbox | 1 | 1 | 0}}.500.500
{{winning percentage/sandbox | 1 | 1 | 1}}.500.500
{{winning percentage/sandbox | 1 | 1||record=y}}1–1 (.500)1–1 (.500)
{{winning percentage/sandbox | 1,000 | 1,000|1,000|record=y}}1,000–1,000–1,000 (.500)1,000–1,000–1,000 (.500)
{{winning percentage/sandbox| 30 | 20 | 10}}.583.583
{{winning percentage/sandbox| 30 | 20 | 10 | ignore_ties=y}}.500.500
{{winning percentage/sandbox| 30 | 20 | 10 | ignore_ties=n}}.583.583
{{winning percentage/sandbox| 30 | 20 | ignore_ties=y}}.600.600

Testing main template

[edit]
ExampleExpected outputActual output
{{winning percentage | | | }}
{{winning percentage | 0 | 0 | 0}}
{{winning percentage | 0 | 0 | 1}}.500.500
{{winning percentage | 0 | 1 | 0}}.000.000
{{winning percentage | 0 | 1 | 1}}.250.250
{{winning percentage | 1 | 0 | 0}}1.0001.000
{{winning percentage | 1 | 0 | 1}}.750.750
{{winning percentage | 1 | 1 | 0}}.500.500
{{winning percentage | 1 | 1 | 1}}.500.500
{{winning percentage | 1,000 | 1,000 | 1,000}}.500.500