Template:Infobox kommune
This template is a customized wrapper for {{Infobox settlement}} and as such included in Category:Templates calling Infobox settlement. Any field from {{Infobox settlement}} can work so long as it is added to this template first. It will also emit the same hCard and Geo microformats as {{Infobox settlement}} . Questions? Just ask here or over at Template talk:Infobox settlement. |
This template should be used for current municipalities in Norway as well as for former municipalities in Norway. To set the options for former municipalities, set the "former" option to "yes".
Usage
{{Infobox kommune
| name = Primary name
| herad = Default is "kommune" in title, type "yes" if you want "herad" instead of "kommune"
| former = Leave blank for current municipalities, type "yes" if you want to represent a former municipality
| native_name = Name in second or third official language such as Sami and/or Kven
| native_name_lang = Use the 2 or 3 digit ISO code for languages
| other_name = Other unofficial name that is commonly used
| former_name = Former name (also former_name1 and former_name2 if there are more former names/spellings)
| nickname = Popular nickname(s)
| image_skyline = The name of the image file of an optional skyline image. Don't include "Image:"
| image_caption = Caption for the skyline image
| image_alt = Alternative text for the skyline image
| idnumber = The municipal id number
| county = The name of the county. The field is automatically linked in the infobox, and should not be linked here
| district = Name of the district or traditional region
| capital = The name of the administrative center
| established = Year the municipality was established
| preceded = Name of municipality that preceded this one. Type "none" for municipalities created in 1838 by the formannskapsdistrikt law.
| disestablished = Year the municipality was dissolved ''(for former municipalities only - leave blank otherwise)''
| succeeded = Name of succeeding municipality ''(for former municipalities only - leave blank otherwise)''
| demonym = Norwegian [[Denonym]] (if only one)
| demonyms = Norwegian [[Denonym]]s (if more than one)
| language = Official language (enter "Bokmål", "Nynorsk", or "Neutral"), they will be automatically linked
| sami_language = Official Sami language for the municipality (if one has been designated)
| coatofarms = Image file of the for the coat of arms (don't include "File:"), if left blank, the file will be automatically linked if the media exists
| flag = Image file of the for the flag (don't include "File:")
| webpage = The address of the municipality's website
| mayor = Current mayor
| mayor_party = Current mayor's political party (link it and abbreviate it)
| mayor_as_of = The year the mayor was elected. Links to separate years should not be linked per [[WP:CONTEXT#Dates]]
| area_rank = The rank of the municipal area out of all Norwegian municipalities
| area_total_km2 = The total area in square kilometers
| area_land_km2 = The amount of area consisting of land in square kilometers
| area_water_km2 = The amount of area consisting of water in square kilometers
| area_water_percent = The percentage of the total area covered by water
| population_as_of = Year of update to the population. Links to separate years should not be linked per [[WP:CONTEXT#Dates]].
| population_rank = The rank of the municipality by population of all Norwegian municipalities
| population_total = The total number of inhabitants
| population_density_km2 = Density of the population per km². Do not use "," (or use "auto" to have it automatically calculate)
| population_increase = The increase or decrease in population over the last ten years.
| coordinates = Latitude and longitude. Use {{tl|Coord}}.
}}
Example
Bergen Municipality
Bergen kommune | |
---|---|
Coordinates: 60°22′16″N 5°24′30″E / 60.37111°N 5.40833°E | |
Country | Norway |
County | Hordaland |
District | Midhordland |
Established | 1 Jan 1838 |
Administrative centre | Bergen |
Government | |
• Mayor (2007) | Gunnar Bakke (FrP) |
Area | |
• Total | 465 km2 (180 sq mi) |
• Land | 445 km2 (172 sq mi) |
• Water | 20 km2 (8 sq mi) 4.3% |
• Rank | #215 in Norway |
Population (2007) | |
• Total | 247,746 |
• Rank | #2 in Norway |
• Density | 530/km2 (1,400/sq mi) |
• Change (10 years) | +8% |
Demonyms | Bergenser/Bergensar[1] |
Official language | |
• Norwegian form | Neutral |
Time zone | UTC+01:00 (CET) |
• Summer (DST) | UTC+02:00 (CEST) |
ISO 3166 code | NO-1201[3] |
Website | Official website |
{{Infobox kommune
| name = Bergen
| native_name =
| native_name_lang =
| other_name =
| former_name =
| image_skyline = Fløyen view on Bergen.jpg
| image_caption = The city centre as seen from [[Fløyen]].
| image_alt =
| idnumber = 1201
| county = Hordaland
| district = Midhordland
| capital = Bergen
| established = 1 Jan 1838
| demonyms = Bergenser/Bergensar
| language = Neutral
| coatofarms = Bergen komm.svg
| flag =
| webpage = www.bergen.kommune.no
| mayor = [[Gunnar Bakke]]
| mayor_party = [[Progress Party (Norway)|FrP]]
| mayor_as_of = 2007
| area_rank = 215
| area_total_km2 = 465
| area_land_km2 = 445
| area_water_km2 = 20
| area_water_percent = 4.3
| population_as_of = 2007
| population_rank = 2
| population_total = 247746
| population_density_km2 = auto
| population_increase = 8.0
| coordinates = {{coord|60|22|16|N|5|24|30|E|display=inline, title|region:NO}}
}}
- Example of references for this example
- ^ "Navn på steder og personer: Innbyggjarnamn" (in Norwegian). Språkrådet.
- ^ "Forskrift om målvedtak i kommunar og fylkeskommunar" (in Norwegian). Lovdata.no.
- ^ Bolstad, Erik; Thorsnæs, Geir, eds. (2023-01-26). "Kommunenummer". Store norske leksikon (in Norwegian). Kunnskapsforlaget.
Blank template
{{Infobox kommune
| name =
| herad =
| former =
| native_name =
| native_name_lang =
| other_name =
| former_name =
| image_skyline =
| image_caption =
| image_alt =
| idnumber =
| county =
| district =
| capital =
| established =
| preceded =
| disestablished =
| succeeded =
| demonym =
| language =
| sami_language =
| coatofarms =
| flag =
| webpage =
| mayor =
| mayor_party =
| mayor_as_of =
| area_rank =
| area_total_km2 =
| area_land_km2 =
| area_water_km2 =
| area_water_percent =
| population_as_of =
| population_rank =
| population_total =
| population_density_km2 =
| population_increase =
| coordinates = {{coord||display=title,inline|region:NO}}
}}
Tracking categories
There are tracking categories for maintenance of articles using this template. An error message will be displayed during previews if any of these errors are present.
- Category:Pages using infobox kommune with unknown parameters (0)
- Category:Pages using infobox kommune with missing parameters (1)
Microformat
The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.
Sub-templates
If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.
If it has a URL, use {{URL}}.
Please do not remove instances of these sub-templates.
Classes
hCard uses HTML classes including:
- adr
- agent
- category
- county-name
- extended-address
- fn
- label
- locality
- nickname
- note
- org
- region
- street-address
- uid
- url
- vcard
Geo is produced by calling {{coord}}, and uses HTML classes:
- geo
- latitude
- longitude
Please do not rename or remove these classes nor collapse nested elements which use them.
Precision
When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name=
parameter.