Template:Pop density/testcases

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Blank inputs[edit]

"{{Pop density}}"

  • Main: ""
  • Sandbox: ""

"{{Pop density|120||km2|sqmi}}"

  • Main: ""
  • Sandbox: ""

"{{Pop density||240|km2|sqmi}}"

  • Main: ""
  • Sandbox: ""

Testing km2 and sqmi[edit]

{{Pop density|120|240|km2|sqmi}}

  • Main: 0.500/km2 (1.29/sq mi)
  • Sandbox: 0.500/km2 (1.29/sq mi)

{{Pop density|120|240|km2|sqmi|flip=on}}

  • Main: 1.29/sq mi (0.500/km2)
  • Sandbox: 1.29/sq mi (0.500/km2)

{{Pop density|1600|600|sqmi|km2}}

  • Main: 2.67/sq mi (1.03/km2)
  • Sandbox: 2.67/sq mi (1.03/km2)

{{Pop density|75|0.2|sqmi|km2}}

  • Main: 380/sq mi (140/km2)
  • Sandbox: 380/sq mi (140/km2)

{{Pop density|75|0.5|km2|sqmi}}

  • Main: 150/km2 (390/sq mi)
  • Sandbox: 150/km2 (390/sq mi)

{{Pop density|75|0.5|km2|sqmi|flip=on}}

  • Main: 390/sq mi (150/km2)
  • Sandbox: 390/sq mi (150/km2)

{{Pop density|120|240|km2|sqmi|prec=1}}

  • Main: 0.5/km2 (1.3/sq mi)
  • Sandbox: 0.5/km2 (1.3/sq mi)

{{Pop density|120|240|km2}}

  • Main: 0.500/km2
  • Sandbox: 0.500/km2

{{Pop density|120|240|km2|disp=num}}

  • Main: 0.500
  • Sandbox: 0.500

{{Pop density|1600|600|sqmi|disp=num}}

  • Main: 2.67
  • Sandbox: 2.67

{{Pop density|120|240|km2|sqmi|disp=num}}

  • Main: 1.29
  • Sandbox: 1.29

{{Pop density|1600|600|sqmi|km2|disp=num}}

  • Main: 1.03
  • Sandbox: 1.03

Testing ha and acre[edit]

{{Pop density|120|240|ha|acre}}

  • Main: 0.500/ha (0.202/acre)
  • Sandbox: 0.500/ha (0.202/acre)

{{Pop density|120|240|ha|acre|flip=on}}

  • Main: 0.202/acre (0.500/ha)
  • Sandbox: 0.202/acre (0.500/ha)

{{Pop density|1600|600|acre|ha}}

  • Main: 2.67/acre (6.6/ha)
  • Sandbox: 2.67/acre (6.6/ha)

{{Pop density|75|0.2|acre|ha}}

  • Main: 380/acre (930/ha)
  • Sandbox: 380/acre (930/ha)

{{Pop density|75|0.5|ha|acre}}

  • Main: 150/ha (61/acre)
  • Sandbox: 150/ha (61/acre)

{{Pop density|75|0.5|ha|acre|flip=on}}

  • Main: 61/acre (150/ha)
  • Sandbox: 61/acre (150/ha)

{{Pop density|120|240|ha|acre|prec=1}}

  • Main: 0.5/ha (0.2/acre)
  • Sandbox: 0.5/ha (0.2/acre)

{{Pop density|120|240|ha}}

  • Main: 0.500/ha
  • Sandbox: 0.500/ha

{{Pop density|120|240|ha|disp=num}}

  • Main: 0.500
  • Sandbox: 0.500

{{Pop density|1600|600|acre|disp=num}}

  • Main: 2.67
  • Sandbox: 2.67

{{Pop density|120|240|ha|acre|disp=num}}

  • Main: 0.202
  • Sandbox: 0.202

{{Pop density|1600|600|acre|ha|disp=num}}

  • Main: 6.6
  • Sandbox: 6.6

Testing dunam and acre[edit]

{{Pop density|120|240|dunam|acre}}

  • Main: 0.500/dunam (2.02/acre)
  • Sandbox: 0.500/dunam (2.02/acre)

{{Pop density|120|240|dunam|acre|flip=on}}

  • Main: 2.02/acre (0.500/dunam)
  • Sandbox: 2.02/acre (0.500/dunam)

{{Pop density|1600|600|acre|dunam}}

  • Main: 2.67/acre (0.66/dunam)
  • Sandbox: 2.67/acre (0.66/dunam)

{{Pop density|75|0.2|acre|dunam}}

  • Main: 380/acre (93/dunam)
  • Sandbox: 380/acre (93/dunam)

{{Pop density|75|0.5|dunam|acre}}

  • Main: 150/dunam (610/acre)
  • Sandbox: 150/dunam (610/acre)

{{Pop density|75|0.5|dunam|acre|flip=on}}

  • Main: 610/acre (150/dunam)
  • Sandbox: 610/acre (150/dunam)

{{Pop density|120|240|dunam|acre|prec=1}}

  • Main: 0.5/dunam (2/acre)
  • Sandbox: 0.5/dunam (2/acre)

{{Pop density|120|240|dunam}}

  • Main: 0.500/dunam
  • Sandbox: 0.500/dunam

{{Pop density|120|240|dunam|disp=num}}

  • Main: 0.500
  • Sandbox: 0.500

{{Pop density|1600|600|acre|disp=num}}

  • Main: 2.67
  • Sandbox: 2.67

{{Pop density|120|240|dunam|acre|disp=num}}

  • Main: 2.02
  • Sandbox: 2.02

{{Pop density|1600|600|acre|dunam|disp=num}}

  • Main: 0.66
  • Sandbox: 0.66

Bad units[edit]

{{Pop density|1600|600|apples}}

{{Pop density|1600|600|apples|disp=num}}

  • Main: 2.67
  • Sandbox: 2.67

{{Pop density|1600|600|apples|flip=on}}

{{Pop density|1600|600|apples|acre}}

{{Pop density|1600|600|apples|acre|disp=num}}

{{Pop density|1600|600|apples|acre|flip=on}}

{{Pop density|1600|600|apples|oranges}}

{{Pop density|1600|600|apples|oranges|disp=num}}

{{Pop density|1600|600|apples|oranges|flip=on}}

{{Pop density|1600|600|acre|oranges}}

{{Pop density|1600|600|acre|oranges|disp=num}}

{{Pop density|1600|600|acre|oranges|flip=on}}