Template:Infobox islands: Difference between revisions
(add mapframe-wikidata setting to show red outline, per talk page. Also fix bad pushpin_map test in mapframe code) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 02:53, 15 February 2024
Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value). |
Warning | This template is used on approximately 9,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
File:Lua-Logo.svg | This template uses Lua: |
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.
This template is intended to be used as an infobox for an island, islet or an archipelago. For islands or archipelagos which are disputed, use |disputed=yes
Blank infobox
{{{local_name}}} Nickname: {{{nickname}}} | |
---|---|
[[File:{{{image}}}|{{{image_size}}}|alt={{{image_alt}}}|upright=1.16]] | |
[[File:{{{image_map}}}|{{{map_size}}}|alt={{{map_alt}}}|upright=1.16]] | |
Lua error in Module:Location_map at line 411: Malformed coordinates value. | |
Etymology | {{{etymology}}} |
Geography | |
Location | {{{location}}} |
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
OS grid reference | {{{grid_reference}}} |
Type | {{{island_type}}} |
Archipelago | {{{archipelago}}} |
Adjacent to | {{{waterbody}}} |
Total islands | {{{total_islands}}} |
Major islands | {{{major_islands}}} |
Area | {{{area_km2}}} km2 ({{{area_sqmi}}} sq mi){{{area_footnotes}}} |
Area rank | {{{rank}}} |
Length | {{{length_km}}} km ({{{length_mi}}} mi){{{length_footnotes}}} |
Width | 123–123 km (76–76 mi){{{width_footnotes}}} |
Coastline | {{{coastline_km}}} km ({{{coastline_mi}}} mi){{{coastline_footnotes}}} |
Highest elevation | {{{elevation_m}}} m ({{{elevation_ft}}} ft){{{elevation_footnotes}}} |
Highest point | {{{highest_mount}}} |
Administration | |
{{{country}}} | |
Administered under the {{{treaty_system}}} | |
{{{country_admin_divisions_title}}} | {{{country_admin_divisions}}} |
{{{country_admin_divisions_title_1}}} | {{{country_admin_divisions_1}}} |
{{{country_admin_divisions_title_2}}} | {{{country_admin_divisions_2}}} |
{{{country_admin_divisions_title_3}}} | {{{country_admin_divisions_3}}} |
{{{country_admin_divisions_title_4}}} | {{{country_admin_divisions_4}}} |
Capital and largest {{{country_largest_city_type}}} | {{{country_capital_and_largest_city}}} (pop. {{{country_largest_city_population}}}) |
{{{country_leader_title}}} | {{{country_leader_name}}} |
Area covered | {{{country_area_km2}}} km2 ({{{country_area_sqmi}}} sq mi){{{country_area}}} |
{{{country1}}} | |
{{{country1_admin_divisions_title}}} | {{{country1_admin_divisions}}} |
{{{country1_admin_divisions_title_1}}} | {{{country1_admin_divisions_1}}} |
Capital and largest {{{country1_largest_city_type}}} | {{{country1_capital_and_largest_city}}} (pop. {{{country1_largest_city_population}}}) |
{{{country1_leader_title}}} | {{{country1_leader_name}}} |
Area covered | {{{country1_area_km2}}} km2 ({{{country1_area_sqmi}}} sq mi){{{country1_area}}} |
{{{country8}}} | |
{{{country8_admin_divisions_title}}} | {{{country8_admin_divisions}}} |
{{{country8_admin_divisions_title_1}}} | {{{country8_admin_divisions_1}}} |
Capital and largest {{{country8_largest_city_type}}} | {{{country8_capital_and_largest_city}}} (pop. {{{country8_largest_city_population}}}) |
{{{country8_leader_title}}} | {{{country8_leader_name}}} |
Area covered | {{{country8_area_km2}}} km2 ({{{country8_area_sqmi}}} sq mi){{{country8_area}}} |
Demographics | |
Demonym | {{{demonym}}} |
Population | {{{population}}} ({{{population_as_of}}}){{{population_footnotes}}} |
Population rank | {{{population_rank}}} out of {{{population_rank_max}}} |
Pop. density | {{{density_km2}}}/km2 ({{{density_sqmi}}}/sq mi){{{density_footnotes}}} |
Pop. density rank | {{{density_rank}}} |
Languages | {{{languages}}} |
Ethnic groups | {{{ethnic_groups}}} |
Additional information | |
Time zones |
|
• Summer (DST) |
|
{{{postal_code_type}}} | {{{postal_code}}} |
{{{area_code_type}}} | {{{area_code}}} |
Vehicle registration | {{{registration_plate}}} |
{{{iso_code_type}}} | {{{iso_code}}} |
Official website | {{{website}}} |
{{{additional_info}}} | |
{{{misc}}} {{{module}}} | |
{{{footnotes}}} |
Metric units
<syntaxhighlight lang="wikitext" style="overflow:auto">
Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value). |
</syntaxhighlight>
Non-metric units
<syntaxhighlight lang="wikitext" style="overflow:auto">
Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value). |
</syntaxhighlight>
Width range
To express a width range, replace |width_km=
or |width_m=
or |width_mi=
or |width_ft=
with one of the following:
<syntaxhighlight lang="wikitext">
| width_min_km =
| width_max_km =
</syntaxhighlight>
or
<syntaxhighlight lang="wikitext">
| width_min_m =
| width_max_m =
</syntaxhighlight>
or
<syntaxhighlight lang="wikitext">
| width_min_mi =
| width_max_mi =
</syntaxhighlight>
or
<syntaxhighlight lang="wikitext">
| width_min_ft =
| width_max_ft =
</syntaxhighlight>
Parameters
Mandatory
- name = the official name (without the word island)
- location = the sea in which the island is located
- country = where the island is located. Either specify the standard three-letter ISO 3166-1 alpha-3 code for the country, or a name by which the country is commonly known (e.g., "US", "South Korea", "Democratic People's Republic of Korea"). If the island is shared, then use "country 1" and "country 2" and list them alphabetically.
Optional
- native_name = only when the common name is different from the native name. To remove the "native name" prefix, use local_name instead.
- native_name_link = link to the article about the language used for the native name.
- sobriquet (or nickname) = for a well-known sobriquet or nickname
- image = locator/satellite/other map image (without the prefix "File:" or "Image:")
- image_caption = caption for the image
- image_size = size of the image in pixels (e.g., "100px")
- image_alt = alt text for readers who cannot see the image; see Wikipedia:Alternative text for images for more information
- image_map = locator/satellite/other map image (without the prefix "File:" or "Image:")
- image_map_caption = caption for the image
- image_map_size = size of the image in pixels (e.g., "100px")
- image_map_alt = alt text for readers who cannot see the image; see Wikipedia:Alternative text for images for more information
- pushpin_map = the name of a location map as per Template:Location map (e.g. Indonesia or Russia)
- pushpin_map_alt = alt text for the map, primarily for visually impaired readers
- pushpin_map_caption = a map caption if desired
- pushpin_relief = whether to use a relief map if one is available
- pushpin_map_width = the width of the map
- coordinates = coordinates in the {{Coord}} format (
type:isle
is added by default, unless anothertype
is specified) - Grid_Reference = Ordnance survey grid ref (UK only)
- archipelago = the name of the group of islands the island belongs to
- total_islands = total number of islands (for archipelagos only)
- major_islands = names of the major islands (for archipelagos only)
- area_km2 or area_sqmi or area_m2 or area_sqft or area_acre or area_ha = the area in either square kilometres or square miles or square metres or square feet or hectares or acres without using {{convert}}; the conversion will be done automatically
- area_footnotes = references for area values using
<ref>...</ref>
format.
- area_footnotes = references for area values using
- rank = the island's rank among other islands in the world in terms of size (1st being the largest island), as indicated in "List of islands by area"
- length_km or length_mi or length_m or length_ft = the length in either kilometres or miles or metres or feet without using {{convert}}; the conversion will be done automatically
- length_footnotes = references for length values using
<ref>...</ref>
format.
- length_footnotes = references for length values using
- width_km or width_mi or width_m or width_ft = the width in either kilometres or miles or metres or feet without using {{convert}}; the conversion will be done automatically
- width_footnotes = references for width values using
<ref>...</ref>
format.
- width_footnotes = references for width values using
- coastline_km or coastline_mi or coastline_m or coastline_ft = the length of the coastline in either kilometres or miles or metres or feet without using {{convert}}; the conversion will be done automatically
- coastline_footnotes = references for coastline values using
<ref>...</ref>
format.
- coastline_footnotes = references for coastline values using
- elevation_m or elevation_ft = the height of the highest point in either metres or feet without using {{convert}}; the conversion will be done automatically
- elevation_footnotes = references for elevation values using
<ref>...</ref>
format.
- elevation_footnotes = references for elevation values using
- highest_mount = name of the highest point on the island, if any
- country_admin_divisions_title = title for the administrative divisions
- country_admin_divisions = the administrative divisions that govern the island
- country_admin_divisions_title_1 = (country admin_divisions title 1)
- country_admin_divisions_1 = (country admin divisions 1)
- country_admin_divisions_title_2 = (country admin divisions title 2)
- country_admin_divisions_2 = (country admin divisions 2)
- country_capital_type = the capital's type of settlement (default value is "city")
- country_capital
- country_largest_city_type = the largest city's type of settlement (default value is "settlement")
- country_largest_city
- country_capital_and_largest_city
- country_largest_city_population
- country_leader_title
- country_leader_name
- country_area_km2 or country_area_sqmi or country_area_m2 or country_area_sqft or country_area_acre or country_area_ha = the area in either square kilometres or square miles or square metres or square feet or hectares or acres without using {{convert}}; the conversion will be done automatically
- country1 = (see country)
- country1_admin_divisions_title = (country_admin_divisions_title)
- country1_admin_divisions = (country_admin_divisions)
- country1_capital_type = (country_capital_type)
- country1_capital = (country_capital)
- country1_largest_city type = (country_largest_city_type)
- country1_largest_city = (country_largest_city)
- country1_capital_and_largest_city = (country_capital_and_largest_city)
- country1_largest_city_population = (country_largest_city_population)
- country1_leader_title
- country1_leader_name
- country1_area_km2 or country1_area_sqmi or country1_area_m2 or country1_area_sqft or country1_area_acre or country1_area_ha = the area in either square kilometres or square miles or square metres or square feet or hectares or acres without using {{convert}}; the conversion will be done automatically
- country2 = (see country)
- country2_admin_divisions_title = (country_admin_divisions_title)
- country2_admin_divisions = (country_admin_divisions)
- country2_capital_type = (country_capital_type)
- country2_capital = (country_capital)
- country2_largest_city_type = (country_largest_city_type)
- country2_largest_city = (country_largest_city)
- country2_capital_and_largest_city = (country_capital_and_largest_city)
- country2_largest_city_population = (country_largest_city_population)
- country2_leader_title
- country2_leader_name
- country2_area_km2 or country2_area_sqmi or country2_area_m2 or country2_area_sqft or country2_area_acre or country2_area_ha = the area in either square kilometres or square miles or square metres or square feet or hectares or acres without using {{convert}}; the conversion will be done automatically
- ...
- country8 = (see country)
- country8_admin_divisions_title = (country_admin_divisions_title)
- country8_admin_divisions = (country_admin_divisions)
- country8_capital_type = (country_capital_type)
- country8_capital = (country_capital)
- country8_largest_city_type = (country_largest_city_type)
- country8_largest_city = (country_largest_city)
- country8_capital_and_largest_city = (country_capital_and_largest_city)
- country8_largest_city_population = (country_largest_city_population)
- country8_leader_title
- country8_leader_name
- country8_area_km2 or country8_area_sqmi or country8_area_m2 or country8_area_sqft or country8_area_acre or country8_area_ha = the area in either square kilometres or square miles or square metres or square feet or hectares or acres without using {{convert}}; the conversion will be done automatically
- demonym = the name the people of the island are called that is based on location
- population = the size of the island's population
- population_as_of = the year when the population census took place
- population_footnotes = references for population values using
<ref>...</ref>
format.
- population_footnotes = references for population values using
- density_km2 or density_sqmi = the population density of the island expressed in either persons per square kilometres or persons per square miles without using {{convert}}; the conversion will be done automatically. For example, if the number is 85, the output for
density km2
is 85/km2 (220/sq mi).- density_footnotes = references for density values using
<ref>...</ref>
format.
- density_footnotes = references for density values using
- languages = list of native languages spoken by the island's population
- ethnic_groups = list the major ethnic groups making up the island's population
- timezone1 =
- utc_offset1 =
- timezone1_DST =
- utc_offset1_DST =
- timezone2 =
- utc_offset2 =
- timezone2_DST =
- utc_offset2_DST =
- website =
- additional_info = a space for additional information at the bottom of the infobox
- footnotes =
Location maps
The map
parameter can be used to display a map with a location marker.
Lua error in Module:Location_map at line 411: Malformed coordinates value. | |
Geography | |
---|---|
Location | Pacific Ocean |
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
Administration | |
United States |
<syntaxhighlight lang="wikitext" style="overflow:auto; font-size: 90%;">
Lua error in Module:Location_map at line 411: Malformed coordinates value. | |
Geography | |
---|---|
Location | Pacific Ocean |
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
Administration | |
United States |
</syntaxhighlight>
The pushpin_map_caption
parameter can be used to display a caption below the map. A width of 220px is generally recommended but this width should be reduced for maps that are taller than they are wide. Use pushpin_map_width=220
and not pushpin_map_width=220px
.
Disputed territory
If the territory in question is disputed, use |disputed=yes
, which will add an additional header to show which other countries are making a claim.
Disputed islands | |
---|---|
File:Location-of-Liancourt-rocks-en.png | |
File:Liancourt Rocks Map.svg | |
Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value). | |
Other names | Dokdo, Takeshima |
Geography | |
Location | Sea of Japan (East Sea) |
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
Total islands | 90 (37 permanent land) |
Major islands | East Islet, West Islet |
Administration | |
South Korea | |
County | Ulleung County |
Claimed by | |
Japan | |
Town | Okinoshima |
South Korea | |
County | Ulleung County |
Demographics | |
Population | 2 + 43 support personnel |
Ethnic groups | Korean |
<syntaxhighlight lang="wikitext">
Disputed islands | |
---|---|
File:Location-of-Liancourt-rocks-en.png | |
File:Liancourt Rocks Map.svg | |
Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value). | |
Other names | Dokdo, Takeshima |
Geography | |
Location | Sea of Japan (East Sea) |
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
Total islands | 90 (37 permanent land) |
Major islands | East Islet, West Islet |
Administration | |
South Korea | |
County | Ulleung County |
Claimed by | |
Japan | |
Town | Okinoshima |
South Korea | |
County | Ulleung County |
Demographics | |
Population | 2 + 43 support personnel |
Ethnic groups | Korean |
</syntaxhighlight>
Microformat
This template generates an hCard microformat. More information can be found here.
Tracking categories
- Category:Articles using infobox islands with additional info (0)
- Category:Pages using infobox islands with unknown parameters (0)
- Category:Pages using infobox islands with conflicting parameters (0)
See also
- Supporting templates
- Pages with script errors
- Pages with non-numeric formatnum arguments
- Infobox templates
- Pages with broken file links
- Lua-based templates
- Templates using data from Wikidata
- Pages using infobox islands with the embed parameter
- Place infobox templates
- Templates with coordinates fields
- Island templates
- Infobox templates with module parameter
- Embeddable templates
- Infobox templates using Wikidata
- Templates that add a tracking category