Template:Infobox Serbia municipality

From Wikipedia, the free encyclopedia

This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here.


  • NOTE:This template is actually a "customized wrapper" for {{Infobox Settlement}}. Any field from Infobox Settlement can work so long as it is placed on this page first. Questions? Just asked here or over at {{Infobox Settlement}}


  • Important: Please enter all numeric values in a raw, unformatted fashion. References are to be included in their respective section footnotes field. Numeric values that are not "raw" may create an "Expression error". Raw values will be automatically formatted by the template. If you find a raw value is not formatted in your usage of the template, please post a notice on the discussion page for this template.


{{{official_name}}}
{{{native_name}}}
[[Image:Serbia {{{official_name}}}.png|151px|none|Location of {{{official_name}}} within Serbia]]Location of {{{official_name}}} within Serbia
Coordinates: {{{latd}}}°{{{latm}}}′N {{{longd}}}°{{{longm}}}′E / <span class="geo-dec geo" title="Maps, aerial photos, and other data for Expression error: Unrecognised punctuation character "{" Expression error: Unrecognised punctuation character "{"">Expression error: Unrecognised punctuation character "{", Expression error: Unrecognised punctuation character "{"
Country Serbia
District [[{{{district}}} District|{{{district}}}]]
Settlements {{{settlements}}}
Government
 - Mayor {{{mayor}}}
Area [1]
 - Municipality {{{area_km2}}} km² (Expression error: Unrecognised punctuation character "{" sq mi)
Population (2002 census)[2]
 - Total {{{population_total}}}
Time zone CET (UTC+1)
 - Summer (DST) CEST (UTC+2)
Postal code {{{postal_code}}}
Car plates {{{plates}}}
Area code +381 {{{code}}}
[edit] Template documentation

Infobox Serbia municipality template is intended for cities and towns which are seats of Municipalities of Serbia. it "inherits" {{Infobox Settlement}}, providing some Serbia-specific parameters, taking advantage of consistent naming of maps at Commons:Category:Maps of municipalities of Serbia, hard-coding time zone etc.

Arguments marked with an asterisk are optional. "New" arguments have the same name as the corresponding ones from {{Infobox Settlement}}. "Old" ones, given in the second column where applicable, are deprecated, and will be removed once the occurrences in all articles are updated.

New name Old name Meaning
native_name Name in the Cyrillic alphabet
official_name Name in the Latin alphabet
*other_name Name in minority language, where officially accepted
image_shield Coat of arms image
*settlement_type Town/village/city (Default is "town". See List of settlements in Serbia for official census classification)
district District. Enter only the name, e.g. "Rasina" for Rasina District
area_km2 Municipality area, in square kilometres (no formatting, e.g. 1120 rather than 1,120)
population_total Population of the town (seat)
? mpop Population of the whole municipality
*settlements Number of settlements (naselja) (i.e. seat+villages). See List of settlements in Serbia for official census classification)
*latd Degrees latitude
*latm Minutes latitude
*longd Degrees longitude
*longm Minutes longitude
postal_code
code Local area phone code
plates two letter car license code
*website Official website - not a local portal!. Enter without the leading http://.
*mayor Mayor's name. If feasible, also indicate the Mayor's party (or "independent"), shortened as in parties below
*parties Ruling party(ies) in the local parliament. Use common Serbian abbreviation, but link to the full name (e.g. [[Democratic Party of Serbia|DSS]])

Empty syntax:

{{Infobox Serbia municipality
|native_name = 
|official_name = 
|other_name = 
|image_shield = 
|settlement_type = 
|district = 
|area_km2 = 
|population_total = 
|mpop = 
|settlements = 
|latd =|latm=
|longd=|longm=
|postal_code=
|code = 
|plates = 
|website = 
|mayor = 
|parties 
}}

[edit] Microformat

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.

hCard uses HTML classes including:

  • "adr"
  • "county-name"
  • "fn"
  • "label"
  • "locality"
  • "nickname"
  • "note"
  • "org"
  • "region"
  • "street-address"
  • "vcard"

Geo is produced by calling {{coord}}, and uses HTML classes:

  • "geo"
  • "latitude"
  • "longitude"

Please do not rename or remove these classes.

When giving coordinates, please don't be overly precise.