Test cases for User:Innesw/sandbox/Template:Infobox Australian place-upgrade (which calls Module:Sandbox/Innesw/Infobox_Australian_place-upgrade ) for comparison with the original template at Template:Infobox Australian place .
This Testcases Page This testcases page is in three parts:
Existing Testcases, based on the testcases page for the current template
New Testcases, which illustrate some working (but undocumented) parameter values, and purposely tests all possible parameters
Specific Testcases for the Upgrade, which illustrate specific changes made in the uprade
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.
Existing Testcases This section is based on the
testcases page for the current template, though the cases have been re-ordered and each labelled with a sub-heading.
includes tests for existing valid values of |type=
, and map tests for every valid value of |state=
because of the significant change to handling of populations, the population testcases are in the third section of this page
Also shows when |near=
is set to a section link in the article, without any |near-*=
.
Template:maplink call connected to the Katoomba (Q1530148) Wikidata item for testing purposes.
New Testcases
cases to test some particular parameter values, and for some values that (intentionally, here) cause error messages.
tests for control of the location map and the local map, and cases for valid (though currently undocumented) values for |map_type=
There are no cases with the undocumented (and presumed obsolete) parameters
|image_size=
,
|imagesize=
,
|alt=
,
|image_size2=
,
|imagesize2=
and
|alt2=
.
Type = invalid value[ edit ]
State = invalid value[ edit ]
Map tests - locality maps [ edit ]
Default (state map)[ edit ]
Force LGA map: |use_lga_map=yes
[ edit ]
Not Force LGA map: |use_lga_map=no
[ edit ]
Force national map: |force_national_map=yes
[ edit ]
Not Force national map: |force_national_map=no
[ edit ]
Force relief map: |relief=yes
[ edit ]
Not Force relief map: |relief=no
[ edit ]
Alternative location map: |alternative_location_map=<non blank>
[ edit ]
all possible images and maps [ edit ]
the picture is set in |image=
a specific location map, as used for LGAs, is set in |image2=
the location map is the automatically-generated one (as |type=
is not 'lga')
the local map (showing the SAL boundary) is shown becaue |local_map=yes
|type=townandlocality
and |local_map=yes
[ edit ]
the local map (showing the SAL boundary) is shown because |local_map=yes
the UCL boundary is also on the map because |type=townandlocality
and a map file named 'Yea, Victoria UCL.map' exists in Commons:Data: At present this is the only map of a UCL in Commons:Data:.
Values for map_type [ edit ]
map_type = national[ edit ]
map_type = australia[ edit ]
map_type = auto and type = lga[ edit ]
map_type = a specified map[ edit ]
map_type = multiple specified maps[ edit ]
Specific Testcases For illustration of other changes made in the Upgrade of the template.
Integrated wikidata population references between article text and infobox [ edit ]
This is an example article lede, with adjacent infobox (right aligned). Note that the reference for the UCL population in the text is the same as that for the UCL population in the infobox. The in-text location uses the new function LatestPopulation in the upgraded PopulationFromWikidata module.
Yea is a town in Victoria. It has a population of 1,279 (2021 ).[ 41]
|pop=
and |pop2=
both manual[ edit ]
|pop=
blank (so from wikidata) and |pop2=
manual[ edit ]
Also poprank shown after pop from wikidata.
|type=town
and |pop=
blank (so from wikidata)[ edit ]
Connected to the Ulladulla (Q649969) Wikidata item for testing purposes.
This has both UCL and SAL populations in wikidata.
|type=city
and |pop=
blank (so from wikidata)[ edit ]
Connected to the Ulladulla (Q649969) Wikidata item for testing purposes.
This has both UCL and SAL populations in wikidata.
|type=lga
and |pop=
blank (so from wikidata)[ edit ]
Connected to the City of Fremantle (Q1455046) Wikidata item for testing purposes.
Connected to the Cosmo Newbery (Q5174266) Wikidata item for testing purposes.
This has both UCL and ILOC populations in wikidata.
Connected to the Darwin (Q11568) Wikidata item for testing purposes.
This has UCL, SUA, GCCSA and inter-census population estimates in wikidata.
Response to wikidata items with claims with two dates [ edit ]
Connected to the Banksiadale (Q4856763) Wikidata item for testing purposes.
This had a zero value population in two consecutive censuses, so the two claims are merged in wikidata. The PopulationFromWikidata module now separates them, and returns the latest one.
Showing new function for historic populations [ edit ]
Connected to the Ulladulla (Q649969) Wikidata item for testing purposes.
Showing new function for historic populations, with |geog=ucl
[ edit ]
Connected to the Ulladulla (Q649969) Wikidata item for testing purposes.
background of sub-table headings [ edit ]
|near=
defined, but no near-*
[ edit ]
Illustrates better layout in these circumstances.
^ a b c Australian Bureau of Statistics (27 June 2017). "Mandurah (C)" . 2016 Census QuickStats . Retrieved 26 November 2017 .
^ a b Australian Bureau of Statistics (31 October 2012). "Nelson Bay (State Suburb)" . 2011 Census QuickStats . Retrieved 16 October 2012 .
^ a b c "Nelson Bay (Nelson Head)" . Climate statistics for Australian locations . Bureau of Meteorology . Retrieved 2 June 2008 .
^ a b "3218.0 – Regional Population Growth, Australia, 2017-18" . Australian Bureau of Statistics. 27 March 2019. Retrieved 31 December 2019 . Estimated resident population (ERP) at 30 June 2018.
^ City of Mandurah (31 January 2004). "City of Mandurah Information Statement" . Archived from the original on 27 August 2006. Retrieved 2006-11-01 .
^ Australian Bureau of Statistics (27 June 2017). "Raymond Terrace (State Suburb)" . 2016 Census QuickStats . Retrieved 27 June 2016 .
^ "Suburb Search – Local Council Boundaries – Hunter (HT) – Port Stephens" . New South Wales Division of Local Government . Archived from the original on 21 June 2014. Retrieved 8 June 2008 .
^ a b "Raymond Terrace" . Geographical Names Register (GNR) of NSW . Geographical Names Board of New South Wales . Retrieved 8 June 2008 .
^ "Port Stephens" . New South Wales Electoral Commission . Retrieved 23 November 2019 .
^ "Maitland" . New South Wales Electoral Commission . Retrieved 23 November 2019 .
^ "Paterson" . Australian Electoral Commission . 26 July 2012. Archived from the original on 29 October 2009. Retrieved 1 October 2012 .
^ "3218.0 – Regional Population Growth, Australia, 2018–19, ESTIMATED RESIDENT POPULATION – States and Territories - Greater Capital City Statistical Areas, 30 June 2019" . Australian Bureau of Statistics . 25 March 2020. Retrieved 25 March 2020 .
^ https://www.censusdata.abs.gov.au/CensusOutput/copsub2016.NSF/All%20docs%20by%20catNo/2016~Community%20Profile~2GMEL/$File/GCP_2GMEL.zip?OpenElement
^ "Great Circle Distance between MELBOURNE and CANBERRA" . Geoscience Australia. March 2004.
^ "Great Circle Distance between MELBOURNE and ADELAIDE" . Geoscience Australia. March 2004.
^ "Great Circle Distance between MELBOURNE and SYDNEY" . Geoscience Australia. March 2004.
^ "Great Circle Distance between MELBOURNE and BRISBANE" . Geoscience Australia. March 2004.
^ "Great Circle Distance between MELBOURNE and PERTH" . Geoscience Australia. March 2004.
^ Australian Bureau of Statistics (27 June 2017). "St Kilda (VIC) (State Suburb)" . 2016 Census QuickStats . Retrieved 12 April 2018 .
^ Australian Bureau of Statistics (27 June 2017). "2016 Community Profiles: Katoomba (SSC)" . 2016 Census of Population and Housing .
^ Australian Bureau of Statistics (27 June 2017). "Lake Macquarie (C)" . 2016 Census QuickStats . Retrieved 6 November 2018 .
^ Australian Bureau of Statistics (31 October 2012). "2011 Community Profiles: Lake Macquarie (Local Government Area)" . 2011 Census of Population and Housing . Retrieved 10 September 2012 .
^ "Lake Macquarie City Council Results (2016)" . Lake Macquarie City Council. 19 September 2016. Archived from the original on 26 March 2017. Retrieved 25 March 2017 .
^ "Suburb Search – Local Council Boundaries – Hunter (HT) – Lake Macquarie City Council" . New South Wales Division of Local Government . Archived from the original on 16 January 2013. Retrieved 6 October 2012 .
^ "Lake Macquarie Electoral District" . New South Wales Electoral Commission . Retrieved 23 November 2019 .
^ "Swansea Electoral District" . New South Wales Electoral Commission . Retrieved 23 November 2019 .
^ "Charlestown Electoral District" . New South Wales Electoral Commission . Retrieved 23 November 2019 .
^ "Cessnock Electoral District" . New South Wales Electoral Commission . Retrieved 23 November 2019 .
^ "Wallsend Electoral District" . New South Wales Electoral Commission . Retrieved 23 November 2019 .
^ "Shortland" . Australian Electoral Commission . 26 July 2012. Archived from the original on 24 December 2013. Retrieved 6 October 2012 .
^ a b c "Grampians National Park Management Plan" (PDF) . Parks Victoria (PDF). March 2003. p. 10. ISBN 0-7311-3131-2 . Archived from the original (PDF) on 26 March 2014. Retrieved 12 August 2014 .
^ Australian Bureau of Statistics (27 June 2017). "Arthurs Seat (State)" . 2016 Census QuickStats . Retrieved 13 April 2018 .
^ "3218.0 – Regional Population Growth, Australia, 2014–15" . Australian Bureau of Statistics . Retrieved 29 September 2016 .
^ "About Port Stephens" . Port Stephens Council. Archived from the original on 19 July 2008. Retrieved 6 June 2008 .
^ "Suburb Search – Local Council Boundaries – Hunter (HT) – Port Stephens" . New South Wales Division of Local Government . Archived from the original on 21 June 2014. Retrieved 10 October 2012 .
^ "Port Stephens" . New South Wales Electoral Commission . Retrieved 23 November 2019 .
^ "Newcastle" . New South Wales Electoral Commission . 28 March 2015. Retrieved 30 March 2015 .
^ "Paterson" . Australian Electoral Commission . 26 July 2012. Retrieved 10 October 2012 .
^ "Newcastle" . Australian Electoral Commission . 26 July 2012. Retrieved 10 October 2012 .
^ a b c "Federation Council" . Stronger Councils . Government of New South Wales . 12 May 2016. Retrieved 13 May 2016 .
^ a b c Australian Bureau of Statistics (28 June 2022). "Yea (urban centre and locality)" . 2021 Census QuickStats .
^ a b Australian Bureau of Statistics (28 June 2022). "Yea (suburb and locality)" . 2021 Census QuickStats . Retrieved 28 June 2022 .
^ Australian Bureau of Statistics (28 June 2022). "Yea (Suburbs and Localities)" . 2021 Census QuickStats . Retrieved 2023-04-11 .
^ a b Australian Bureau of Statistics (27 June 2017). "Yea (State Suburbs)" . 2016 Census QuickStats . Retrieved 2023-04-11 .
^ Australian Bureau of Statistics (28 June 2022). "Yea (urban centre and locality)" . Australian Census 2021 .
^ Australian Bureau of Statistics (28 June 2022). "Ulladulla (urban centre and locality)" . Australian Census 2021 .
^ a b c d Australian Bureau of Statistics (28 June 2022). "Ulladulla (urban centre and locality)" . 2021 Census QuickStats .
^ a b Australian Bureau of Statistics (28 June 2022). "Ulladulla (suburb and locality)" . 2021 Census QuickStats . Retrieved 28 June 2022 .
^ Australian Bureau of Statistics (28 June 2022). "Ulladulla (urban centre and locality)" . Australian Census 2021 .
^ Australian Bureau of Statistics (28 June 2022). "Fremantle (Local Government Area)" . Australian Census 2021 QuickStats . Retrieved 28 June 2022 .
^ Australian Bureau of Statistics (28 June 2022). "Fremantle (Local Government Area)" . 2021 Census QuickStats . Retrieved 28 June 2022 .
^ Australian Bureau of Statistics (28 June 2022). "Cosmo Newberry (Indigenous Location)" . Australian Census 2021 QuickStats . Retrieved 28 June 2022 .
^ Australian Bureau of Statistics (28 June 2022). "Cosmo Newbery (suburb and locality)" . Australian Census 2021 QuickStats . Retrieved 28 June 2022 .
^ Australian Bureau of Statistics (28 June 2022). "Cosmo Newberry (Indigenous Location)" . 2021 Census QuickStats . Retrieved 28 June 2022 .
^ Australian Bureau of Statistics (28 June 2022). "Cosmo Newbery (suburb and locality)" . 2021 Census QuickStats . Retrieved 28 June 2022 .
^ Australian Bureau of Statistics (28 June 2022). "Darwin (urban centre and locality)". Australian Census 2021 . ;
^ Australian Bureau of Statistics (28 June 2022). "Darwin (urban centre and locality)" . Australian Census 2021 .
^ Australian Bureau of Statistics (28 June 2022). "Darwin (urban centre and locality)" . 2021 Census QuickStats .
^ Australian Bureau of Statistics (27 June 2017). "Banksiadale (suburb and locality)" . Australian Census 2016 .
^ Australian Bureau of Statistics (27 June 2017). "Banksiadale (suburb and locality)" . Australian Census 2016 QuickStats . Retrieved 28 June 2022 .
^ Australian Bureau of Statistics (28 June 2022). "Banksiadale (suburb and locality)" . 2021 Census QuickStats . Retrieved 28 June 2022 .
^ Australian Bureau of Statistics (31 October 2012). "Ulladulla (suburb and locality)" . 2011 Census QuickStats .
^ a b Australian Bureau of Statistics (31 October 2012). "Ulladulla (urban centre and locality)" . 2011 Census QuickStats .
^ Australian Bureau of Statistics (25 October 2007). "Ulladulla (suburb and locality)" . 2006 Census QuickStats .
^ a b Australian Bureau of Statistics (25 October 2007). "Ulladulla (urban centre and locality)" . 2006 Census QuickStats .
^ Australian Bureau of Statistics (27 June 2017). "Ulladulla (suburb and locality)" . 2016 Census QuickStats .
^ a b Australian Bureau of Statistics (27 June 2017). "Ulladulla (urban centre and locality)" . 2016 Census QuickStats .
^ a b "Alexandra Monthly Temperatures" . Commonwealth of Australia, Bureau of Meteorology. Retrieved 2012-08-10 .
^ "Yea Monthly Rainfall" . Commonwealth of Australia, Bureau of Meteorology. Retrieved 2012-08-10 .
Cite error: There are <ref group=Note>
tags on this page, but the references will not show without a {{reflist|group=Note}}
template (see the help page ).