Template:Infobox Russian federal city

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.

Template to display the characteristics of a federal city in Russia.

[edit] Template documentation

[edit] Usage

  • Important: Please enter all numeric values in a raw, unformatted fashion; i.e. no commas or spaces. 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.

[edit] Syntax

{{Infobox Russian federal city
|EnglishName= Name in English
|RussianName= Name in Russian
|Skyline= Name of the city skyline image
|SkylineLegend= Legend for the skyline image
----All coordinates default to north latitude and east longitude----
|LatDeg=City latitude, degrees
|LatMin=City latitude, minutes (omit if only degrees are known)
|LatSec=City latitude, seconds (omit if only degrees or degrees/minutes are known)
|LonDeg=City longitude, degrees
|LonMin=City longitude, minutes (omit if only degrees are known)
|LonSec=City longitude, seconds (omit if only degrees or degrees/minutes are known)
|LocatorMap=Name of the locator map image.  If no image is supplied, the map is generated automatically.
|LocatorMapLegend=Caption for the locator map.  When no image is supplied, the map caption is generated automatically
|CoatOfArms=Name of the coat of arms image
|Flag=Name of the flag image
|CityDay=Official City Day, as designated by the city
|FederalDistrict=Federal district to which the federal city belongs
|EconomicRegion=Economic region to which the federal city belongs
|CodeNumber=Federal city's code number (usually the same as the main car license plates number)
|Area_km2=Federal city's area in square kilometers (raw format only—no spaces or commas; will convert to show sq miles)
|Population=Federal city's population as of the 2002 Census (raw format only—no spaces or commas)
|PopulationRank=Federal city's population rank among cities/towns of Russia
|LeaderTitle=Title of the federal city's leader.  "Mayor" is the default value
|LeaderName=Name of the federal city's leader
|Legislature=Name of the federal city's legislative body
|Charter= Name of the federal city's Charter
|FoundationDate=Date on which the city was founded
|Event1=Use to describe events such as status changes, renamings, etc.
|Event2= ...
|Event3= ...
|Event4= ...
|Event5= ...
|Event6= ...
|Event7= ...
|Event8= ...
|Event9= ...
|Event1Date=Date of Event1
|Event2Date=...
|Event3Date=...
|Event4Date=...
|Event5Date=...
|Event6Date=...
|Event7Date=...
|Event8Date=...
|Event9Date=...
|PostalCode=Postal code (range) for the federal city
|DialingCode=Dialing code for the federal city.  No need to specify "+7" for Russia
|DialingCode2=If there is another dialing code, enter it here.  No need to specify "+7" for Russia
|Website= Official website of the city
}}

[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.