Template:Pop density/testcases
![]() | This is the template test cases page for the sandbox of Template:Pop density. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
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:
{{Pop density|120|240|km2|sqmi|flip=on}}
- Main: 1.29/sq mi (0.500/km2)
- Sandbox:
{{Pop density|1600|600|sqmi|km2}}
- Main: 2.67/sq mi (1.03/km2)
- Sandbox:
{{Pop density|75|0.2|sqmi|km2}}
- Main: 380/sq mi (140/km2)
- Sandbox:
{{Pop density|75|0.5|km2|sqmi}}
- Main: 150/km2 (390/sq mi)
- Sandbox:
{{Pop density|75|0.5|km2|sqmi|flip=on}}
- Main: 390/sq mi (150/km2)
- Sandbox:
{{Pop density|120|240|km2|sqmi|prec=1}}
- Main: 0.5/km2 (1.3/sq mi)
- Sandbox:
{{Pop density|120|240|km2}}
- Main: 0.500/km2
- Sandbox:
{{Pop density|120|240|km2|disp=num}}
- Main: 0.500
- Sandbox:
{{Pop density|1600|600|sqmi|disp=num}}
- Main: 2.67
- Sandbox:
{{Pop density|120|240|km2|sqmi|disp=num}}
- Main: 1.29
- Sandbox:
{{Pop density|1600|600|sqmi|km2|disp=num}}
- Main: 1.03
- Sandbox:
Testing ha and acre
[edit]{{Pop density|120|240|ha|acre}}
- Main: 0.500/ha (0.202/acre)
- Sandbox:
{{Pop density|120|240|ha|acre|flip=on}}
- Main: 0.202/acre (0.500/ha)
- Sandbox:
{{Pop density|1600|600|acre|ha}}
- Main: 2.67/acre (6.6/ha)
- Sandbox:
{{Pop density|75|0.2|acre|ha}}
- Main: 380/acre (930/ha)
- Sandbox:
{{Pop density|75|0.5|ha|acre}}
- Main: 150/ha (61/acre)
- Sandbox:
{{Pop density|75|0.5|ha|acre|flip=on}}
- Main: 61/acre (150/ha)
- Sandbox:
{{Pop density|120|240|ha|acre|prec=1}}
- Main: 0.5/ha (0.2/acre)
- Sandbox:
{{Pop density|120|240|ha}}
- Main: 0.500/ha
- Sandbox:
{{Pop density|120|240|ha|disp=num}}
- Main: 0.500
- Sandbox:
{{Pop density|1600|600|acre|disp=num}}
- Main: 2.67
- Sandbox:
{{Pop density|120|240|ha|acre|disp=num}}
- Main: 0.202
- Sandbox:
{{Pop density|1600|600|acre|ha|disp=num}}
- Main: 6.6
- Sandbox:
Testing dunam and acre
[edit]{{Pop density|120|240|dunam|acre}}
- Main: 0.500/dunam (2.02/acre)
- Sandbox:
{{Pop density|120|240|dunam|acre|flip=on}}
- Main: 2.02/acre (0.500/dunam)
- Sandbox:
{{Pop density|1600|600|acre|dunam}}
- Main: 2.67/acre (0.66/dunam)
- Sandbox:
{{Pop density|75|0.2|acre|dunam}}
- Main: 380/acre (93/dunam)
- Sandbox:
{{Pop density|75|0.5|dunam|acre}}
- Main: 150/dunam (610/acre)
- Sandbox:
{{Pop density|75|0.5|dunam|acre|flip=on}}
- Main: 610/acre (150/dunam)
- Sandbox:
{{Pop density|120|240|dunam|acre|prec=1}}
- Main: 0.5/dunam (2/acre)
- Sandbox:
{{Pop density|120|240|dunam}}
- Main: 0.500/dunam
- Sandbox:
{{Pop density|120|240|dunam|disp=num}}
- Main: 0.500
- Sandbox:
{{Pop density|1600|600|acre|disp=num}}
- Main: 2.67
- Sandbox:
{{Pop density|120|240|dunam|acre|disp=num}}
- Main: 2.02
- Sandbox:
{{Pop density|1600|600|acre|dunam|disp=num}}
- Main: 0.66
- Sandbox:
Bad units
[edit]{{Pop density|1600|600|apples}}
- Main: 2.67/apples?Unknown unit?
- Sandbox:
{{Pop density|1600|600|apples|disp=num}}
- Main: 2.67
- Sandbox:
{{Pop density|1600|600|apples|flip=on}}
- Main: 2.67/apples?Unknown unit?
- Sandbox:
{{Pop density|1600|600|apples|acre}}
- Main: 2.67/apples?Unknown unit? (?/acre)
- Sandbox:
{{Pop density|1600|600|apples|acre|disp=num}}
- Main: ??Unknown unit?
- Sandbox:
{{Pop density|1600|600|apples|acre|flip=on}}
- Main: ?/acre (2.67/apples?Unknown unit?)
- Sandbox:
{{Pop density|1600|600|apples|oranges}}
- Main: 2.67/apples?Unknown unit? (?/oranges?Unknown unit?)
- Sandbox:
{{Pop density|1600|600|apples|oranges|disp=num}}
- Main: ??Unknown unit?
- Sandbox:
{{Pop density|1600|600|apples|oranges|flip=on}}
- Main: ?/oranges?Unknown unit? (2.67/apples?Unknown unit?)
- Sandbox:
{{Pop density|1600|600|acre|oranges}}
- Main: 2.67/acre (?/oranges?Unknown unit?)
- Sandbox:
{{Pop density|1600|600|acre|oranges|disp=num}}
- Main: ??Unknown unit?
- Sandbox:
{{Pop density|1600|600|acre|oranges|flip=on}}
- Main: ?/oranges?Unknown unit? (2.67/acre)
- Sandbox: