Template:Infobox settlement: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Caroig m removed the use of unit template, sometimes the elevation is a range |
meta>MJCdetroit Revamped template using 52_Pickup's Design to fix the extra spacing issue. See the Template_talk:Infobox_City#It is really screwed up. Revert if needed |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><table class="infobox geography" style="width: 23em;"> | ||
<tr> | |||
<td colspan="2" align="center" style="width:100%; font-size: 1.25em; white-space: nowrap;">'''{{{official_name}}}{{#if:{{{native_name|}}}|<br>({{{native_name}}})}}{{#if:{{{other_name|}}}|<br>{{{other_name}}}}}'''</td> | |||
{{#if:{{{other_name|}}}| | </tr> | ||
<!-- ***** Skyline Image ***** --> | |||
{{#if:{{{image_skyline|}}}| | {{#if:{{{image_skyline|}}}| | ||
<tr> | |||
<td colspan="2" style="text-align: center; padding: 0.7em 0.8em 0.7em 0.8em;;"> | |||
}}<!-- ***** Flag | [[Image:{{{image_skyline|}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|250px}}|none|{{{image_caption|Skyline of {{{official_name|}}}}}}]]{{#if:{{{image_caption|}}}|<small>{{{image_caption|}}}</small>}} | ||
{{#if:{{{image_flag|}}}{{{image_seal|}}} {{{image_shield|}}}{{{city_logo|}}}| | </td> | ||
</tr> | |||
}}<!-- ***** Flag, Seal, Shield and Coat of arms ***** --> | |||
{{ | {{#if:{{{image_flag|}}}{{{image_seal|}}}{{{image_shield|}}}{{{city_logo|}}}| | ||
{{#if:{{{ | <tr class="mergedtoprow"> | ||
{{#if:{{{ | <td class="maptable" colspan="2" align="center" style="padding: 0.4em 0.8em 0.4em 0.8em;"> | ||
{{# | <table style="width: 100%; background: none;" align="center"> | ||
{{ | {{#ifeq:{{#expr:{{#if:{{{image_flag|}}}|1|0}}+{{#if:{{{image_seal|}}}|1|0}}+{{#if:{{{image_shield|}}}|1|0}}+{{#if:{{{city_logo|}}}|1|0}}}}|2| | ||
{{#if:{{{image_shield|}}}| {{ | <tr> <td style="vertical-align: middle;" align="center"> {{#if:{{{image_flag|}}}|[[Image:{{{image_flag|}}}|{{#if:{{{flag_size|}}}|{{{flag_size}}}|100px}}|Official flag of {{{official_name|}}}]]<br><small>'''[[Flag of {{{official_name}}}|Flag]]'''</small> |{{#if:{{{image_seal|}}}|[[Image:{{{image_seal|}}}|{{#if:{{{seal_size|}}}|{{{seal_size}}}|100px}}|Official seal of {{{official_name|}}}]]<br><small>'''[[Seal of {{{official_name}}}|Seal]]'''</small> |{{#if:{{{image_shield|}}}|[[Image:{{{image_shield|}}}|{{#if:{{{shield_size|}}}|{{{shield_size}}}|100px}}|Coat of arms of {{{official_name|}}}]]<br><small>'''[[Coat of arms of {{{official_name}}}|Coat of arms]]'''</small>|{{#if:{{{city_logo|}}}|[[Image:{{{city_logo|}}}|{{#if:{{{citylogo_size|}}}|{{{citylogo_size}}}|100px}}|Official logo of {{{official_name|}}}]]<br><small>'''[[Official logo of {{{official_name}}}|Logo]]'''</small>}}}}}}}}</td> | ||
{{#if:{{{city_logo|}}}| | <td style="vertical-align: middle;" align="center"> {{#if:{{{city_logo|}}}|[[Image:{{{city_logo|}}}|{{#if:{{{citylogo_size|}}}|{{{citylogo_size}}}|100px}}|Official logo of {{{official_name|}}}]]<br><small>'''[[Official logo of {{{official_name}}}|Logo]]'''</small> |{{#if:{{{image_shield|}}}|[[Image:{{{image_shield|}}}|{{#if:{{{shield_size|}}}|{{{shield_size}}}|100px}}|Coat of arms of {{{official_name|}}}]]<br><small>'''[[Coat of arms of {{{official_name}}}|Coat of arms]]'''</small> |{{#if:{{{image_seal|}}}|[[Image:{{{image_seal|}}}|{{#if:{{{seal_size|}}}|{{{seal_size}}}|100px}}|Official seal of {{{official_name|}}}]]<br><small>'''[[Seal of {{{official_name}}}|Seal]]'''</small> |{{#if:{{{image_flag|}}}|[[Image:{{{image_flag|}}}|{{#if:{{{flag_size|}}}|{{{flag_size}}}|100px}}|Official flag of {{{official_name|}}}]]<br><small>'''[[Flag of {{{official_name}}}|Flag]]'''</small>}}}}}}}}</td> | ||
|{{#if:{{{image_flag|}}}{{{image_seal|}}}| | |||
<tr>{{#if:{{{image_flag|}}}| | |||
<td style="vertical-align: middle;" align="center" {{#if:{{{image_seal|}}}| |colspan="2"}}> [[Image:{{{image_flag|}}}|{{#if:{{{flag_size|}}}|{{{flag_size}}}|100px}}|Official flag of {{{official_name|}}}]]<br><small>'''[[Flag of {{{official_name}}}|Flag]]'''</small></td>}}{{#if:{{{image_seal|}}}| | |||
<td style="vertical-align: middle;" align="center" {{#if:{{{image_flag|}}}| |colspan="2"}}> [[Image:{{{image_seal|}}}|{{#if:{{{seal_size|}}}|{{{seal_size}}}|100px}}|Official seal of {{{official_name|}}}]]<br><small>'''[[Seal of {{{official_name}}}|Seal]]'''</small></td>}} | |||
</tr> | |||
}}{{#if:{{{image_shield|}}}{{{city_logo|}}}| | |||
<tr>{{#if:{{{image_shield|}}}| | |||
<td style="vertical-align: middle;" align="center" {{#if:{{{city_logo|}}}| |colspan="2"}}> [[Image:{{{image_shield|}}}|{{#if:{{{shield_size|}}}|{{{shield_size}}}|100px}}|Coat of arms of {{{official_name|}}}]]<br><small>'''[[Coat of arms of {{{official_name}}}|Coat of arms]]'''</small></td>}}{{#if:{{{city_logo|}}}| | |||
<td style="vertical-align: middle;" align="center" {{#if:{{{image_shield|}}}| |colspan="2"}}> [[Image:{{{city_logo|}}}|{{#if:{{{citylogo_size|}}}|{{{citylogo_size}}}|100px}}|Official logo of {{{official_name|}}}]]<br><small>'''[[Official logo of {{{official_name}}}|Logo]]'''</small></td>}} | |||
</tr> | |||
}}}} | |||
</table> | |||
</td> | |||
</tr> | |||
}}<!-- ***** Nickname ***** --> | }}<!-- ***** Nickname ***** --> | ||
{{#if:{{{nickname|}}}| | {{#if:{{{nickname|}}}| | ||
<tr class="mergedrow"> | |||
<td colspan="2" align="center">[[Nickname]]: "''{{{nickname|}}}''"</td> | |||
</tr> | |||
}}<!-- ***** Motto ***** --> | }}<!-- ***** Motto ***** --> | ||
{{#if:{{{motto|}}}| | {{#if:{{{motto|}}}| | ||
<tr class="mergedrow"> | |||
<td colspan="2" align="center">[[Motto]]: {{{motto|}}}</td> | |||
</tr> | |||
}}<!-- ***** Map ***** --> | }}<!-- ***** Map ***** --> | ||
{{#if:{{{image_map|}}}| | {{#if:{{{image_map|}}}| | ||
<tr class="mergedrow"> | |||
[[Image:{{{image_map|}}}|{{#if:{{{mapsize|}}}|{{{mapsize}}}|250px}}|none|{{{map_caption|Location of {{{official_name|}}}}}}]]{{#if:{{{map_caption|}}}|<small>{{{map_caption|}}}</small>}} | <td colspan="2" style="text-align: center;">[[Image:{{{image_map|}}}|{{#if:{{{mapsize|}}}|{{{mapsize}}}|250px}}|none|{{{map_caption|Location of {{{official_name|}}}}}}]]{{#if:{{{map_caption|}}}|<small>{{{map_caption|}}}</small>}} | ||
</td> | |||
</tr> | |||
}}<!-- ***** Coordinates ***** --> | }}<!-- ***** Coordinates ***** --> | ||
{{#if:{{{latNS|}}}| | {{#if:{{{latNS|}}}| | ||
<tr class="mergedbottomrow"> | |||
<th colspan="2" style="text-align: center; font-size: smaller; padding-bottom: 0.7em;">Coordinates: {{#if:{{{lats|}}} | |||
| {{coor dms|{{{latd}}}|{{{latm}}}|{{{lats|0}}}|{{{latNS}}}|{{{longd}}}|{{{longm}}}|{{{longs|0}}}|{{{longEW}}}|type:city}} | | {{coor dms|{{{latd}}}|{{{latm}}}|{{{lats|0}}}|{{{latNS}}}|{{{longd}}}|{{{longm}}}|{{{longs|0}}}|{{{longEW}}}|type:city}} | ||
| {{coor dm|{{{latd}}}|{{{latm}}}|{{{latNS}}}|{{{longd}}}|{{{longm}}}|{{{longEW}}}|type:city}} | | {{coor dm|{{{latd}}}|{{{latm}}}|{{{latNS}}}|{{{longd}}}|{{{longm}}}|{{{longEW}}}|type:city}}}}</th> | ||
}} | </tr> | ||
}}<!-- ***** Subdivisions ***** --> | |||
}}<!--***** | {{#if:{{{subdivision_type|}}}| | ||
| | <tr class="mergedrow"> | ||
<th>{{{subdivision_type}}} | |||
<th>{{{subdivision_name}}} | |||
</tr> | |||
{{#if:{{{subdivision_type1|}}}| | }}{{#if:{{{subdivision_type1|}}}| | ||
<tr class="mergedrow"> | |||
<th>{{{subdivision_type1}}} | |||
<th>{{{subdivision_name1}}} | |||
}} | </tr> | ||
{{#if:{{{subdivision_type2|}}}| | }}{{#if:{{{subdivision_type2|}}}| | ||
<tr class="mergedrow"> | |||
<th>{{{subdivision_type2}}} | |||
<th>{{{subdivision_name2}}} | |||
}} | </tr> | ||
{{#if:{{{subdivision_type3|}}}| | }}{{#if:{{{subdivision_type3|}}}| | ||
<tr class="mergedrow"> | |||
<th>{{{subdivision_type3}}} | |||
<th>{{{subdivision_name3}}} | |||
}} | </tr> | ||
{{#if:{{{subdivision_type4|}}}| | }}{{#if:{{{subdivision_type4|}}}| | ||
<tr class="mergedrow"> | |||
<th>{{{subdivision_type4}}} | |||
<th>{{{subdivision_name4}}} | |||
}} <!--***** Established *****--> | </tr> | ||
}}<!--***** Established *****--> | |||
{{#if:{{{established_title|}}}| | {{#if:{{{established_title|}}}| | ||
<tr class="mergedrow"> | |||
<th>{{{established_title}}}</th> | |||
<td>{{{established_date}}}</td> | |||
}} | </tr> | ||
{{#if:{{{established_title2|}}}| | }}{{#if:{{{established_title2|}}}| | ||
<tr class="mergedrow"> | |||
<th>{{{established_title2}}}</th> | |||
<td>{{{established_date2}}}</td> | |||
}} | </tr> | ||
{{#if:{{{established_title3|}}}| | }}{{#if:{{{established_title3|}}}| | ||
<tr class="mergedrow"> | |||
<th>{{{established_title3}}}</th> | |||
<td>{{{established_date3}}}</td> | |||
</tr> | |||
}}<!-- ***** Government type and Leader ***** --> | }}<!-- ***** Government type and Leader ***** --> | ||
{{#if:{{{government_type|}}}| | {{#if:{{{government_type|}}}| | ||
<tr class="mergedrow"> | |||
<th>Government type</th> | |||
<td>{{{government_type}}}</td> | |||
{{#if:{{{leader_title|}}}| | </tr> | ||
}}{{#if:{{{leader_title|}}}| | |||
<tr class="mergedrow"> | |||
<th>{{{leader_title}}} | |||
<td>{{{leader_name}}}</td> | |||
</tr> | |||
{{#if:{{{leader_title1|}}}| | {{#if:{{{leader_title1|}}}| | ||
<tr class="mergedrow"> | |||
<th>{{{leader_title1}}} | |||
<td>{{{leader_name1}}}</td> | |||
</tr> | |||
{{#if:{{{leader_title2|}}}| | {{#if:{{{leader_title2|}}}| | ||
<tr class="mergedrow"> | |||
<th>{{{leader_title2}}} | |||
<td>{{{leader_name2}}}</td> | |||
</tr> | |||
{{#if:{{{leader_title3|}}}| | {{#if:{{{leader_title3|}}}| | ||
<tr class="mergedrow"> | |||
<th>{{{leader_title3}}} | |||
<td>{{{leader_name3}}}</td> | |||
</tr> | |||
}} }} }} }}<!-- ***** Geographical characteristics ***** --> | }} }} }} }}<!-- ***** Geographical characteristics ***** --> | ||
| | {{#if:{{{area_total|}}}{{{area_land|}}}{{{area_water|}}}{{{area_urban|}}}{{{area_metro|}}}| | ||
<tr <!-- ***** Area ***** --> class="mergedtoprow"> | |||
<th>[[Area]]</th><td> </td> | |||
</tr> | |||
<tr class="mergedrow"> | |||
<th> - {{#if:{{{settlement_type|}}}|{{{settlement_type}}}|City}} | |||
</th> | |||
<td>{{#if:{{{area_magnitude|}}}|{{{area_total}}} [[{{{area_magnitude}}}_m²|km²]]|{{{area_total}}} [[Square kilometre|km²]]}} {{#if:{{{TotalArea_sq_mi|}}} | ({{{TotalArea_sq_mi}}} [[square mile|sq mi]]) }}</td> | |||
</tr> | |||
{{#if:{{{area_land|}}}| | {{#if:{{{area_land|}}}| | ||
<tr class="mergedrow"> | |||
<th> - Land</th> | |||
<td>{{{area_land}}} km² {{#if:{{{LandArea_sq_mi|}}} | ({{{LandArea_sq_mi}}} sq mi)}}</td> | |||
{{#if:{{{area_water|}}}| | </tr> | ||
}}{{#if:{{{area_water|}}}| | |||
<tr class="mergedrow"> | |||
<th> - Water</th> | |||
{{#if:{{{area_urban|}}}| | <td>{{{area_water}}} km²{{#if:{{{WaterArea_sq_mi|}}} | ({{{WaterArea_sq_mi}}} sq mi)}} {{#if:{{{area_water_percent|}}}| {{{area_water_percent}}}%}}</td> | ||
</tr> | |||
}}{{#if:{{{area_urban|}}}| | |||
<tr class="mergedrow"> | |||
{{#if:{{{area_metro|}}}| | <th> - Urban</th> | ||
<td>{{{area_urban}}} km²{{#if:{{{UrbanArea_sq_mi|}}} | ({{{UrbanArea_sq_mi}}} sq mi)}}</td> | |||
</tr> | |||
}}{{#if:{{{area_metro|}}}| | |||
{{#if:{{{elevation | <tr class="mergedrow"> | ||
<th> - Metro</th> | |||
<td>{{{area_metro}}} km²{{#if:{{{MetroArea_sq_mi|}}} | ({{{MetroArea_sq_mi}}} sq mi)}}</td> | |||
</tr> | |||
}} | }} }}<!-- ***** Elevation ***** --> | ||
{{#if:{{{elevation|}}}| | |||
| | <tr class="mergedbottomrow"> | ||
<th>[[Elevation]]</th> | |||
<td>{{{elevation}}} [[metre|m]] {{#if:{{{elevation_ft|}}}| ({{{elevation_ft}}} [[foot (unit of length)|ft]])}}</td> | |||
</tr> | |||
{{#if:{{{population_density|}}}| | }}<!-- ***** Population ***** --> | ||
{{#if:{{{population_total|}}}{{{population_urban|}}}{{{population_metro|}}}| | |||
<tr class="mergedtoprow"> | |||
<td colspan="2">'''Population''' {{#if:{{{population_as_of|}}}|({{{population_as_of}}})}}</th> | |||
{{#if:{{{population_urban|}}}| | </tr> | ||
{{#if:{{{population_total|}}}| | |||
<tr class="mergedrow"> | |||
<th> - {{#if:{{{settlement_type|}}}|{{{settlement_type}}}|City}}</th> | |||
{{#if:{{{population_density_urban_km2|}}}| | <td>{{{population_total}}}</td> | ||
</tr> | |||
}}{{#if:{{{population_density|}}}| | |||
<tr class="mergedrow"> | |||
{{#if:{{{population_metro|}}}| | <th> - [[Population density|Density]]</th> | ||
<td>{{{population_density}}}/km²{{#if:{{{population_density_mi2|}}}| ({{{population_density_mi2}}}/sq mi)}}</td> | |||
</tr> | |||
}}{{#if:{{{population_urban|}}}| | |||
{{#if:{{{population_density_metro_km2|}}}| | <tr class="mergedrow"> | ||
<th> - [[Urban area|Urban]]</th> | |||
<td>{{{population_urban}}}</td> | |||
</tr> | |||
{{#if:{{{population_note|}}}| | }}{{#if:{{{population_density_urban_km2|}}}| | ||
<tr class="mergedrow"> | |||
<th> - Urban Density | |||
<td> {{{population_density_urban_km2}}}/km²{{#if:{{{population_density_urban_mi2|}}}| ({{{population_density_urban_mi2}}}/sq mi) }}</td> | |||
</tr> | |||
}}{{#if:{{{population_metro|}}}| | |||
<tr class="mergedrow"> | |||
<th> - [[Metropolitan area|Metro]]</th> | |||
<td>{{{population_metro}}}</td> | |||
</tr> | |||
}}{{#if:{{{population_density_metro_km2|}}}| | |||
<tr class="mergedrow"> | |||
<th> - Metro Density</th> | |||
<td> {{{population_density_metro_km2}}}/km²{{#if:{{{population_density_metro_mi2|}}}| ({{{population_density_metro_mi2}}}/sq mi) }}</td> | |||
</tr> | |||
}}{{#if:{{{population_note|}}}| | |||
<tr class="mergedbottomrow"> | |||
<td> </td> | |||
<td><small>{{{population_note}}}</small></td> | |||
</tr> | |||
}} }}<!-- ***** Time Zone ***** --> | |||
{{#if:{{{timezone|}}}| | {{#if:{{{timezone|}}}| | ||
<tr class="mergedtoprow"> | |||
<th>[[Time zone]]</th> | |||
<td>{{{timezone}}} ([[UTC{{{utc_offset}}}]]) | |||
{{#if:{{{timezone_DST|}}}| | </tr> | ||
{{#if:{{{timezone_DST|}}}| | |||
<tr class="mergedbottomrow"> | |||
}} | <th style="white-space: nowrap;"> - Summer ([[Daylight saving time|DST]])</th> | ||
<td>{{{timezone_DST|}}} ([[UTC{{{utc_offset_DST|}}}]])</td> | |||
</tr> | |||
}} }}<!-- ***** Postal Code(s) ***** --> | |||
{{#if:{{{postal_code_type|}}}| | {{#if:{{{postal_code_type|}}}| | ||
<tr class="mergedrow"> | |||
<th>[[{{{postal_code_type}}}]]</th> | |||
}} | <td>{{{postal_code}}}</td> | ||
<!-- ***** Area Code(s) ***** --> | </tr> | ||
}}<!-- ***** Area Code(s) ***** --> | |||
{{#if:{{{area_code|}}}| | {{#if:{{{area_code|}}}| | ||
<tr class="mergedrow"> | |||
<th>Area code(s)</th> | |||
<td>{{{area_code}}}</td> | |||
</tr> | |||
}}<!-- ***** Footnotes ***** --> | }}<!-- ***** Footnotes ***** --> | ||
{{#if:{{{footnotes|}}}| | {{#if:{{{footnotes|}}}| | ||
<tr class="mergedrow"> | |||
<td colspan="2" align="center"><small>{{{footnotes}}}</small></td> | |||
}} <!-- ***** Website ***** --> | </tr> | ||
}}<!-- ***** Website ***** --> | |||
{{#if:{{{website|}}}| | {{#if:{{{website|}}}| | ||
<tr class="mergedrow"> | |||
<td colspan="2" align="center">'''Website:''' {{{website}}} | |||
</tr> | |||
}} | }} | ||
</table> | |||
</includeonly><noinclude> | |||
{{esoteric}} | {{esoteric}} | ||
<div style="display:inline; | <div style="display:inline; | ||
| Line 290: | Line 341: | ||
[[zh:Template:Infobox City]] | [[zh:Template:Infobox City]] | ||
</noinclude> | </noinclude> | ||
| | |||
Revision as of 03:04, 8 January 2007
Empty Syntax For question or examples see the talk page.
<!-- Infobox begins -->{{Infobox City
|official_name =
|other_name =
|native_name = <!-- for cities whose native name is not in English -->
|nickname =
|motto =
|image_skyline =
|imagesize =
|image_caption =
|image_flag =
|flag_size =
|image_seal =
|seal_size =
|image_shield =
|shield_size =
|city_logo =
|citylogo_size =
|image_map =
|mapsize =
|map_caption =
|subdivision_type =
|subdivision_name =
|subdivision_type1 =
|subdivision_name1 =
|subdivision_type2 =
|subdivision_name2 =
|subdivision_type3 =
|subdivision_name3 =
|subdivision_type4 =
|subdivision_name4 =
|government_type =
|leader_title =
|leader_name =
|leader_title1 = <!-- for places with, say, both a mayor and a city manager -->
|leader_name1 =
|leader_title2 =
|leader_name2 =
|leader_title3 =
|leader_name3 =
|established_title = <!-- Settled -->
|established_date =
|established_title2 = <!-- Incorporated (town) -->
|established_date2 =
|established_title3 = <!-- Incorporated (city) -->
|established_date3 =
|area_magnitude =
|area_total =
|TotalArea_sq_mi =
|area_land =
|LandArea_sq_mi =
|area_water =
|WaterArea_sq_mi =
|area_water_percent =
|area_urban =
|UrbanArea_sq_mi =
|area_metro =
|MetroArea_sq_mi =
|population_as_of =
|population_note =
|settlement_type = <!--For Town or Village (Leave blank for the default City)-->
|population_total =
|population_density =
|population_density_mi2 =
|population_metro =
|population_density_metro_km2 =
|population_density_metro_mi2 =
|population_urban =
|population_density_urban_km2 =
|population_density_urban_mi2 =
|timezone =
|utc_offset =
|timezone_DST =
|utc_offset_DST =
|latd= |latm= |lats= |latNS=
|longd= |longm= |longs= |longEW=
|elevation =
|elevation_ft =
|postal_code_type = <!-- enter ZIP code, Postcode, Post code, Postal code... -->
|postal_code =
|area_code =
|website =
|footnotes =
}} <!-- Infobox ends -->
hu:Sablon:Infobox város ja:Template:Infobox City pt:Predefinição:Infobox Cidade ro:Format:Infobox City simple:Template:Infobox City sv:Mall:Ortsfakta vi:Tiêu bản:Tóm tắt về thành phố zh:Template:Infobox City
|