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 <!--artificial--> 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=
.
- There are no cases with the undocumented (and presumed obsolete) parameters
General Examples
edit1
edit2
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
3
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Types of places
editCity
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Suburb
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Town
editTemplate:maplink call connected to the Katoomba (Q1530148) Wikidata item for testing purposes.
{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
LGA
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Region
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Cadastral
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Protected
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Other
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Type = invalid value
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Type not defined
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Map tests
editState = au
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
ACT
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
NSW
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
NT
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Qld
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
SA
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Tas
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Vic
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
WA
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Jervis Bay
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Norfolk Island
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
State = invalid value
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
State not defined
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Default (state map)
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Force LGA map: |use_lga_map=yes
edit
{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Force national map: |force_national_map=yes
edit
{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Alternative location map: |alternative_location_map=<non blank>
edit
{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Values for map_type
editmap_type = nomap
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||
---|---|---|---|---|---|---|---|---|---|
|
|
map_type = national
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
map_type = australia
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
map_type = state
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
map_type = lga
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
map_type = auto and type = lga
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||
---|---|---|---|---|---|---|---|---|---|
|
|
map_type = auto
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
map_type = a specified map
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
map_type = multiple specified maps
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Talk page examples
edit1
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
2
edit{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Population Tests
editTest 1: type = town and population manually added via template
editThis test is for template type = town. Testing population given to the template (status quo method). Connected to the Ulladulla (Q649969) Wikidata item for testing purposes.
{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||
---|---|---|---|---|---|
|
|
Test 2: type = town
editType = town. No population given to the template, so the template uses PopulationFromWikidata module to get population from the Wikidata item. Connected to the Ulladulla (Q649969) Wikidata item for testing purposes.
{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||
---|---|---|---|---|---|
|
|
Test 3: type = city
editType = city. No population given to the template. Connected to the Ulladulla (Q649969) Wikidata item for testing purposes.
{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||
---|---|---|---|---|---|
|
|
Test 4: type = lga
editType = lga. No population given to the template. Connected to the City of Fremantle (Q1455046) Wikidata item for testing purposes.
{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||
---|---|---|---|---|---|
|
|
Test 5: type = town with population for a UCL in Wikidata item
editType = town. No population given to the template. Connected to the Jigalong (Q1688947) Wikidata item for testing purposes.
{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||
---|---|---|---|---|---|
|
|
Test 6: type = town with but no population for a UCL in Wikidata item
editType = town. No population given to the template. Connected to the Cosmo Newbery (Q5174266) Wikidata item for testing purposes.
{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||
---|---|---|---|---|---|
|
|
Test 7: type = city
editType = city. No population given to the template. Connected to the Darwin (Q11568) Wikidata item for testing purposes.
{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||
---|---|---|---|---|---|
|
|
Test 8: type = suburb with odd Wikidata import
editType = suburb. No population given to the template. Connected to the Colongra (Q5148194) Wikidata item for testing purposes.
{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||
---|---|---|---|---|---|
|
|
Non-numeric pop
editType = suburb. A non-numeric value (|pop=N/A
) is given to the template.
{{Infobox Australian place}} | {{Sandbox/Innesw/Infobox Australian place}} | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Notes and References
|
---|
== Notes ==
References
|