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
CSV import
Line 1: Line 1:
<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%;">


<!-- Title -->
{{Infobox
<div style="background-color: #efefef; text-align: center; font-weight: bold; font-size: 110%; padding: 3px;">
| name                    = {{{name|}}}
{{{name|Settlement Name}}}
| official_name          = {{{official_name|}}}
</div>
| native_name            = {{{native_name|}}}
 
| native_name_lang      = {{{native_name_lang|}}}
<!-- Image Section -->
| settlement_type        = {{{settlement_type|}}}
{{#if: {{{image_skyline|}}} |
| image_skyline          = {{{image_skyline|}}}
<div style="text-align: center; margin: 5px 0;">
| image_alt              = {{{image_alt|}}}
[[File:{{{image_skyline}}}|frameless|upright=1.2|alt={{{image_alt|}}}]]
| image_caption          = {{{image_caption|}}}
<div style="font-size: 90%;">{{{image_caption|}}}</div>
| image_flag            = {{{image_flag|}}}
</div>}}
| flag_alt              = {{{flag_alt|}}}
 
| image_seal            = {{{image_seal|}}}
<!-- Map Section -->
| seal_alt              = {{{seal_alt|}}}
{{#if: {{{pushpin_map|}}} |
| image_shield          = {{{image_shield|}}}
<div style="text-align: center; margin: 5px 0;">
| shield_alt            = {{{shield_alt|}}}
'''Map:''' [[File:{{{pushpin_map}}}|250px|alt={{{pushpin_map_alt|}}}]]
| image_blank_emblem    = {{{image_blank_emblem|}}}
<div style="font-size: 90%;">{{{pushpin_map_caption|}}}</div>
| blank_emblem_alt      = {{{blank_emblem_alt|}}}
</div>}}
| nickname              = {{{nickname|}}}
 
| motto                  = {{{motto|}}}
<!-- Table for Settlement Details -->
| coordinates            = {{{coordinates|}}}
<table style="width: 100%; border-spacing: 0;">
| subdivision_type      = {{{subdivision_type|}}}
 
| subdivision_name      = {{{subdivision_name|}}}
<!-- Location -->
| established_title      = {{{established_title|}}}
{{#if: {{{subdivision_name|}}} | <tr><th>Country</th><td>{{{subdivision_name}}}</td></tr> }}
| established_date      = {{{established_date|}}}
{{#if: {{{subdivision_name1|}}} | <tr><th>State</th><td>{{{subdivision_name1}}}</td></tr> }}
| area_total_km2        = {{{area_total_km2|}}}
{{#if: {{{subdivision_name2|}}} | <tr><th>County</th><td>{{{subdivision_name2}}}</td></tr> }}
| area_land_km2          = {{{area_land_km2|}}}
{{#if: {{{subdivision_name3|}}} | <tr><th>Township</th><td>{{{subdivision_name3}}}</td></tr> }}
| area_water_km2        = {{{area_water_km2|}}}
 
| population_total      = {{{population_total|}}}
<!-- Coordinates -->
| population_as_of      = {{{population_as_of|}}}
{{#if: {{{coordinates|}}} | <tr><th>Coordinates</th><td>{{{coordinates}}}</td></tr> }}
| population_density_km2 = {{{population_density_km2|}}}
 
| timezone              = {{{timezone|}}}
<!-- Area -->
| utc_offset            = {{{utc_offset|}}}
{{#if: {{{area_total_sq_mi|}}} | <tr><th>Area (Total)</th><td>{{{area_total_sq_mi}}} sq mi</td></tr> }}
| website               = {{{website|}}}
{{#if: {{{area_land_sq_mi|}}} | <tr><th>Area (Land)</th><td>{{{area_land_sq_mi}}} sq mi</td></tr> }}
}}
{{#if: {{{area_water_sq_mi|}}} | <tr><th>Area (Water)</th><td>{{{area_water_sq_mi}}} sq mi</td></tr> }}
 
<!-- Elevation -->
{{#if: {{{elevation_ft|}}} | <tr><th>Elevation</th><td>{{{elevation_ft}}} ft</td></tr> }}
 
<!-- Population -->
{{#if: {{{population_as_of|}}} | <tr><th>Population ({{{population_as_of}}})</th><td>{{{population_total|}}}</td></tr> }}
 
<!-- Time Zone -->
{{#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> }}
 
<!-- ZIP Code and Area Code -->
{{#if: {{{postal_code|}}} | <tr><th>ZIP Code(s)</th><td>{{{postal_code}}}</td></tr> }}
{{#if: {{{area_code|}}} | <tr><th>Area Code(s)</th><td>{{{area_code}}}</td></tr> }}
 
</table>
 
<!-- Website -->
{{#if: {{{website|}}} |
<div style="text-align: center; margin-top: 5px; font-size: 90%;">
[{{{website}}} Official Website]
</div>}}
 
</div>
</includeonly>


<!-- Template documentation -->
<noinclude>
<noinclude>
== Usage ==
== Usage ==
This template displays an infobox for a settlement with standard fields like name, location, area, and population.
This template is used to create an infobox for settlements. It can be used to display information about cities, towns, or other types of settlements.


=== Example ===
=== Parameters ===
<syntaxhighlight lang="mediawiki">
* '''name''': The name of the settlement.
* '''official_name''': The official name of the settlement.
* '''native_name''': The native name of the settlement.
* '''native_name_lang''': The language of the native name.
* '''settlement_type''': The type of settlement (e.g., city, town).
* '''image_skyline''': An image of the settlement's skyline.
* '''image_alt''': Alt text for the skyline image.
* '''image_caption''': A caption for the skyline image.
* '''image_flag''': An image of the settlement's flag.
* '''flag_alt''': Alt text for the flag image.
* '''image_seal''': An image of the settlement's seal.
* '''seal_alt''': Alt text for the seal image.
* '''image_shield''': An image of the settlement's shield.
* '''shield_alt''': Alt text for the shield image.
* '''image_blank_emblem''': An image of a blank emblem.
* '''blank_emblem_alt''': Alt text for the blank emblem image.
* '''nickname''': A nickname for the settlement.
* '''motto''': The motto of the settlement.
* '''coordinates''': The coordinates of the settlement.
* '''subdivision_type''': The type of subdivision (e.g., country, state).
* '''subdivision_name''': The name of the subdivision.
* '''established_title''': The title for the establishment date.
* '''established_date''': The date the settlement was established.
* '''area_total_km2''': The total area of the settlement in square kilometers.
* '''area_land_km2''': The land area of the settlement in square kilometers.
* '''area_water_km2''': The water area of the settlement in square kilometers.
* '''population_total''': The total population of the settlement.
* '''population_as_of''': The year the population was recorded.
* '''population_density_km2''': The population density per square kilometer.
* '''timezone''': The timezone of the settlement.
* '''utc_offset''': The UTC offset of the timezone.
* '''website''': The official website of the settlement.
 
== Example ==
<pre>
{{Infobox settlement
{{Infobox settlement
| name               = Exton
| name = Example City
| image_skyline     = CCLS-Exton3.jpg
| official_name = City of Example
| image_caption     = Chester County Library at Exton
| native_name = Exemple
| subdivision_name  = United States
| native_name_lang = fr
| subdivision_name1  = Pennsylvania
| settlement_type = City
| subdivision_name2  = [[Chester County, Pennsylvania|Chester]]
| image_skyline = Example_skyline.jpg
| subdivision_name3  = [[West Whiteland Township, Pennsylvania|West Whiteland]]
| image_alt = Skyline of Example City
| pushpin_map        = Pennsylvania#USA
| image_caption = The skyline of Example City
| pushpin_map_caption= Location of Exton in Pennsylvania
| image_flag = Example_flag.png
| area_total_sq_mi  = 3.2
| flag_alt = Flag of Example City
| area_land_sq_mi    = 3.2
| image_seal = Example_seal.png
| elevation_ft      = 312
| seal_alt = Seal of Example City
| population_as_of  = 2010
| image_shield = Example_shield.png
| population_total  = 4,900
| shield_alt = Shield of Example City
| timezone1          = EST
| image_blank_emblem = Example_emblem.png
| utc_offset1        = −5
| blank_emblem_alt = Emblem of Example City
| timezone1_DST      = EDT
| nickname = The Example
| utc_offset1_DST    = −4
| motto = "Exemplify Excellence"
| postal_code        = 19341, 19353
| coordinates = {{coord|12|34|N|56|78|E}}
| area_code          = [[Area codes 610 and 484|610 and 484]]
| subdivision_type = Country
| subdivision_name = Exampleland
| established_title = Founded
| established_date = 1900
| area_total_km2 = 123.45
| area_land_km2 = 100.00
| area_water_km2 = 23.45
| population_total = 1000000
| population_as_of = 2020
| population_density_km2 = 8000
| timezone = Example Standard Time
| utc_offset = +1
| website = [http://www.examplecity.gov Example City Official Website]
}}
}}
</syntaxhighlight>
</pre>
 
=== 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.


== Categories ==
[[Category:Infobox templates]]
[[Category:Settlement templates]]
</noinclude>
</noinclude>

Revision as of 16:19, 18 December 2024






Usage

This template is used to create an infobox for settlements. It can be used to display information about cities, towns, or other types of settlements.

Parameters

  • name: The name of the settlement.
  • official_name: The official name of the settlement.
  • native_name: The native name of the settlement.
  • native_name_lang: The language of the native name.
  • settlement_type: The type of settlement (e.g., city, town).
  • image_skyline: An image of the settlement's skyline.
  • image_alt: Alt text for the skyline image.
  • image_caption: A caption for the skyline image.
  • image_flag: An image of the settlement's flag.
  • flag_alt: Alt text for the flag image.
  • image_seal: An image of the settlement's seal.
  • seal_alt: Alt text for the seal image.
  • image_shield: An image of the settlement's shield.
  • shield_alt: Alt text for the shield image.
  • image_blank_emblem: An image of a blank emblem.
  • blank_emblem_alt: Alt text for the blank emblem image.
  • nickname: A nickname for the settlement.
  • motto: The motto of the settlement.
  • coordinates: The coordinates of the settlement.
  • subdivision_type: The type of subdivision (e.g., country, state).
  • subdivision_name: The name of the subdivision.
  • established_title: The title for the establishment date.
  • established_date: The date the settlement was established.
  • area_total_km2: The total area of the settlement in square kilometers.
  • area_land_km2: The land area of the settlement in square kilometers.
  • area_water_km2: The water area of the settlement in square kilometers.
  • population_total: The total population of the settlement.
  • population_as_of: The year the population was recorded.
  • population_density_km2: The population density per square kilometer.
  • timezone: The timezone of the settlement.
  • utc_offset: The UTC offset of the timezone.
  • website: The official website of the settlement.

Example

{{Infobox settlement
| name = Example City
| official_name = City of Example
| native_name = Exemple
| native_name_lang = fr
| settlement_type = City
| image_skyline = Example_skyline.jpg
| image_alt = Skyline of Example City
| image_caption = The skyline of Example City
| image_flag = Example_flag.png
| flag_alt = Flag of Example City
| image_seal = Example_seal.png
| seal_alt = Seal of Example City
| image_shield = Example_shield.png
| shield_alt = Shield of Example City
| image_blank_emblem = Example_emblem.png
| blank_emblem_alt = Emblem of Example City
| nickname = The Example
| motto = "Exemplify Excellence"
| coordinates = {{coord|12|34|N|56|78|E}}
| subdivision_type = Country
| subdivision_name = Exampleland
| established_title = Founded
| established_date = 1900
| area_total_km2 = 123.45
| area_land_km2 = 100.00
| area_water_km2 = 23.45
| population_total = 1000000
| population_as_of = 2020
| population_density_km2 = 8000
| timezone = Example Standard Time
| utc_offset = +1
| website = [http://www.examplecity.gov Example City Official Website]
}}

Categories