Draft:Sandbox/Innesw/Infobox Australian place/testcases

Test cases for Template:Sandbox/Innesw/Infobox Australian place (which calls Module:Sandbox/Innesw/Infobox Australian place) for comparison with the current Template:Infobox Australian place.

Notes:
 * This page is based on the testcases page for the current template, though the cases have been re-ordered and each labelled with a sub-heading.
 * There are additional cases in order to test some particular parameter values, and for some values that (intentionally, here) cause error messages.
 * There are also additional cases for valid (though currently undocumented) values for map_type
 * Artificial values for some parameters have been added to some cases in order to have a non-blank value for all parameters recognised by the template somewhere in these test cases. Where possible these have '*' at the end of the artificial value. There are some other changed or removed parameters for testing purposes. These changes are labelled in the source for this page.
 * There are no cases with the undocumented (and presumed obsolete) parameters image_size, imagesize, alt, image_size2, imagesize2 and alt2.

Town
Template:maplink call connected to the Wikidata item for testing purposes.

Test 1: type = town and population manually added via template
This test is for template type = town. Testing population given to the template (status quo method). Connected to the Wikidata item for testing purposes.

Test 2: type = town
Type = town. No population given to the template, so the template uses PopulationFromWikidata module to get population from the Wikidata item. Connected to the Wikidata item for testing purposes.

Test 3: type = city
Type = city. No population given to the template. Connected to the Wikidata item for testing purposes.

Test 4: type = lga
Type = lga. No population given to the template. Connected to the Wikidata item for testing purposes.

Test 5: type = town with population for a UCL in Wikidata item
Type = town. No population given to the template. Connected to the Wikidata item for testing purposes.

Test 6: type = town with but no population for a UCL in Wikidata item
Type = town. No population given to the template. Connected to the Wikidata item for testing purposes.

Test 7: type = city
Type = city. No population given to the template. Connected to the Wikidata item for testing purposes.

Test 8: type = suburb with odd Wikidata import
Type = suburb. No population given to the template. Connected to the Wikidata item for testing purposes.

Non-numeric pop
Type = suburb. A non-numeric value (N/A) is given to the template.

{{collapse|title=Notes and References|1=