Template:Infobox settlement: Difference between revisions

From WikiMD's Wellness Encyclopedia

Replaced content with "<includeonly> <div style="border: 1px solid #a2a9b1; background-color: #f9f9f9; padding: 5px; float: right; clear: right; margin: 0 0 1em 1em; width: 22em; font-size: 90%;..."
Tag: Replaced
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="border: 1px solid #a2a9b1; background-color: #f9f9f9; padding: 5px; float: right; clear: right; margin: 0 0 1em 1em; width: 22em; font-size: 90%;">
{| class="infobox"
 
|+ '''{{{name|{{PAGENAME}}}}}'''
<!-- Title -->
<!-- General Information -->
<div style="background-color: #efefef; text-align: center; font-weight: bold; font-size: 110%; padding: 3px;">
|-
{{{name|Settlement Name}}}
| colspan="2" style="background:#EFEFEF; text-align:center;" | General Information
</div>
|-
 
| Name || {{{official_name|{{PAGENAMEBASE}}}}}
<!-- Image Section -->
|-
{{#if: {{{image_skyline|}}} |
| Native Name || {{#if:{{{native_name|}}}|<div lang="{{{native_name_lang|}}}">{{{native_name}}}</div>}}
<div style="text-align: center; margin: 5px 0;">
|-
[[File:{{{image_skyline}}}|frameless|upright=1.2|alt={{{image_alt|}}}]]
| Other Names || {{{other_name|}}}
<div style="font-size: 90%;">{{{image_caption|}}}</div>
|-
</div>}}
| Settlement Type || {{{settlement_type|{{{type|}}}}}}
 
<!-- Transliteration -->
<!-- Map Section -->
|-
{{#if: {{{pushpin_map|}}} |
| colspan="2" style="background:#EFEFEF; text-align:center;" | Transliteration
<div style="text-align: center; margin: 5px 0;">
|-
'''Map:''' [[File:{{{pushpin_map}}}|250px|alt={{{pushpin_map_alt|}}}]]
| Language 1 || {{{translit_lang1|}}}
<div style="font-size: 90%;">{{{pushpin_map_caption|}}}</div>
|-
</div>}}
| Type 1 || {{{translit_lang1_type|}}}
 
|-
<!-- Table for Settlement Details -->
| Info 1 || {{{translit_lang1_info|}}}
<table style="width: 100%; border-spacing: 0;">
<!-- Location and Coordinates -->
 
|-
<!-- Location -->
| colspan="2" style="background:#EFEFEF; text-align:center;" | Location
{{#if: {{{subdivision_name|}}} | <tr><th>Country</th><td>{{{subdivision_name}}}</td></tr> }}
|-
{{#if: {{{subdivision_name1|}}} | <tr><th>State</th><td>{{{subdivision_name1}}}</td></tr> }}
| Coordinates || {{{coordinates|}}}
{{#if: {{{subdivision_name2|}}} | <tr><th>County</th><td>{{{subdivision_name2}}}</td></tr> }}
|-
{{#if: {{{subdivision_name3|}}} | <tr><th>Township</th><td>{{{subdivision_name3}}}</td></tr> }}
| Map || {{#if:{{{pushpin_map|}}}|[[File:{{{pushpin_map}}}|250px]]}}
 
<!-- Population -->
<!-- Coordinates -->
|-
{{#if: {{{coordinates|}}} | <tr><th>Coordinates</th><td>{{{coordinates}}}</td></tr> }}
| colspan="2" style="background:#EFEFEF; text-align:center;" | Population
 
|-
| Total || {{{population_total|}}}
|-
| Density || {{{population_density_km2|}}} per km²
<!-- Area -->
<!-- Area -->
{{#if: {{{area_total_sq_mi|}}} | <tr><th>Area (Total)</th><td>{{{area_total_sq_mi}}} sq mi</td></tr> }}
|-
{{#if: {{{area_land_sq_mi|}}} | <tr><th>Area (Land)</th><td>{{{area_land_sq_mi}}} sq mi</td></tr> }}
| colspan="2" style="background:#EFEFEF; text-align:center;" | Area
{{#if: {{{area_water_sq_mi|}}} | <tr><th>Area (Water)</th><td>{{{area_water_sq_mi}}} sq mi</td></tr> }}
|-
 
| Total || {{{area_total_km2|}}} km²
<!-- Elevation -->
|-
{{#if: {{{elevation_ft|}}} | <tr><th>Elevation</th><td>{{{elevation_ft}}} ft</td></tr> }}
| Land || {{{area_land_km2|}}} km²
 
|-
<!-- Population -->
| Water || {{{area_water_km2|}}} km²
{{#if: {{{population_as_of|}}} | <tr><th>Population ({{{population_as_of}}})</th><td>{{{population_total|}}}</td></tr> }}
<!-- Government -->
 
|-
<!-- Time Zone -->
| colspan="2" style="background:#EFEFEF; text-align:center;" | Government
{{#if: {{{timezone1|}}} | <tr><th>Time Zone</th><td>{{{timezone1}}} (UTC {{{utc_offset1}}})</td></tr> }}
|-
{{#if: {{{timezone1_DST|}}} | <tr><th>Summer (DST)</th><td>{{{timezone1_DST}}} (UTC {{{utc_offset1_DST}}})</td></tr> }}
| Type || {{{government_type|}}}
 
|-
<!-- ZIP Code and Area Code -->
| Leader || {{{leader_name|}}}
{{#if: {{{postal_code|}}} | <tr><th>ZIP Code(s)</th><td>{{{postal_code}}}</td></tr> }}
<!-- Time Zones -->
{{#if: {{{area_code|}}} | <tr><th>Area Code(s)</th><td>{{{area_code}}}</td></tr> }}
|-
 
| colspan="2" style="background:#EFEFEF; text-align:center;" | Time Zone
</table>
|-
 
| Standard || UTC{{{utc_offset|}}}
<!-- Website -->
|-
{{#if: {{{website|}}} |
| DST || UTC{{{utc_offset_DST|}}}
<div style="text-align: center; margin-top: 5px; font-size: 90%;">
|-
[{{{website}}} Official Website]
|}
</div>}}
 
</div>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
== Usage ==
{{documentation}}
This template displays an infobox for a settlement with standard fields like name, location, area, and population.
<!-- Categories go in /doc -->
 
=== Example ===
<syntaxhighlight lang="mediawiki">
{{Infobox settlement
| name              = Exton
| image_skyline      = CCLS-Exton3.jpg
| image_caption      = Chester County Library at Exton
| subdivision_name  = United States
| subdivision_name1  = Pennsylvania
| subdivision_name2  = [[Chester County, Pennsylvania|Chester]]
| subdivision_name3  = [[West Whiteland Township, Pennsylvania|West Whiteland]]
| pushpin_map        = Pennsylvania#USA
| pushpin_map_caption= Location of Exton in Pennsylvania
| area_total_sq_mi  = 3.2
| area_land_sq_mi    = 3.2
| elevation_ft      = 312
| population_as_of  = 2010
| population_total  = 4,900
| timezone1          = EST
| utc_offset1        = −5
| timezone1_DST      = EDT
| utc_offset1_DST    = −4
| postal_code        = 19341, 19353
| area_code          = [[Area codes 610 and 484|610 and 484]]
}}
</syntaxhighlight>
 
=== Parameters ===
* `name` - Settlement name (required).
* `image_skyline` - Image of the settlement.
* `image_caption` - Caption for the image.
* `subdivision_name` - Country.
* `subdivision_name1` - State or province.
* `subdivision_name2` - County.
* `subdivision_name3` - Township.
* `pushpin_map` - Name of the map to display.
* `pushpin_map_caption` - Caption for the map.
* `area_total_sq_mi` - Total area in square miles.
* `area_land_sq_mi` - Land area in square miles.
* `elevation_ft` - Elevation in feet.
* `population_as_of` - Year of population data.
* `population_total` - Population count.
* `timezone1` - Time zone (standard).
* `timezone1_DST` - Time zone (DST).
* `postal_code` - ZIP code(s).
* `area_code` - Area code(s).
* `website` - Official website URL.
 
== Notes ==
* Empty fields will not display.
* Images and maps are optional.
 
</noinclude>
</noinclude>

Latest revision as of 18:20, 18 December 2024