(Translated by https://www.hiragana.jp/)
Template:Infobox Australian place: Difference between revisions - Wikipedia Jump to content

Template:Infobox Australian place: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Fix Linter errors
 
(21 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{short description|{{{short description|{{ #switch: {{lc:{{{type|}}} }}
{{main other|{{#if:{{Has short description}} |<!--Do nothing--> |{{short description|{{{short description|{{ #switch: {{lc:{{{type|}}}}}
|city = City in
|city = City in
|town = Town in
|town = Town in
Line 7: Line 7:
|cadastral = Cadastral in
|cadastral = Cadastral in
|protected = Protected area in
|protected = Protected area in
|Place in
}} {{ #switch: {{lc:{{{state|}}} }}
}} {{ #switch: {{lc:{{{state|}}} }}
|sa = South Australia
|sa = South Australia
Line 19: Line 20:
|ni = Norfolk Island, Australia
|ni = Norfolk Island, Australia
|au = Australia
|au = Australia
|Australia
}}}}}|noreplace}}{{Infobox
}}}}}|noreplace}}}}}}{{#invoke:infobox|infoboxTemplate
| bodyclass = vcard
| bodyclass = vcard
| abovestyle = font-size: 110%; line-height: 1.3em; {{ #switch: {{lc:{{{type|}}} }}
| abovestyle = font-size: 125%; line-height: 1.3em; {{ #switch: {{lc:{{{type|}}} }}
|city = background-color:#f9f6d2;
|city = background-color:#f9f6d2;
|town = background-color:#e9f9d2;
|town = background-color:#e9f9d2;
Line 32: Line 34:
| background-color: #ccc;
| background-color: #ccc;
}}
}}
| above = {{#if:{{{name|}}}|<span style="font-size: 110%;" class="fn org locality">{{{name}}}</span><br /><span style="font-weight:normal; font-size:95%" class="region">{{#if: {{{city|}}}|{{auto link|{{{city|}}}}},&nbsp;}}{{ #switch: {{lc:{{{state|error}}} }}
| above = {{#if:{{{name|}}}|<span class="fn org locality">{{{name}}}</span><br />{{#if:{{{native_name|}}}|
<div style="font-weight:normal;font-size:88%" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</div>}}<span style="font-weight:normal; font-size:88%" class="region">{{#if: {{{city|}}}|{{auto link|{{{city|}}}}},&nbsp;}}{{ #switch: {{lc:{{{state|error}}} }}
|sa = [[South Australia]]
|sa = [[South Australia]]
|vic = [[Victoria (Australia)|Victoria]]
|vic = [[Victoria (state)|Victoria]]
|nsw = [[New South Wales]]
|nsw = [[New South Wales]]
|qld = [[Queensland]]
|qld = [[Queensland]]
Line 44: Line 47:
|ni = [[Norfolk Island]]
|ni = [[Norfolk Island]]
|au = Australia
|au = Australia
|error = {{error|Error: <code>{{!}}state{{=}}</code> not defined ([[Template:Infobox Australian place#state|help]])}}
|<span class="region">{{auto link|{{{state|}}}}}</span>
|error = {{error|Error: <code>{{!}}state{{=}}</code> not defined ([[Template:Infobox Australian place#state|help]])}}|{{error|Error: unknown <code>{{!}}state{{=}}</code> value ([[Template:Infobox Australian place#state|help]])}} <!--Tracking category: --> {{main other|[[Category:Australian place articles using missing parameters|S]]}}
|{{error|Error: unknown <code>{{!}}state{{=}}</code> value ([[Template:Infobox Australian place#state|help]])}} <!--Tracking category: --> {{main other|[[Category:Australian place articles using missing parameters|S]]}}
}}</span>}}
}}</span>}}
| aboveclass = adr
| aboveclass = adr
Line 95: Line 98:
}} {{#iferror:{{#expr:{{{pop}}}}}
}} {{#iferror:{{#expr:{{{pop}}}}}
|{{{pop}}}
|{{{pop}}}
|{{formatnum:{{{pop}}}}}
|{{formatnum:{{replace|{{{pop}}}|,|}}}}
}}{{#if: {{{pop_year|}}}
}}{{#if: {{{pop_year|}}}
|&nbsp;({{{pop_year}}})
|&nbsp;({{{pop_year}}})
Line 101: Line 104:
|&nbsp;([[List of cities in Australia by population|{{{poprank}}}]])
|&nbsp;([[List of cities in Australia by population|{{{poprank}}}]])
}}{{#if: {{{pop2|}}}
}}{{#if: {{{pop2|}}}
|<li> {{formatnum:{{{pop2}}}}}{{#if: {{{pop2_year|}}}
|<li> {{formatnum:{{replace|{{{pop2}}}|,|}}}}{{#if: {{{pop2_year|}}}
|&nbsp;({{{pop2_year}}})
|&nbsp;({{{pop2_year}}})
}}{{{pop2_footnotes|}}}</ul>
}}{{{pop2_footnotes|}}}</ul>
}}
}}
|{{#invoke:PopulationFromWikidata | ListForInfobox | type={{{type|}}} | wikidata={{{wikidata|}}} }}
}}
}}
| label7 = &nbsp;• Density
| label7 = &nbsp;• Density
Line 159: Line 163:
| label26 = [[Electorates of the Australian states and territories|{{#switch:{{lc:{{{state}}}}}|act|nt|jbt= Territory|State}} electorate(s)]]
| label26 = [[Electorates of the Australian states and territories|{{#switch:{{lc:{{{state}}}}}|act|nt|jbt= Territory|State}} electorate(s)]]
| data26 = {{#if:{{{stategov|}}}|{{#if: {{{stategov2|}}}|<ul style="margin-top: 0px; margin-bottom: 0px;"><li>}} {{{stategov}}}{{#if: {{{stategov2|}}}|<li> {{{stategov2}}}}}{{#if: {{{stategov3|}}}|<li> {{{stategov3}}}}}{{#if: {{{stategov4|}}}|<li> {{{stategov4}}}}}{{#if: {{{stategov5|}}}|<li> {{{stategov5}}}}}{{#if: {{{stategov2|}}}|</ul> }}}}
| data26 = {{#if:{{{stategov|}}}|{{#if: {{{stategov2|}}}|<ul style="margin-top: 0px; margin-bottom: 0px;"><li>}} {{{stategov}}}{{#if: {{{stategov2|}}}|<li> {{{stategov2}}}}}{{#if: {{{stategov3|}}}|<li> {{{stategov3}}}}}{{#if: {{{stategov4|}}}|<li> {{{stategov4}}}}}{{#if: {{{stategov5|}}}|<li> {{{stategov5}}}}}{{#if: {{{stategov2|}}}|</ul> }}}}
| label27 = [[Divisions of the Australian House of Representatives|Federal Division(s)]]
| label27 = [[Divisions of the Australian House of Representatives|Federal division(s)]]
| data27 = {{#if:{{{fedgov|}}}|{{#if: {{{fedgov2|}}}|<ul style="margin-top: 0px; margin-bottom: 0px;"><li>}} {{{fedgov}}}{{#if: {{{fedgov2|}}}|<li> {{{fedgov2}}}}}{{#if: {{{fedgov3|}}}|<li> {{{fedgov3}}}}}{{#if: {{{fedgov4|}}}|<li> {{{fedgov4}}}}}{{#if: {{{fedgov2|}}}|</ul> }}}}
| data27 = {{#if:{{{fedgov|}}}|{{#if: {{{fedgov2|}}}|<ul style="margin-top: 0px; margin-bottom: 0px;"><li>}} {{{fedgov}}}{{#if: {{{fedgov2|}}}|<li> {{{fedgov2}}}}}{{#if: {{{fedgov3|}}}|<li> {{{fedgov3}}}}}{{#if: {{{fedgov4|}}}|<li> {{{fedgov4}}}}}{{#if: {{{fedgov2|}}}|</ul> }}}}
| data28 = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logosize|}}}|sizedefault=frameless|upright={{{logo_upright|0.8}}}|alt={{{logo_alt|{{{alt|}}}}}}}}
| data28 = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logosize|}}}|sizedefault=frameless|upright={{{logo_upright|0.8}}}|alt={{{logo_alt|{{{alt|}}}}}}}}
Line 176: Line 180:
<tr style="border: 1px #FFF solid" class=mergedrow>
<tr style="border: 1px #FFF solid" class=mergedrow>
<td style="padding: 2px 0px; text-align:center; width:33%;"> {{#if: {{{maxtemp|}}}|
<td style="padding: 2px 0px; text-align:center; width:33%;"> {{#if: {{{maxtemp|}}}|
{{{maxtemp}}} °C <br /><sup>{{ #expr: {{{maxtemp}}} * 1.8 + 32 round 0}} °F</sup> | ? }}</td>
{{{maxtemp}}} °C <br />{{ #expr: {{{maxtemp}}} * 1.8 + 32 round 0}} °F | ? }}</td>
<td style="padding: 2px 0px; text-align:center; width:34%;">{{#if: {{{mintemp|}}}|
<td style="padding: 2px 0px; text-align:center; width:34%;">{{#if: {{{mintemp|}}}|
{{{mintemp}}} °C <br /><sup>{{ #expr: {{{mintemp}}} * 1.8 + 32 round 0}} °F</sup> | ?}}</td>
{{{mintemp}}} °C <br />{{ #expr: {{{mintemp}}} * 1.8 + 32 round 0}} °F | ?}}</td>
<td style="padding: 2px 0px; text-align:center; width:33%;">{{#if: {{{rainfall|}}}|
<td style="padding: 2px 0px; text-align:center; width:33%;">{{#if: {{{rainfall|}}}|
{{formatnum:{{{rainfall}}} mm <br /><sup>{{ #expr: {{{rainfall}}} * 0.03937 round 1}}}} in</sup> | ? }}</td>
{{formatnum:{{{rainfall}}}}} mm <br />{{ #expr: {{{rainfall}}} * 0.03937 round 1}} in | ? }}</td>
</tr></td></table> }}
</tr></td></table> }}
| data33 = {{#if:{{{near|}}}{{{near-nw|}}}{{{near-n|}}}{{{near-ne|}}}{{{near-w|}}}{{{near-e|}}}{{{near-sw|}}}{{{near-se|}}}{{{near-s|}}}|<table cellpadding=4 cellspacing=3 style="width:100%; border: 1px #ddd solid;">
| data33 = {{#if:{{{near|}}}{{{near-nw|}}}{{{near-n|}}}{{{near-ne|}}}{{{near-w|}}}{{{near-e|}}}{{{near-sw|}}}{{{near-se|}}}{{{near-s|}}}|<table cellpadding=4 cellspacing=3 style="width:100%; border: 1px #ddd solid;">
Line 186: Line 190:
| cadastral = [[Lands administrative divisions of Australia|Lands administrative divisions]]
| cadastral = [[Lands administrative divisions of Australia|Lands administrative divisions]]
| lga = [[Local government in Australia|LGAs]]
| lga = [[Local government in Australia|LGAs]]
| suburb = {{#if:{{{city|}}}|{{#ifexist:List of {{{city}}} suburbs| [[List of {{{city}}} suburbs|Suburbs]] | {{ #ifexist:Category:Suburbs of {{{city}}}| [[:Category:Suburbs of {{{city}}}|Suburbs]] | Suburbs }}}}|Suburbs}}
| suburb = {{#if:{{{city|}}}|{{#ifexist:List of {{{city}}} suburbs| [[List of {{{city}}} suburbs|Suburbs]] | {{ #ifexist:Category:Suburbs of the City of {{{city}}}| [[:Category:Suburbs of the City of {{{city}}}|Suburbs]] |{{ #ifexist:Category:Suburbs of {{{city}}}| [[:Category:Suburbs of {{{city}}}|Suburbs]]| Suburbs }}}}}}|Suburbs}}
| Localities}} around {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}:'''</td></tr>
| Localities}} around {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}:'''</td></tr>
<tr class=mergedrow>
<tr class=mergedrow>
Line 228: Line 232:
-->{{#if:{{{_noautocat|}}}|<!-- [[Category:Australian place articles using missing parameters|N]] -->|{{main other|{{#ifeq:{{{type|}}} | town | {{ #switch: {{lc:{{{state|}}}}}
-->{{#if:{{{_noautocat|}}}|<!-- [[Category:Australian place articles using missing parameters|N]] -->|{{main other|{{#ifeq:{{{type|}}} | town | {{ #switch: {{lc:{{{state|}}}}}
|sa = [[Category:Towns in South Australia|{{{name}}}]]
|sa = [[Category:Towns in South Australia|{{{name}}}]]
|vic = [[Category:Towns in Victoria (Australia)|{{{name}}}]]
|vic = [[Category:Towns in Victoria (state)|{{{name}}}]]
|nsw = [[Category:Towns in New South Wales|{{{name}}}]]
|nsw = [[Category:Towns in New South Wales|{{{name}}}]]
|qld = [[Category:Towns in Queensland|{{{name}}}]]
|qld = [[Category:Towns in Queensland|{{{name}}}]]
Line 236: Line 240:
|act = [[Category:Towns in the Australian Capital Territory|{{{name}}}]]
|act = [[Category:Towns in the Australian Capital Territory|{{{name}}}]]
|ni = [[Category:Populated places in Norfolk Island|{{{name}}}]]
|ni = [[Category:Populated places in Norfolk Island|{{{name}}}]]
}} }}{{#ifeq:{{{type|}}} | suburb | {{#ifexist:Category:Suburbs of {{{city}}}|[[Category:Suburbs of {{{city}}}|{{{name}}}]]|{{ #switch: {{lc:{{{state|}}}}}
}} }}{{#ifeq:{{{type|}}} | suburb | {{#ifexist:Category:Suburbs of the City of {{{city}}}|[[Category:Suburbs of the City of {{{city}}}|{{{name}}}]]|{{#ifexist:Category:Suburbs of {{{city}}}|[[Category:Suburbs of {{{city}}}|{{{name}}}]]|{{ #switch: {{lc:{{{state|}}}}}
|sa = {{#ifexist:Category:Suburbs of {{{city}}}, South Australia|[[Category:Suburbs of {{{city}}}, South Australia|{{{name}}}]]}}
|sa = {{#ifexist:Category:Suburbs of {{{city}}}, South Australia|[[Category:Suburbs of {{{city}}}, South Australia|{{{name}}}]]}}
|vic = {{#ifexist:Category:Suburbs of {{{city}}}, Victoria|[[Category:Suburbs of {{{city}}}, Victoria|{{{name}}}]]}}
|vic = {{#ifexist:Category:Suburbs of {{{city}}}, Victoria|[[Category:Suburbs of {{{city}}}, Victoria|{{{name}}}]]}}
Line 245: Line 249:
|tas = {{#ifexist:Category:Suburbs of {{{city}}}, Tasmania|[[Category:Suburbs of {{{city}}}, Tasmania|{{{name}}}]]}}
|tas = {{#ifexist:Category:Suburbs of {{{city}}}, Tasmania|[[Category:Suburbs of {{{city}}}, Tasmania|{{{name}}}]]}}
|act = {{#ifexist:Category:Suburbs of {{{city}}}, ACT|[[Category:Suburbs of {{{city}}}, ACT|{{{name}}}]]}}
|act = {{#ifexist:Category:Suburbs of {{{city}}}, ACT|[[Category:Suburbs of {{{city}}}, ACT|{{{name}}}]]}}
}} }} }} {{#if:{{{est|}}}|
}} }} }} }} {{#if:{{{est|}}}|
{{#ifeq:{{{type|}}}|lga|{{#ifexist:Category:Populated places established in {{{est}}}|[[Category:Populated places established in {{{est}}} |{{{name}}}]]}}{{#ifexist:Category:Populated places established in the {{{est}}}|[[Category:Populated places established in the {{{est}}} |{{{name}}}]]}} {{#ifexist:Category:{{{est}}} establishments in Australia|[[Category:{{{est}}} establishments in Australia|{{{name}}}]]}}}}
{{#ifeq:{{{type|}}}|lga|{{#ifexist:Category:Populated places established in {{{est}}}|[[Category:Populated places established in {{{est}}} |{{{name}}}]]}}{{#ifexist:Category:Populated places established in the {{{est}}}|[[Category:Populated places established in the {{{est}}} |{{{name}}}]]}} {{#ifexist:Category:{{{est}}} establishments in Australia|[[Category:{{{est}}} establishments in Australia|{{{name}}}]]}}}}
}} }} }}<!-- Start tracking
}} }} }}<!-- Start tracking
Line 258: Line 262:
}}<!--
}}<!--
-->{{main other|{{#ifeq:{{{imagesize|♠}}}{{{image2size|♠}}}{{{imagesize2|♠}}}{{{image_alt2|♠}}}{{{logosize|♠}}}{{{official_site|♠}}}|♠♠♠♠♠♠||[[Category:Australian place articles using missing parameters|{{#ifeq:{{{imagesize|♠}}}{{{image2size|♠}}}{{{imagesize2|♠}}}{{{image_alt2|♠}}}|♠♠♠♠||I}}{{#ifeq:{{{logosize|♠}}}|♠||L}}{{#ifeq:{{{official_site|♠}}}|♠||O}}]]}}}}<!--
-->{{main other|{{#ifeq:{{{imagesize|♠}}}{{{image2size|♠}}}{{{imagesize2|♠}}}{{{image_alt2|♠}}}{{{logosize|♠}}}{{{official_site|♠}}}|♠♠♠♠♠♠||[[Category:Australian place articles using missing parameters|{{#ifeq:{{{imagesize|♠}}}{{{image2size|♠}}}{{{imagesize2|♠}}}{{{image_alt2|♠}}}|♠♠♠♠||I}}{{#ifeq:{{{logosize|♠}}}|♠||L}}{{#ifeq:{{{official_site|♠}}}|♠||O}}]]}}}}<!--
-->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox Australian place with unknown parameters|_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 | 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 | zoom }}{{main other|
-->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox Australian place with unknown parameters|_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|}}}
{{#if:{{{coordinates|}}}
|{{#ifeq:{{lc:{{{type|}}} }}|lga
|{{#ifeq:{{lc:{{{type|}}} }}|lga
|{{#switch:{{lc:{{{map_type|}}} }}
|{{#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]]}}
|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]]
|#default=[[Category:Pages using infobox Australian place with lga type and location map]]
}}
}}
|{{#switch:{{lc:{{{map_type|}}} }}
|{{#switch:{{lc:{{{map_type|}}} }}
|nomap = [[Category:Pages using infobox Australian place with an explicitly-suppressed location map]]
|nomap = [[Category:Pages using infobox Australian place with an explicitly suppressed location map]]
}}
}}
}}
}}

Latest revision as of 07:59, 11 May 2023