Template:Unit display/tests

From Wikipedia, the free encyclopedia

This page can be used to test the output of Category:Unit display templates.

  • Template: The template being tested. The template may be repeated if some special aspect of the template needs to be tested, for example the unit used in the output of Unit acre depends on the size of the input.
  • Input: Chosen such that the converted result will have at least four digits one each side of the decimal place
  • Expected Output: The converted output calculated without using the template.
  • Linking: Tests the "lk" flag.
  • Singular: Tests the "sing" flag for templates where the primary unit is spelled out.
  • Round 3: Uses the round argument to show only up to 3 decimal places.
  • Round -3: Uses a negative round argument to round the 3 least significant digits before the decimal.

[edit] Tests

Template Input Expected Output Output Linking Singular Round 3 Round -3
Unit cu ft per s 100000 2,831.6846592 m³/s Template:Unit cu ft per s Template:Unit cu ft per s Template:Unit cu ft per s Template:Unit cu ft per s
Unit cu km 10000 2,399.127583165 cu mi 10,000 km³ (2,399.127485 cu mi) 10,000 km³ (2,399.127485 cu mi) 10,000 km³ (2,399.127 cu mi) 10,000 km³ (2,000 cu mi)
Unit cu m per s 1000 35,314.666721489 ft³/s Template:Unit cu m per s Template:Unit cu m per s Template:Unit cu m per s Template:Unit cu m per s
Unit cu mi 1000 4,168.18183 km³ 1,000 cu mi (4,168.182000549 km³) 1,000 cu mi (4,168.182000549 km³) 1,000 cu mi (4,168.182 km³) 1,000 cu mi (4,000 km³)
Unit cubic kilometre 10000 2,399.127583165 cu mi 10,000 cubic kilometres (2,399.127485 cu mi) 10,000 cubic kilometres (2,399.127485 cu mi) 10,000 cubic kilometre (2,399.127485 cu mi) 10,000 cubic kilometres (2,399.127 cu mi) 10,000 cubic kilometres (2,000 cu mi)
Unit floz(UK) 1000 28,413.0625 ml 1,000 fl oz (UK) (28,413.0625 ml) 1,000 fl oz (UK) (28,413.0625 ml) 1,000 fl oz (UK) (28,413.063 ml) 1,000 fl oz (UK) (28,000 ml)
Unit floz(US) 1000 29,573.5295625 ml 1,000 fl oz (US) (29,573.5295625 ml) 1,000 fl oz (US) (29,573.5295625 ml) 1,000 fl oz (US) (29,573.53 ml) 1,000 fl oz (US) (30,000 ml)
Unit foot 10001 3,048.3048 m 10,001 feet (3,048.3048 m) 10,001 feet (3,048.3048 m) 10,001 foot (3,048.3048 m) 10,001 feet (3,048.305 m) 10,001 feet (3,000 m)
Unit ft 10001 3,048.3048 m 10,001 ft (3,048.304800000 m) 10,001 ft (3,048.304800000 m) 10,001 ft (3,048.305 m) 10,001 ft (3,000 m)
Unit ha 1000 2,471.05381 acre 1,000 ha (2,471.053814916-acre) 1,000 ha (2,471.053814916-acre) 1,000 ha (2,471.054-acre) 1,000 ha (2,000-acre)
Unit in 100.1111 2,542.82194 mm 100.1111 in (2,542.821940000 mm) 100.1111 in (2,542.821940000 mm) 100.1111 in (2,542.822 mm) 100.1111 in (3,000 mm)
Unit kilometre 10000 6,213.71192 mi 10,000 kilometres (6,213.71192 mi) 10,000 kilometres (6,213.71192 mi) 10,000 kilometre (6,213.71192 mi) 10,000 kilometres (6,213.712 mi) 10,000 kilometres (6,000 mi)
Unit km 10000 6,213.71192 mi 10,000 km (6,213.711922373 mi) 10,000 km (6,213.711922373 mi) 10,000 km (6,213.712 mi) 10,000 km (6,000 mi)
Unit lb 10000 4,535.9237 kg 10,000 lb (4,535.9237 kg) 10,000 [[[pound (mass)|lb]] (4,535.9237 kg) 10,000 lb (4,535.924 kg) 10,000 lb (5,000 kg)
Unit lbf 1000 4,448.221615261 N 1,000 lbf (4,448.222 N) 1,000 lbf (4,448.222 N) 1,000 lbf (4,448.222 N) 1,000 lbf (4,000 N)
Unit m 1000 3,280.8399 ft 1,000 m (3,280.8399 ft) 1,000 m (3,280.8399 ft) 1,000 m (3,280.84 ft) 1,000 m (3,000 ft)
Unit metre 1000 3,280.8399 ft 1,000 metres (3,280.8399 ft) 1,000 metres (3,280.8399 ft) 1,000 metre (3,280.8399 ft) 1,000 metres (3,280.84 ft) 1,000 metres (3,000 ft)
Unit mi 1001 1,610.953344 km 1,001 mi (1,610.953344000 km) 1,001 mi (1,610.953344000 km) 1,001 mi (1,610.953 km) 1,001 mi (2,000 km)
Unit mile 1001 1,610.953344 km 1,001 miles (1,610.953344 km) 1,001 miles (1,610.953344 km) 1,001 mile (1,610.953344 km) 1,001 miles (1,610.953 km) 1,001 miles (2,000 km)
Unit mm 100000 3,937.00787 in 100,000 mm (3,937.007874016 in) 100,000 mm (3,937.007874016 in) 100,000 mm (3,937.008 in) 100,000 mm (4,000 in)
Unit oz 1000 28,349.523 g 1,000 oz (28,349.523 g) 1,000 oz (28,349.523 g) 1,000 oz (28,349.523 g) 1,000 oz (28,000 g)
Unit oz(troy) 1000 31,103.476 g 1,000 oz (troy) (31,103.476 g) 1,000 oz (troy) (31,103.476 g) 1,000 oz (troy) (31,103.476 g) 1,000 oz (troy) (31,000 g)
Unit smoot 1000.1 1,701.97018 m 1,000.1 smoots (1,701.97018 m) 1,000.1 smoots (1,701.97018 m) 1,000.1 smoot (1,701.97018 m) 1,000.1 smoots (1,701.97 m) 1,000.1 smoots (2,000 m)
Unit sq km 10000 3,861.021749908 sq mi 10,000 km² (3,861.021585424 sq mi) 10,000 km² (3,861.021585424 sq mi) 10,000 km² (3,861.022 sq mi) 10,000 km² (4,000 sq mi)
Unit sq mi 10000 25,899.88 km³ 10,000 sq mi (25,899.88110336 km²) 10,000 sq mi (25,899.88110336 km²) 10,000 sq mi (25,899.881 km²) 10,000 sq mi (26,000 km²)
Unit square kilometre 10000 3,861.021749908 sq mi 10,000 square kilometres (3,861.021585424 sq mi) 10,000 square kilometres (3,861.021585424 sq mi) 10,000 square kilometre (3,861.021585424 sq mi) 10,000 square kilometres (3,861.022 sq mi) 10,000 square kilometres (4,000 sq mi)
Unit square mile 10000 25,899.88 km³ 10,000 square miles (25,899.8811 km²) 10,000 square miles (25,899.8811 km²) 10,000 square mile (25,899.8811 km²) 10,000 square miles (25,899.881 km²) 10,000 square miles (26,000 km²)
Unit ton 10 9,071.8474 kg 10 tons (9,071.8474 kg) 10 tons (9,071.8474 kg) 10 tons (9,071.847 kg) 10 tons (9,000 kg)
Unit °C 10000.121212 18,032.2181816 °F 10,000.121212 °C (18,032.218181600 °F) 10,000.121212 °C (18,032.218181600 °F) 10,000.121212 °C (18,032.218 °F) 10,000.121212 °C (18,000 °F)
Unit °F 10000.121212 5,537.845117778 °C 10,000.121212 °F (5,537.845117778 °C) 10,000.121212 °F (5,537.845117778 °C) 10,000.121212 °F (5,537.845 °C) 10,000.121212 °F (6,000 °C)