Template:Infobox Constituent Country/doc

From CWS Planet
< Template:Infobox Constituent Country
Revision as of 22:56, 7 January 2024 by Lme15 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Usage

This template is used to create an infobox for settlements within Tamiran and its constituent countries. It provides a standardized way to present information about various aspects of a settlement, including its name, type, imagery, location, population, and more.

Syntax

The basic syntax for using this template is as follows:

{{Infobox Constituent Country
| name                    = {{{name|}}}
| official_name           = {{{official_name|{{{name|}}}}}}
| native_name             = {{{native_name|}}}
| native_name_lang        = {{{native_name_lang|}}}
| other_name              = {{{other_name|}}}
| settlement_type         = {{{settlement_type|}}}
| image_skyline           = {{{image_skyline|}}}
| image_caption           = {{{image_caption|}}}
| image_flag              = {{{image_flag|}}}
| image_seal              = {{{image_seal|}}}
| pushpin_map             = {{{pushpin_map|}}}
| pushpin_label_position  = {{{pushpin_label_position|}}}
| pushpin_map_caption     = {{{pushpin_map_caption|}}}
| coordinates             = {{{coordinates|}}}
| subdivision_type        = {{{subdivision_type|Country}}}
| subdivision_name        = {{{subdivision_name|}}}
| established_title       = {{{established_title|Established}}}
| established_date        = {{{established_date|}}}
| area_total_km2          = {{{area_total_km2|}}}
| population_as_of        = {{{population_as_of|}}}
| population_total        = {{{population_total|}}}
| population_density_km2  = {{{population_density_km2|auto}}}
| timezone                = {{{timezone|}}}
| utc_offset              = {{{utc_offset|}}}
| elevation_m             = {{{elevation_m|}}}
| postal_code_type        = {{{postal_code_type|Postal code}}}
| postal_code             = {{{postal_code|}}}
| website                 = {{{website|}}}
| footnotes               = {{{footnotes|}}}
}}

Parameters

  • name - The English name of the settlement.
  • official_name - The official name of the settlement in the local language.
  • native_name - The name of the settlement in the local or native language.
  • native_name_lang - ISO 639-2 code for the native language.
  • other_name - Any other name by which the settlement is known.
  • settlement_type - The type of settlement (e.g., city, town, village).
  • translit_lang1 - Transliterations for the settlement's name in other languages.
  • translit_lang1_type - The type of the first transliteration language, such as the specific dialect or script.
  • translit_lang1_info - The transliterated name of the settlement in the first additional language.
  • image_skyline - The filename of an image showing the skyline of the settlement.
  • imagesize - The width of the skyline image in pixels, typically 250px.
  • image_caption - A caption for the skyline image, describing what it shows.
  • image_flag - The filename of an image of the settlement's flag.
  • flag_size - The width of the flag image in pixels, usually around 120px.
  • image_seal - The filename of an image of the settlement's seal.
  • seal_size - The width of the seal image in pixels.
  • image_map - The filename of a map showing the location of the settlement.
  • mapsize - The width of the map image in pixels.
  • map_caption - A caption for the map, typically describing its content or the area it covers.
  • coordinates - The geographical coordinates of the settlement, usually in the format Lua error in Module:Coordinates at line 492: attempt to index field 'wikibase' (a nil value)..
  • subdivision_type - The type of the top-level administrative subdivision, such as "Country."
  • subdivision_name - The name of the top-level administrative subdivision, like the country name.
  • subdivision_type1 - The type of the next lower administrative subdivision, e.g., "State" or "Province."
  • subdivision_name1 - The name of the aforementioned administrative subdivision.
  • established_title - A descriptor for the date of establishment, like "Founded."
  • established_date - The date or year the settlement was established.
  • area_total_km2 - The total area of the settlement in square kilometers.
  • population_as_of - The year the population data was recorded.
  • population_total - The total population of the settlement.
  • population_density_km2 - The population density per square kilometer, usually auto-calculated.
  • timezone - The time zone in which the settlement is located.
  • utc_offset - The UTC offset for the settlement's standard time zone.
  • timezone_DST - The time zone during Daylight Saving Time, if applicable.
  • utc_offset_DST - The UTC offset during Daylight Saving Time.
  • postal_code_type - Describes the type of postal code used, such as "ZIP Code" or "Postal Code."
  • postal_code - The postal code or codes for the settlement.
  • area_code - The telephone area code or codes for the settlement.
  • website - The official website of the settlement, formatted as {{URL|example.com|optional display text}}.

Include information on additional parameters like images, maps, population details, time zones, etc.

Example

Here is an example of how to use the template:

{{{{Infobox Constituent Country
| name                    = Sample Town
| official_name           = Sample Official Name
| native_name             = Native Name
| native_name_lang        = fr
| other_name              = Alternative Name
| settlement_type         = Town
| translit_lang1          = Other
| translit_lang1_type     = French
| translit_lang1_info     = Sample French Transliteration
| image_skyline           = SampleSkyline.jpg
| imagesize               = 250px
| image_caption           = Skyline of Sample Town
| image_flag              = SampleFlag.png
| flag_size               = 120px
| image_seal              = SampleSeal.png
| seal_size               = 100px
| image_map               = SampleLocationMap.png
| mapsize                 = 250px
| map_caption             = Location of Sample Town within Komania
| coordinates             = {{Coord|12.345|67.890|display=inline,title}}
| subdivision_type        = Country
| subdivision_name        = Komania
| subdivision_type1       = Region
| subdivision_name1       = Sample Region
| established_title       = Established
| established_date        = 1800
| area_total_km2          = 100.5
| population_as_of        = 2021
| population_total        = 50000
| population_density_km2  = auto
| timezone                = CET
| utc_offset              = +1
| timezone_DST            = CEST
| utc_offset_DST          = +2
| postal_code_type        = Postal code
| postal_code             = 12345
| area_code               = 123
| website                 = {{URL|www.sampletown.km}}
}}}}

See also