模板:Infobox German municipality/sandbox
某德國市鎮 | |
---|---|
德國市鎮 | |
國家 | 德國 |
時區 | CET(UTC+01:00) |
• 夏時制 | CEST(UTC+02:00) |
這是Template:Infobox German municipality(差異)的沙盒。 |
本模板是以 {{Infobox settlement}} 為基礎的定製資訊框。 |
此模板使用Lua語言: |
Infobox for cities, towns and municipalities in Germany
編輯New infobox that combines features of de:Vorlage:Infobox Ort in Deutschland and Template:Infobox settlement, plus a few extra things.
Syntax - German parameters
編輯Also see English parameters in next section, or see: instructions for full syntax
List of basic German-name parameters (skip any unneeded fields):
{{Infobox German place | Name = | German_name = | Art = | image_photo = | imagesize = | image_caption = | Wappen = | image_flag = | coordinates = {{Coord}} | Karte = | Lageplan = | Lageplanbeschreibung = | Bundesland = required parameter | Regierungsbezirk = | Landkreis = | Kreis = | Amt = | Gemeindeverwaltungsverband = | Samtgemeinde = | Verbandsgemeinde = | Verwaltungsgemeinschaft = | Verwaltungsverband = | Höhe = elevation | elevationmax = "X-Xmax m (y-ymax ft)" Xmax is optional elevationmax | Fläche = | area_metro = | pop_metro = | PLZ = | PLZ-alt = | Vorwahl = | Kfz = | Gemeindeschlüssel = | NUTS = | LOCODE = | Gliederung = | Website = | Bürgermeister = | Bürgermeistertitel = | Partei = | ruling_party1 = | ruling_party2 = | ruling_party3 = | year = | _noautocat = }}
Syntax - English parameters
編輯Click here to see instructions for full syntax information
List of English-name alias parameters (skip any unneeded fields):
{{Infobox German place | name = (or 'Name') English name of the place | German_name = German name of the place | image_photo = image file for top image (omit "Image:") | imagesize = width of image_photo (default 268px) | image_caption = phrase shown beneath top image | image_coa = (or 'Wappen') image file of town seal | image_flag = image file of town flag | coordinates = latitude and longitude; use {{Coord}} | Karte = | image_plan = (or 'Lageplan') image file of bottom closeup map | plantext = (or 'Lageplanbeschreibung') heading above bottom map | state = (or 'Bundesland') required parameter | region = (or 'Regierungsbezirk') optional region name | district = (or 'Landkreis' or 'Kreis') name of district | borough = 'Stadtkreis' or 'Bezirk', borough if subdivision | Amt = | Gemeindeverwaltungsverband = | Samtgemeinde = | Verbandsgemeinde = | Verwaltungsgemeinschaft = | Verwaltungsverband = | type = type of subdivision, e.g. borough or quarter (locality) | City = city, if subdivision | Town = town, if subdivision | elevation = (or 'Höhe') meters above sea-level (converts to ft) | elevationmax = "X-Xmax m (y-ymax ft)" Xmax is optional elevationmax | area = (or 'Fläche') area of location in square km | area_metro = area of metro part in square km | pop_metro = population of metro part (without commas) | postal_code = (or 'PLZ') postal or ZIP codes | PLZ-alt = (not displayed) | area_code = (or 'Vorwahl') telephone area code | licence = (or 'Kfz' or 'license') licence plate code | Gemeindeschlüssel = | NUTS = (not displayed) | LOCODE = (not displayed) | divisions = (or 'Gliederung') divisions, such as "5 boroughs" | mayor = (or 'Bürgermeister') name of leader | Bürgermeistertitel = official title of leader | party = (or 'Partei') political party of leader | ruling_party1 = | ruling_party2 = | ruling_party3 = | year = year founded | website = (or 'Website') URL of location website | _noautocat = }}
Important features
編輯Since de:Vorlage:Infobox Gemeinde in Deutschland is being introduced to many German locations in the German Wikipedia, the variable fields here use the same names to make it easier for editors to import infobox information from the German Wikipedia to the English one.
For many fields, German values can be given (i.e. without translation to English) and will be displayed in English.
- e.g., By entering "Bundesland = Bayern", the infobox will display "State: Bavaria"
The variables with English names relate to features that do not exist in Infobox Ort in Deutschland.
Major new features, compared to {{Infobox Town DE}}
:
- No longer need a location map for each entry. By entering the geographical co-ordinates, a map is automatically displayed.
- Population data automatically transcluded from {{Population Germany}}.
- Area, population density and elevation automatically displayed in both metric and imperial units
- Auto-categorisation of entries, depending on values entered
- Optional 2nd map (Lageplan) at bottom, to display location in more detail.
Major new features, compared to de:Vorlage:Infobox Ort in Deutschland:
- Can give year of city foundation: places article in "Category: xxxx establishments"
- Can display representative photo of location (a feature of Infobox Town DE, which, for some reason, was never used) (e.g. see: Cologne)
- In addition to displaying the political party of the mayor/lord mayor/etc., it is also possible to display the ruling parties. Currently, a coalition of up to 3 parties is supported - if more are needed, please report it on the template talk page. (e.g. see: Braunschweig).
TemplateData
編輯沒有描述。
參數 | 描述 | 類型 | 狀態 | |
---|---|---|---|---|
Name | name Name | Common English name of location. Use only if name is different from article name | 字串 | 非必填 |
German name | German_name | German name of location. Use only if name is different from English name. | 字串 | 非必填 |
type | type Art | Needed. Type of location. Also used for article categorisation. Accepts German and English names. Accepted values: * Municipality / Gemeinde - default * Town / Stadt - if the municipality has town-rights (ie. it appears on this list) * City - towns with more than 100,000 people (ie. it appears on this list) * Amt / Gemeindeverwaltungsverband / Samtgemeinde / Verbandsgemeinde / Verwaltungsgemeinschaft / Verwaltungsverband - collective municipality * Ortsteil / Stadtteil / Borough / Quarter etc. - subdivision of a city, town or municipality | 字串 | 非必填 |
City or Town or Municipality | City Town Municipality | Used for places that are subdivisions of cities, towns or municipalities. Use the field name that corresponds with the higher administrative unit (e.g. "City = Berlin" for parts of Berlin, "Town = Memmingen" for parts of Memmingen, "Municipality = Sassenburg" for parts of Sassenburg). | 字串 | 非必填 |
borough | borough | 沒有描述 | 字串 | 非必填 |
Image photo | image_photo image_skyline | The top image, a representative photo of the location: skyline, notable landmark, etc. The image used should be wider than it is tall, to keep the infobox as compact as possible. No wikilinks. | 字串 | 非必填 |
Imagesize | imagesize | Avoid. Use only when it is necessary to reduce the size of the above image from its default value of 268px. Tall images could be reduced, such as 220px, to balance the infobox appearance. | 字串 | 非必填 |
Image caption | image_caption | Caption underneath representative image. Keep as short as possible. Allows wikilinks | 字串 | 非必填 |
Wappen or image_coa | image_coa Wappen | Coat of arms image. No wikilinks. Leave blank if image is unknown or unavailable. If the location simply does not have a coat of arms, put: Wappen = none. | 字串 | 非必填 |
Bundesland or state | state Bundesland | Needed. Federal state to which the location belongs. No wikilinks. Accepts English and German names, translates many names to English. | 字串 | 必填 |
Regierungsbezirk or region | region Regierungsbezirk regbzk | Name of the administrative region (Regierungsbezirk) that the location belongs to. Not used for all states. Regierungsbezirk articles on the English wiki are named "xxxx (region)", so only the name of the region is needed here (without wikilinks) and the infobox should link to the correct article. | 字串 | 非必填 |
Kreis / Landkreis or district | district Kreis Landkreis | Needed. District that the location belongs to. If the location is an urban district, say Kreis = urban. District articles on the English wiki are named "xxxx (district)" or without the "(district)" part. For most cases, only the name of the district (xxxx) is needed here (without wikilinks) and the infobox should link to the correct article. | 字串 | 非必填 |
Amt, Gemeindeverwaltungsverband, Samtgemeinde, Verbandsgemeinde, Verwaltungsgemeinschaft, Verwaltungsverband | Amt Gemeindeverwaltungsverband Samtgemeinde Verbandsgemeinde Verwaltungsgemeinschaft Verwaltungsverband | Some locations belong to a collective municipality of some sort. Fill in the corresponding field and delete all unused fields. | 字串 | 非必填 |
Gliederung or divisions | divisions Gliederung | Local subdivisions. When copying towninfo directly from the German wiki, please translate content of this field to English and remove any red links. | 字串 | 非必填 |
Bürgermeister or mayor | mayor Bürgermeister | Name of the mayor/lord mayor/etc. Wikilinks automatically generated if the entry exists. | 字串 | 非必填 |
Bürgermeistertitel | Bürgermeistertitel | Title: Mayor / Bürgermeister, Lord Mayor / Oberbürgermeister, etc. Use wikilinks only if linking to a specific article (eg. Lord Mayor). Default is "Mayor" | 字串 | 非必填 |
Partei or party | party Partei | Political party of Mayor/Lord Mayor/etc. Use standard party abbreviations (CDU, SPD, Green, FDP, PDS, FWG, etc.) and the correct wikilinks should be generated (if not, leave a comment on the template talk page). For independent politicians, say Partei=ind | 字串 | 非必填 |
ruling_party1, ruling_party2, ruling_party3 | ruling_party1 ruling_party2 ruling_party3 | Party or parties that govern this location. Fill in this field in the same way as the Partei field. | 字串 | 非必填 |
Fläche or area | area Fläche | Area in square kilometres. Will automatically calculate value in square miles. Enter value without spaces or commas, otherwise an error message will be displayed in the area field. | 字串 | 非必填 |
area_metro | area_metro | Are of metropolitan area in square kilometres. Will automatically calculate value in square miles. Enter value without spaces or commas, otherwise an error message will be displayed in the area field. Only the bigger cities will have a need for this field. | 字串 | 非必填 |
Höhe or elevation | elevation Höhe | Elevation in metres. Will automatically calculate value in feet. For some entries, a range of elevation values is given in the German wiki. To prevent an error in the conversion to feet, any range values must use a simple minus sign instead of any other dash characters. Elevation ranges will not be converted to feet. | 字串 | 非必填 |
Gemeindeschlüssel | Gemeindeschlüssel key | The Gemeindeschlüssel is the code for the municipalities, cities, districts etc. as used by the German statistics offices. For municipalities and cities this is an 8-digit number, either formatted "XX X XX XXX" or unformatted. This infobox uses this code to retrieve the municipality population from a database, see {{Population Germany}}. The code is not displayed. It is required for independent municipalities and cities. For dependent areas and settlements (quarters, boroughs, villages) use the "Einwohner" or "population" field. | 字串 | 非必填 |
Einwohner or population | population Einwohner | Population. Don't use this for independent municipalities and cities, use the "Gemeindeschlüssel" field instead. If area is also given, population density will also be calculated. Enter value without spaces or commas, otherwise an error message will be displayed in the density field. | 字串 | 非必填 |
Stand | Stand population_as_of | Date for population value. Enter in YYYY-MM-DD format (eg. 2006-12-31) | 數值 | 非必填 |
Pop metro | pop_metro | Population of metropolitan area. Only the bigger cities will have a need for this field. | 數值 | 非必填 |
Pop urban | pop_urban | Population of urban area. Only the bigger cities will have a need for this field. | 數值 | 非必填 |
Pop ref | pop_ref | Source for population statistic(s). Needed to make it easier to update population values in the future. The German wiki does not use this field, but the earlier English template {{Infobox Town DE}} does. This field must use the <ref>-code, citing the document or website. When this field is filled in, you must add a references section at the end of the article if it does not already have one. (eg. with {{reflist}}) Citation examples: 1. Minimum requirement: pop_ref=<ref>[http://www.samplesite.de Population source]</ref> 2. Expanded syntax:<ref>{{cite web |title=Bevölkerung im Regierungsbezirk Köln |url=http://www.lds.nrw.de/statistik/datenangebot/Regionen/amtlichebevoelkerungszahlen/rp3_juni06.html |author=Landesamt für Datenverarbeitung und Statistik Nordrhein-Westfalen |accessdate=2007-04-25 |language=German}}</ref> 2. | 數值 | 非必填 |
Kfz or licence | licence Kfz | Car number plate code for the location (1-3 capital letters). | 字串 | 非必填 |
Vorwahl or area_code | area_code Vorwahl | Telephone area code. If various values are given, display as a simple range (if possible). Avoid descriptions of each code. | 數值 | 非必填 |
PLZ or postal_code | postal_code PLZ | [edit] Postal code. If various values are given, display as a simple range (if possible). Avoid descriptions of each code. | 數值 | 非必填 |
Year | year | Year of foundation, NOT the year of the first recorded mention of the location. | 數值 | 非必填 |
Website | website Website | Official website of the location. Trim displayed URL as much as possible. (eg. Website=[http://www.samplesite.de samplesite.de]) | 頁面名稱 | 非必填 |
Lageplan or image_plan | image_plan Lageplan | Zoomed-in map image displaying location within a region of Germany (e.g., a state or a Kreis), with optional width, plansize=265px. | 字串 | 非必填 |
Lageplanbeschreibung or plantext | plantext Lageplanbeschreibung | Caption for map image given by Lageplan. The template will attempt to automatically create a caption, using values given for other fields. If the caption does not match with the image, use this field to manually enter a caption. | 字串 | 非必填 |
Noautocat | _noautocat | Give a value of "yes" to prevent auto-categorisation. Used only on draft articles (i.e. in the User space) | 字串 | 非必填 |
image_flag | image_flag | Flag image. Plain file name, no wikilinks or size. | 不明 | 非必填 |
coordinates | coordinates | Use the {{coord}} template | 不明 | 非必填 |
Breitengrad | Breitengrad | 沒有描述 | 不明 | 非必填 |
year_of_first_mention | year_of_first_mention | year of the first recorded mention of the location. | 數值 | 非必填 |
pop_demonym | pop_demonym demonym | Demonym | 不明 | 非必填 |
footnotes | footnotes | 沒有描述 | 不明 | 非必填 |
dissolved | dissolved | If the administrative unit was disbanded: the date when it was disbanded | 不明 | 非必填 |
Microformat
編輯本模板產生的HTML記號包含了HCard 微格式,能夠讓電腦解析地點名稱和位置,具有可自動將文章分類至適當類別的功能。在HCard中有Geo微格式,能讓電腦分析經緯度資料,因此可在地圖上查詢,或下載至全球定位系統(GPS)裝置。關於微格式的更多使用資訊,請參閱維基百科的微格式專題。
hCard 使用以下的 HTML class:
adr
county-name
fn
label
locality
nickname
note
org
vcard
Geo由{{coord}}產生,並使用以下的HTML class:
geo
latitude
longtitude
請勿將這些class更名或刪除。
當指定經緯度數值時,請避免太過詳細。
Tracking categories
編輯- Category:Pages using infobox German location with unknown parameters(0)
- Category:Pages using infobox German location with an elevation range(0)
- Category:Pages using Template:DE metadata Wikidata without references(0)
- Category:Germany articles requiring maintenance(0)