Template:Infobox Australian place/sandbox
{{main other|{{#if:{{Has short description}} | |{{short description|{{{short description|{{ #switch: {{lc:{{{type|}}}}}
|city = City in
|town = Town in
|suburb = {{#invoke:Plain text|main|Suburb {{#if:{{{city|}}}|of {{{city|}}},|{{#if:{{{lga|}}}|of {{{lga|}}},|in}}}}}}
|lga = Local government area in
|region = Region in
|cadastral = Cadastral in
|protected = Protected area in
|Place in
}} {{ #switch: {{lc:{{{state|}}} }}
|sa = South Australia
|vic = Victoria, Australia
|nsw = New South Wales, Australia
|qld = Queensland, Australia
|nt = the Northern Territory, Australia
|wa = Western Australia
|tas = Tasmania, Australia
|act = Australian Capital Territory
|jbt = the Jervis Bay Territory, Australia
|ni = Norfolk Island, Australia
|au = Australia
|Australia
}}}}}|noreplace}}}}}}{{#invoke:infobox|infoboxTemplate
| bodyclass = vcard
| abovestyle = font-size: 125%; line-height: 1.3em; {{ #switch: {{lc:{{{type|}}} }}
|city = background-color:#f9f6d2;
|town = background-color:#e9f9d2;
|suburb = background-color:#f9e2d2;
|lga = background-color:#d2d5f9;
|region = background-color:#e6c4fb;
|cadastral = background-color:#ffffe0;
|protected = background-color:transparent;
|other = background-color:transparent;
| background-color: #ccc;
}}
| above = {{#if:{{{name|}}}|{{{name}}}
{{#if:{{{native_name|}}}|
|sa = South Australia
|vic = Victoria
|nsw = New South Wales
|qld = Queensland
|nt = Northern Territory
|wa = Western Australia
|tas = Tasmania
|act = Australian Capital Territory
|jbt = Jervis Bay Territory
|ni = Norfolk Island
|au = Australia
|error = {{error|Error: {{!}}state{{=}}
not defined (help)}}
|{{error|Error: unknown {{!}}state{{=}}
value (help)}} {{main other|S}}
}}}}
| aboveclass = adr
| subheaderstyle = font-size: 100%;
| subheader1 = {{#ifeq:{{{type|}}}|protected|{{IUCN banner|{{{iucn_category|}}}|{{{iucn_ref|}}} }} }}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{imagesize|}}}}}}|sizedefault=frameless|upright={{{image_upright|1.23}}}|alt={{{image_alt|{{{alt|}}}}}}}}
| imagestyle =
| caption = {{{caption|}}}
| captionstyle =
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{{image2_size|{{{image2size|}}}}}}|sizedefault=frameless|upright={{{image2_upright|1.23}}}|alt={{{image2_alt|{{{alt2|}}}}}}}}
| caption2 = {{{caption2|}}}
| headerstyle = background-color:#ddf;
| labelstyle = width:40%; {{ #switch: {{lc:{{{type|}}} }}
|city = background-color:#f9f6d2;
|town = background-color:#e9f9d2;
|suburb = background-color:#f9e2d2;
|lga = background-color:#d2d5f9;
|region = background-color:#e6c4fb;
|cadastral = background-color:#ffffe0;
|protected = background-color:transparent;
|other = background-color:transparent;
|background-color:#ccc;
}}
| datastyle =
| data1 = {{#invoke:Australian place map|main}}
| data2 = {{#if:{{{local_map|}}}|{{Infobox mapframe|zoom={{{zoom|}}}|id={{{local_map_id|}}}}}}}
| label3 = Nearest town or city
| data3 = {{#ifeq:{{{type|}}}|protected|{{auto link|{{{nearest_town_or_city|}}}}} }}
| label4 = Coordinates
| data4 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:{{#ifeq:{{{type|}}}|protected|landmark|city}}|region:{{ #switch: {{lc:{{{state|}}} }}
|sa = AU-SA
|vic = AU-VIC
|nsw = AU-NSW
|qld = AU-QLD
|nt = AU-NT
|wa = AU-WA
|tas = AU-TAS
|act = AU-ACT
|jbt = AU-JBT
|ni = NF
|#default = AU
}}}}{{{coord_ref|}}} }}
| label6 = Population
| data6 = {{#if:{{{pop|}}}
|{{#if: {{{pop2|}}}
|
-
}} {{#iferror:{{#expr:{{{pop}}}}}
|{{{pop}}}
|{{formatnum:{{replace|{{{pop}}}|,|}}}}
}}{{#if: {{{pop_year|}}}
| ({{{pop_year}}})
}}{{{pop_footnotes|}}}{{#if: {{{poprank|}}}
| ({{{poprank}}})
}}{{#if: {{{pop2|}}}
|
- {{formatnum:{{replace|{{{pop2}}}|,|}}}}{{#if: {{{pop2_year|}}}
| ({{{pop2_year}}})
}}{{{pop2_footnotes|}}}
}}
|{{#invoke:PopulationFromWikidata | ListForInfobox | type={{{type|}}} | wikidata={{{wikidata|}}} }}
}}
| label7 = • Density
| data7 = {{#if:{{{density|}}}
|{{formatnum:{{{density}}}}}/km2 ({{convert|{{{density}}}|/km2|/sqmi|disp=number}}/sq mi) {{{density_footnotes|}}}
|{{#if:{{{pop|}}}|{{#if:{{{area|}}}|{{#iferror:{{#expr:{{formatnum:{{{pop|}}}|R}}}}||{{Pop density|{{formatnum:{{{pop|}}}|R}}|{{formatnum:{{{area|}}}|R}}|km2|sqmi}}}}}}}} {{{density_footnotes|}}}
}}
| label8 = Established
| data8 = {{{established|{{{est|}}}}}}{{#if:{{{established|{{{est|}}}}}}|{{{established_footnotes|}}}|}}
| label9 = Abolished
| data9 = {{{abolished|}}}
| label10 = Gazetted
| data10 = {{{gazetted|}}}
| label11 = Postcode(s)
| data11 = {{{postcode|}}}
| label12 = Elevation
| data12 = {{#if:{{{elevation|}}}|{{convert|{{{elevation}}}|m|ft|0|abbr=on}}{{{elevation_footnotes|}}} }}
| label13 = Area
| data13 = {{#if:{{{area|}}}|{{#iferror:{{#expr:{{{area}}}}}|{{{area|}}}|{{formatnum:{{{area}}}}} km2 ({{rnd|{{{area}}}/2.589988110336|1}} sq mi)}}{{{area_footnotes|}}} }}
| label14 = Time zone
| data14 = {{#if:{{{timezone|}}}|{{{timezone}}} (}}}) }}
| label15 = • Summer (DST)
| data15 = {{#if:{{{timezone-dst|}}}|{{{timezone-dst}}} (}}}) }}
| label16 = {{#if:{{{mayortitle|}}}|{{{mayortitle|}}}|Mayor}}
| data16 = {{#ifeq:{{{type|}}}|lga|{{{mayor|}}} }}
| label17 = Location
| data17 = {{#if:{{{dist1|}}}|{{#if:{{{dist2|}}}|
- }} {{formatnum:{{{dist1}}}}} km ({{rnd|{{{dist1}}}/1.609344|0}} mi) {{#if: {{{dir1|}}}|{{{dir1}}} of|from}} {{auto link|{{{location1}}}}} {{#if: {{{dist2|}}}|
- {{formatnum:{{{dist2}}}}} km ({{rnd|{{{dist2}}}/1.609344|0}} mi) {{#if: {{{dir2|}}}|{{{dir2}}} of|from}} {{auto link|{{{location2}}}}}}} {{#if: {{{dist3|}}}|
- {{formatnum:{{{dist3}}}}} km ({{rnd|{{{dist3}}}/1.609344|0}} mi) {{#if: {{{dir3|}}}|{{{dir3}}} of|from}} {{auto link|{{{location3}}}}}}} {{#if: {{{dist4|}}}|
- {{formatnum:{{{dist4}}}}} km ({{rnd|{{{dist4}}}/1.609344|0}} mi) {{#if: {{{dir4|}}}|{{{dir4}}} of|from}} {{auto link|{{{location4}}}}}}} {{#if: {{{dist5|}}}|
- {{formatnum:{{{dist5}}}}} km ({{rnd|{{{dist5}}}/1.609344|0}} mi) {{#if: {{{dir5|}}}|{{{dir5}}} of|from}} {{auto link|{{{location5}}}}}}} {{#if: {{{dist2|}}}|
| label18 = {{ #switch: {{lc:{{{state|}}}}}
|sa = LGA(s)
|vic = LGA(s)
|nsw = LGA(s)
|qld = LGA(s)
|nt = LGA(s)
|wa = LGA(s)
|tas = LGA(s)
|act = District
}}
| data18 = {{#if:{{{lga|}}}|{{#if: {{{lga2|}}}|
- }} {{auto link|{{{lga}}}}}{{#if: {{{lga2|}}}|
- {{auto link|{{{lga2}}}}}}}{{#if: {{{lga3|}}}|
- {{auto link|{{{lga3}}}}}}}{{#if: {{{lga4|}}}|
- {{auto link|{{{lga4}}}}}}}{{#if: {{{lga5|}}}|
- {{auto link|{{{lga5}}}}}}}{{#if: {{{lga2|}}}|
| label19 = Council seat
| data19 = {{{seat|}}}
| label20 = Region
| data20 = {{#if:{{{region|}}}|{{auto link|{{{region}}}}} }}
| label21 = County
| data21 = {{#if:{{{county|}}}|{{auto link|{{{county}}}}} }}
| label22 = Parish
| data22 = {{{parish|}}}
| label23 = {{#ifeq:{{{type|}}}|cadastral|Hundred}}
| data23 = {{#ifeq:{{{type|}}}|cadastral|{{{hundred|}}} }}
| label24 = {{#ifeq:{{{type|}}}|cadastral|Hundred (former)}}
| data24 = {{#ifeq:{{{type|}}}|cadastral|{{{former_hundred|}}} }}
| label25 = {{#ifeq:{{{type|}}}|cadastral|Division}}
| data25 = {{#ifeq:{{{type|}}}|cadastral|{{{division|}}} }}
| label26 = Electorates of the Australian states and territories
| data26 = {{#if:{{{stategov|}}}|{{#if: {{{stategov2|}}}|
- }} {{{stategov}}}{{#if: {{{stategov2|}}}|
- {{{stategov2}}}}}{{#if: {{{stategov3|}}}|
- {{{stategov3}}}}}{{#if: {{{stategov4|}}}|
- {{{stategov4}}}}}{{#if: {{{stategov5|}}}|
- {{{stategov5}}}}}{{#if: {{{stategov2|}}}|
| label27 = Federal division(s)
| data27 = {{#if:{{{fedgov|}}}|{{#if: {{{fedgov2|}}}|
- }} {{{fedgov}}}{{#if: {{{fedgov2|}}}|
- {{{fedgov2}}}}}{{#if: {{{fedgov3|}}}|
- {{{fedgov3}}}}}{{#if: {{{fedgov4|}}}|
- {{{fedgov4}}}}}{{#if: {{{fedgov2|}}}|
| data28 = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logosize|}}}|sizedefault=frameless|upright={{{logo_upright|0.8}}}|alt={{{logo_alt|{{{alt|}}}}}}}}
| label29 = Visitation
| data29 = {{#ifeq:{{{type|}}}|protected|{{formatnum:{{{visitation_num|}}}}}{{#if: {{{visitation_year|}}}| (in {{{visitation_year|}}}){{#if: {{{visitation_footnotes|}}}|{{{visitation_footnotes|}}}}}}} }}
| label30 = Managing authorities
| data30 = {{#ifeq:{{{type|}}}|protected|{{auto link|{{{managing_authorities|}}}}} }}
| label31 = Website
| data31 = {{#if:{{{url|}}}|{{#invoke:URL|url|1={{{url|}}}|2={{{name|}}}}} }}
| data32 = {{#if:{{{maxtemp|}}}{{{mintemp|}}}{{{rainfall|}}}|
Mean max temp{{{maxtemp_footnotes|}}} | Mean min temp{{{mintemp_footnotes|}}} | Annual rainfall{{{rainfall_footnotes|}}} |
{{#if: {{{maxtemp|}}}|
{{{maxtemp}}} °C |
{{#if: {{{mintemp|}}}|
{{{mintemp}}} °C |
{{#if: {{{rainfall|}}}|
{{formatnum:{{{rainfall}}}}} mm |
| data33 = {{#if:{{{near|}}}{{{near-nw|}}}{{{near-n|}}}{{{near-ne|}}}{{{near-w|}}}{{{near-e|}}}{{{near-sw|}}}{{{near-se|}}}{{{near-s|}}}|
'''{{ #switch: {{lc:{{{type|}}}}}
| cadastral = Lands administrative divisions | lga = LGAs | suburb = {{#if:{{{city|}}}|{{#ifexist:List of {{{city}}} suburbs| Suburbs | {{ #ifexist:Category:Suburbs of the City of {{{city}}}| Suburbs |{{ #ifexist:Category:Suburbs of {{{city}}}| Suburbs| Suburbs }}}}}}|Suburbs}} | Localities}} around {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}:''' | ||
{{{near-nw|}}} | {{{near-n|}}} | {{{near-ne|}}} |
{{{near-w|}}} | {{#if:{{{near|}}}|{{{near}}}|{{{name|}}}}} | {{{near-e|}}} |
{{{near-sw|}}} | {{{near-s|}}} | {{{near-se|}}} |
| label34 = Footnotes
| data34 = {{{footnotes|}}}
| label35 = See also
| data35 = {{#ifeq:{{{type|}}}|protected|{{#if:{{both|{{{iucn_category|}}}|{{{state|}}}}}|{{ #switch: {{lc:{{{state|}}} }}
|sa = Protected areas of South Australia
|vic = Protected areas of Victoria
|nsw = Protected areas of
New South Wales
|qld = Protected areas of Queensland
|nt = Protected areas of the Northern Territory
|wa = List of protected areas of
Western Australia
|tas = Protected areas of Tasmania
|act = Australian Capital Territory
protected areas
}} }} }}
| data36 = {{ #switch: {{lc:{{{type|error}}} }}
|city =
|town =
|suburb =
|lga =
|region =
|cadastral =
|protected =
|other =
|error = {{error|{{!}}type{{=}}
not defined (help){{!}}type{{=}}
value (help)}}
}}
}}{{#if:{{{_noautocat|}}}||{{main other|{{#ifeq:{{{type|}}} | town | {{ #switch: {{lc:{{{state|}}}}}
|sa = {{{name}}}
|vic = {{{name}}}
|nsw = {{{name}}}
|qld = {{{name}}}
|nt = {{{name}}}
|wa = {{{name}}}
|tas = {{{name}}}
|act = {{{name}}}
|ni = {{{name}}}
}} }}{{#ifeq:{{{type|}}} | suburb | {{#ifexist:Category:Suburbs of the City of {{{city}}}|{{{name}}}|{{#ifexist:Category:Suburbs of {{{city}}}|{{{name}}}|{{ #switch: {{lc:{{{state|}}}}}
|sa = {{#ifexist:Category:Suburbs of {{{city}}}, South Australia|{{{name}}}}}
|vic = {{#ifexist:Category:Suburbs of {{{city}}}, Victoria|{{{name}}}}}
|nsw = {{#ifexist:Category:Suburbs of {{{city}}}, New South Wales|{{{name}}}}}
|qld = {{#ifexist:Category:Suburbs of {{{city}}}, Queensland|{{{name}}}}}
|nt = {{#ifexist:Category:Suburbs of {{{city}}}, Northern Territory|{{{name}}}}}
|wa = {{#ifexist:Category:Suburbs of {{{city}}}, Western Australia|{{{name}}}}}
|tas = {{#ifexist:Category:Suburbs of {{{city}}}, Tasmania|{{{name}}}}}
|act = {{#ifexist:Category:Suburbs of {{{city}}}, ACT|{{{name}}}}}
}} }} }} }} {{#if:{{{est|}}}|
{{#ifeq:{{{type|}}}|lga|{{#ifexist:Category:Populated places established in {{{est}}}|{{{name}}}}}{{#ifexist:Category:Populated places established in the {{{est}}}|{{{name}}}}} {{#ifexist:Category:{{{est}}} establishments in Australia|{{{name}}}}}}}
}} }} }}{{main other|{{#ifeq:{{{1|♠}}}|♠||Category:Australian place articles using missing parameters}}{{main other|{{#if:{{{type|}}}||U}}}}{{main other|{{#if:{{{state|}}}||S}}}}{{#if:{{{pop|}}}|{{#if:{{{pop_year|}}}||Category:Australian place articles with no population year}}}}{{#if:{{{pop2|}}}|{{#if:{{{pop2_year|}}}||Category:Australian place articles with no population year}}}}{{#if:{{{pop|}}}|{{#if:{{{pop_footnotes|}}}||Category:Australian place articles with no population footnotes}}}}{{#if:{{{pop2|}}}|{{#if:{{{pop2_footnotes|}}}||Category:Australian place articles with no population footnotes}}}}{{#if:{{{density|}}}||{{#if:{{{pop|}}}|{{#if:{{{area|}}}|{{#iferror:{{#expr:{{formatnum:{{{pop|}}}|R}}/{{formatnum:{{{area|}}}|R}}}}|Category:Australian place articles with density errors|}} }} }} }}
}}{{main other|{{#ifeq:{{{imagesize|♠}}}{{{image2size|♠}}}{{{imagesize2|♠}}}{{{image_alt2|♠}}}{{{logosize|♠}}}{{{official_site|♠}}}|♠♠♠♠♠♠||Category:Australian place articles using missing parameters}}}}{{#invoke:Check for unknown parameters|check|unknown={{main other|_VALUE_{{PAGENAME}}}}|preview=Page using Template:Infobox Australian place with unknown parameter "_VALUE_"|ignoreblank=y| _noautocat
| abolished | alternative_location_map | area | area_footnotes
| caption | caption2 | city | coord_ref | coordinates | county
| density | density_footnotes | dir1 | dir2 | dir3 | dir4 | dir5 | dist1 | dist2 | dist3 | dist4 | dist5 | division
| elevation | elevation_footnotes | est | established | established_footnotes
| fedgov | fedgov2 | fedgov3 | fedgov4 | footnotes | force_national_map | former_hundred| gazetted | hundred
| image | image_alt | image_upright | image2 | image2_alt | image2_upright | iucn_category | iucn_ref
| lga | lga2 | lga3 | lga4 | lga5 | local_map | local_map_id | location1 | location2 | location3 | location4 | location5 | logo | logo_upright
| managing_authorities | map_alt | map_type | maxtemp | maxtemp_footnotes | mayor | mayortitle | mintemp | mintemp_footnotes
| name | native_name_lang | native_name | near | near-e | nearest_town_or_city | near-n | near-ne | near-nw | near-s | near-se | near-sw | near-w
| parish | pop | pop_footnotes | pop_year | pop2 | pop2_footnotes | pop2_year | poprank | postcode | pushpin_label_position | pushpin_map_caption
| rainfall | rainfall_footnotes | region | relief | seat | state | stategov | stategov2 | stategov3 | stategov4 | stategov5
| timezone | timezone-dst | type | url | use_lga_map | utc | utc-dst
| visitation_footnotes | visitation_num | visitation_year | wikidata | zoom }}{{main other|
{{#if:{{{coordinates|}}}
|{{#ifeq:{{lc:{{{type|}}} }}|lga
|{{#switch:{{lc:{{{map_type|}}} }}
|auto|={{#if:{{{alternative_location_map|}}}{{{force_national_map|}}}{{{use_lga_map|}}}|Category:Pages using infobox Australian place with lga type and location map|Category:Pages using infobox Australian place with an implicitly-suppressed location map}}
|#default=Category:Pages using infobox Australian place with lga type and location map
}}
|{{#switch:{{lc:{{{map_type|}}} }}
|nomap = Category:Pages using infobox Australian place with an explicitly-suppressed location map
}}
}}
}}
}}
{{Documentation}}