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: a45436273b4afda9

Jump to content

Template:Resx/testcases

From Wikipedia, the free encyclopedia

Live vs sandbox

[edit]
  • {{Resx}} →  × 
  • {{Resx/sandbox}} →  × 
  • {{Resx|640}} → 640
  • {{Resx/sandbox|640}} → 640
  • {{Resx|640|480}} → 640 × 480
  • {{Resx/sandbox|640|480}} → 640 × 480
  • {{Resx|640x}} → 640 × 
  • {{Resx/sandbox|640x}} → 640 × 
  • {{Resx|640x480}} → 640 × 480
  • {{Resx/sandbox|640x480}} → 640 × 480
  • {{Resx|640×480}} → 640 × 480
  • {{Resx/sandbox|640×480}} → 640 × 480

Replacement

[edit]
Replacement tests
Example UsageOutput
1920{{resx/sandbox}}1080
1920 × 1080
{{resx/sandbox|1920|1080}}
1920 × 1080
{{resx/sandbox|1920x1080}}
1920 × 1080
{{resx/sandbox|1920×1080}}
1920 × 1080
{{resx/sandbox|1920*1080}}
1920 × 1080
{{resx/sandbox|1920×1080}}
1920 × 1080
{{resx/sandbox|1920 x 1080}}
1920 × 1080
{{resx/sandbox|1920 × 1080}}
1920 × 1080
{{resx/sandbox|1920 * 1080}}
1920 × 1080
{{resx/sandbox|1920 × 1080}}
1920 × 1080
{{resx/sandbox|1920 x 1080}}
1920 × 1080
{{resx/sandbox|1920{{nbsp}}x{{nbsp}}1080}}
1920 × 1080
{{resx/sandbox|1920 x 1080}} (literal non-breaking spaces)
1920 × 1080
{{resx/sandbox|1920 * 1080 px}}
1920 × 1080 p × 
{{resx/sandbox|1920px * 1080px}}
1920p ×  × 1080p × 

Sorting

[edit]
Sorting tests
Example UsageOutputSandbox outputSandbox with sort=xSandbox with sort=ySandbox with sort=xy
{{resx|1920|1080}}1920 × 10801920 × 10801920 × 10801920 × 10801920 × 1080
{{resx|1440|1080}}1440 × 10801440 × 10801440 × 10801440 × 10801440 × 1080
{{resx|1800|1200}}1800 × 12001800 × 12001800 × 12001800 × 12001800 × 1200
{{resx|640|480}}640 × 480640 × 480640 × 480640 × 480640 × 480
{{resx|1280|720}}1280 × 7201280 × 7201280 × 7201280 × 7201280 × 720
{{resx|1280|768}}1280 × 7681280 × 7681280 × 7681280 × 7681280 × 768
{{resx|960|720}}960 × 720960 × 720960 × 720960 × 720960 × 720
{{resx|1360|768}1360 × 7681360 × 7681360 × 7681360 × 7681360 × 768
{{resx|1280|1024}}1280 × 10241280 × 10241280 × 10241280 × 10241280 × 1024
{{resx|1440|720}}1440 × 7201440 × 7201440 × 7201440 × 7201440 × 720
{{resx|1600|1200}}1600 × 12001600 × 12001600 × 12001600 × 12001600 × 1200
{{resx|1600|900}}1600 × 9001600 × 9001600 × 9001600 × 9001600 × 900
{{resx|1680|1050}}1680 × 10501680 × 10501680 × 10501680 × 10501680 × 1050
{{resx|1920px|1080px}}1920px × 1080px1920px × 1080px1920px × 1080px1920px × 1080px1920px × 1080px

Paragraph text test: 1920 × 1080 test1 (1920 × 1080) test2

This is a paragraph with some multiplications in it to test line breaking behavior. The product 1920 × 1080 is using the live template with the recommended syntax (arguments enclosed). The product 1920 × 1080 is using the live template with arguments outside the template. The product 1920 × 1080 is using the sandbox template with the recommended syntax (arguments enclosed) while the product 1920 × 1080 is using the sandbox template with the arguments outside.

1920 × 1080 Title Test

[edit]

1920 × 1080 Title Test

[edit]