{{{German_name or name_local}}}
{{{Name or name}}}

This is the {{main other}} meta-template.

This template helps other templates detect if they are on a main space (article) page or some "other" type of page.

Basic usage Edit

This template usually takes two parameters, like this:

{{main other | Article text | Other pages text }}

If the template is on a main space (article) page, it will return this:

Article text

If the template is on any other page, it will return this:

Article text

A typical usage case could be to make it so that a template only adds a category when on an article. Thus not adding other pages that just show the template. Like this:

{{main other | [[Category:Some article maintenance category]] }}

Or to warn that a template should not be used on other pages:

{{main other | | This template should only be used in articles. }}

Note that in the first case above the "other" parameter was not used, and in the second example the "main" parameter was left empty.

Demospace Edit

For testing and demonstration purposes this template can take a parameter named demospace.

  • If it has the value main it returns the article text.
  • It if has the value other or any other value such as the name of some other namespace it returns the other pages text.
  • If the parameter is empty or undefined, the actual page type determines the result.

Like this:

{{main other 
| Article text 
| Other pages text 
| demospace = main

No matter on what kind of page the code above is used it will return this:

Article text

You can make it so your template also understands the demospace parameter. That means you can demonstrate the different appearances of your template in the documentation for your template. Then do like this:

{{main other 
| Article text 
| Other pages text 
| demospace = {{{demospace|}}}

Technical details Edit

This template detects article "Talk:" pages as type other.

This template works like {{main talk other}}, for more examples and technical details see full documentation there.

See also Edit

Easy to use namespace-detection templates:

More complex namespace-detection templates:

Pagename-handling and detection templates:

  • {{basepage subpage}} – For detecting if on a basepage, subpage or subsubpage.
  • {{pgn}} – Can take apart and put together pagenames in several ways.
  • {{if pagename}} – For pattern matching on the pagename.
  • {{if pagename multi}} – For pattern matching on the pagename, has input reuse.
  • {{IP-user other}} – For detecting IP-user pages.
  • {{IP-talk}} - Return: 1) IP user talk page 2) registered user talk page 3) not user talk page.

Technical stuff:

id:Templat:Main other mk:Шаблон:Main other mn:Загвар:Main other ja:Template:Main other ro:Format:Main other sl:Predloga:Main other uk:Шаблон:Main other ur:سانچہ:Main other zh:Template:Main other{{{image_caption}}}

Coordinates missing!
Coordinates 50°N 11°E / 50°N 11°E / 50; 11Coordinates: 50°N 11°E / 50°N 11°E / 50; 11
Country Germany
State {{{Bundesland or state}}}
Admin. region {{{Regierungsbezirk or region or regbzk}}}
District {{{Kreis or district}}}
Municipal assoc. {{{Amt}}}
Municipal assoc. {{{Gemeindeverwaltungsverband}}}   
Municipal assoc. {{{Samtgemeinde}}}
Municipal assoc. {{{Verbandsgemeinde}}}
Municipal assoc. {{{Verwaltungsgemeinschaft}}}
Municipal assoc. {{{Verwaltungsverband}}}
Local subdivisions {{{divisions}}}
Mayor {{{Bürgermeister or mayor}}}( {{{Partei or party}}} )
Governing party {{{ruling_party1}}}
Basic statistics
Area {{{Fläche or  area}}} km2 (0 sq mi)
 - Metro 0 [[km2]] (0 sq mi)
ElevationX–Xmax m (y–ymax ft)
  X is {{{Höhe or  elevation}}}
  Xmax optional {{{elevationmax}}}
Population {{{Einwohner or  population}}}
 - Density 0 /km2 (0 /sq mi)
 - Urban {{{pop_urban}}}
 - Metro {{{pop_metro}}} 
Founded {{{year}}}
First mentioned {{{year_of_first_mention}}}
Received city status {{{year_of_city_status}}}
Other information
Time zone CET/CEST (UTC+1/+2)
Licence plate {{{Kfz or licence or  license}}}
Postal codes {{{PLZ or  postal_code}}}
Area codes {{{Vorwahl or  area_code}}}
Website {{{Website or  website}}}
Template documentation (for the above template, sometimes hidden or invisible)

Infobox for German cities, towns and municipalities Edit

New infobox that combines features of de:Vorlage:Infobox Ort in Deutschland and Template:Infobox settlement, plus a few extra things.

Syntax - German parameters Edit

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 location
|Name             = 
|German_name      = 
|Art              = 
|image_photo      = 
|imagesize        = 
|image_caption    = 
|Wappen           = 
|Wappengröße      = 
|image_flag       = 
|lat_deg =  | lat_min =  | lat_sec =
|lon_deg =  | lon_min =  | lon_sec =
|Karte            =
|Lageplan         =
|Lageplanbeschreibung =
|Bundesland       = 
|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              = 
|NUTS             = 
|LOCODE           = 
|Gliederung       = 
|Website          = 
|Bürgermeister    = 
|Bürgermeistertitel = 
|Partei           = 
|ruling_party1    = |ruling_party2  =  |ruling_party3 = 
|year             = 
|_noautocat       = 

Syntax - English parameters Edit

Click here to see instructions for full syntax information

List of English-name alias parameters (skip any unneeded fields):

{{Infobox German location
|name         = (or 'Name') English name of the place
|name_local   = (or 'German_name') German name
|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
|Wappengröße  = 
|image_flag   = image file of town flag
|lat_deg =  | lat_min =  | lat_sec = latitude degrees/minutes/sec
|lon_deg =  | lon_min =  | lon_sec = longitude degrees/minutes/sec
|Karte        =
|image_plan   = (or 'Lageplan') image file of bottom closeup map
|plantext     = (or 'Lageplanbeschreibung') heading above bottom map
|state        = (or 'Bundesland') optional state name (can translate)
|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
|NUTS         = (not displayed)
|LOCODE       = (not displayed)
|divisions    = (or 'Gliederung') divisions, such as "5 burroughs"
|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 featuresEdit

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.

  • eg. 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) (eg. 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) (eg. see: Braunschweig).


The HTML mark up produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue article 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 Edit

If the place or venue has an "established", "founded", "opened" or similar date, use {{Start date}} (unless the date is before 1583 CE).

If it has a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes Edit

hCard uses HTML classes including:

  • adr
  • agent
  • category
  • county-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • 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 Edit

When giving coordinates, please don't be overly Ort in Deutschland ca:Plantilla:Infotaula de municipi d'Alemanya de:Vorlage:Infobox Ort in Deutschland el:Πρότυπο:Πόλη (Γερμανία) eo:Ŝablono:Informkesto germania komunumo es:Plantilla:Ficha de localidad de Alemania fr:Modèle:Infobox Commune d'Allemagne hr:Infookvir njemački grad mk:Шаблон:Инфокутија Место во Германија ml:Template:Infobox German location nl:Sjabloon:Infobox Duitse plaats plus pl:Szablon:RFN miasto infobox pt:Predefinição:Alemanha/cidades sl:Predloga:Infopolje Mesto DE sv:Mall:Ortsfakta Tyskland zh:Template:Infobox DE City