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 Usage Output
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 Usage Output Sandbox output Sandbox with sort=x Sandbox with sort=y Sandbox with sort=xy
{{resx|1920|1080}} 1920 × 1080 1920 × 1080 1920 × 1080 1920 × 1080 1920 × 1080
{{resx|1440|1080}} 1440 × 1080 1440 × 1080 1440 × 1080 1440 × 1080 1440 × 1080
{{resx|1800|1200}} 1800 × 1200 1800 × 1200 1800 × 1200 1800 × 1200 1800 × 1200
{{resx|640|480}} 640 × 480 640 × 480 640 × 480 640 × 480 640 × 480
{{resx|1280|720}} 1280 × 720 1280 × 720 1280 × 720 1280 × 720 1280 × 720
{{resx|1280|768}} 1280 × 768 1280 × 768 1280 × 768 1280 × 768 1280 × 768
{{resx|960|720}} 960 × 720 960 × 720 960 × 720 960 × 720 960 × 720
{{resx|1360|768} 1360 × 768 1360 × 768 1360 × 768 1360 × 768 1360 × 768
{{resx|1280|1024}} 1280 × 1024 1280 × 1024 1280 × 1024 1280 × 1024 1280 × 1024
{{resx|1440|720}} 1440 × 720 1440 × 720 1440 × 720 1440 × 720 1440 × 720
{{resx|1600|1200}} 1600 × 1200 1600 × 1200 1600 × 1200 1600 × 1200 1600 × 1200
{{resx|1600|900}} 1600 × 900 1600 × 900 1600 × 900 1600 × 900 1600 × 900
{{resx|1680|1050}} 1680 × 1050 1680 × 1050 1680 × 1050 1680 × 1050 1680 × 1050
{{resx|1920px|1080px}} 1920px × 1080px 1920px × 1080px 1920px × 1080px 1920px × 1080px 1920px × 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]