Template:Infobox City Pakistan/doc

From Wikipedia, the free encyclopedia

Contents

[edit] Version History

  • Version 1.0.1
    1. Luna Santin (talk · contribs) added the mapping variables: map, map_size and map_text. Now deprecated.
    2. Adimovk5 (talk · contribs) added the template to appear in the Category:Cities and towns in Pakistan
    3. MJCdetroit (talk · contribs) changed the name, area and density variables to official_name, area_total_km2 and population_density_km2 variables respectively. These variables are much more precise than their former versions as they demand exact information. For instance, rather than area, it asks for area_total_km2 (total area in km2).
    4. MJCdetroit (talk · contribs) added three new variables for elevation_m (elevation in meters), elevation_m_min and elevation_m_max replacing the previous altitude variable.
    5. Yasirniazkhan (talk · contribs) changed references of mayor with nazim.
  • Requested
    1. Make naib nazim into naib_nazim.
    2. Make a municipality variable to denote the municipality agency of the city.

[edit] Usage

[edit] Identity Variables

Following variables help determine the identity of the city. These may include the name of the city, the province and mapping information.

Variable Value type Deprecated Description Examples
official_name Text Official name of the city preferably in English. Use of Urdu names is not recommended.  official_name=Hyderabad
province Text Province of Pakistan the city belongs to.  province=Sindh
location_map Text Should the location map be shown. If this value is not provided, the map would not be shown. The data shown in the map is relative to the latitude and longitude values provided. See Location Variables.  location_map=true
flag Image URL Deprecated Required Image URL without the Image: prefix.
The following variable was deprecated because no city in Pakistan has a flag.
 flag=Some_Image.svg
emblem Image URL Deprecated Required Image URL without the Image: prefix.
The following variable was deprecated because no city in Pakistan except for Lahore and Karachi has an emblem. It can be used for Lahore and Karachi though.
 emblem=Some_Image.svg
city_image Image URL Required Image URL without the Image: prefix. Any image that displays the city in its full glory. For urban cities, this can be an image of the skyline.  city_image=Some_Image.svg
map Image URL Deprecated Required Image URL without the Image: prefix.
The following variable was deprecated because the new location_map variable was introduced for this purpose.
 map=Some_Image.svg
map_size Text Deprecated The width of the map in pixels.
As the map variable was deprecated, there was no need for this variable.
 map_size=300px
map_text Text Deprecated The caption that goes underneath the map.
As the map variable was deprecated, there was no need for this variable.
 map_text=City location
code Text The dialling code for the city.  code=022

[edit] Location Variables

Following variables help determine the location of the city in latitudinal and longitudinal values. These values are usually depicted in degrees, minutes and seconds.

Variable Value type Deprecated Description Examples
n1 Number The degree° latitude.  n1=25
n2 Number The minutes' for the latitude.  n2=22
n3 Number The seconds" for the latitude.  n3=45
e1 Number The degree° longitude.  e1=68
e2 Number The minutes' for the longitude.  e2=22
e3 Number The seconds" for the longitude.  e3=06

This information is necessary to generate the locator map for the city.

[edit] Elevation Variables

The elevation variables determine the elevation of the city above sea level. Giving minimum and maximum elevation levels, lets the template compute and average elevation for the city henceforth.

Variable Value type Deprecated Description Examples
elevation_m Number The elevation of the city above sea-level.  elevation_m=13
elevation_m_min Number The minimum elevation of a city above sea-level.  elevation_m_min=10
elevation_m_max Number The maximum elevation of the city above sea-level.  elevation_m_max=16

If the value of elevation_m is not provided and the other two are, then the value would automatically be calculated as the near mean average.

[edit] Demographic Variables

Demographic variables help in projecting the population and other statistics of the city.

Variable Value type Deprecated Description Examples
census_year Number The most recent year a census was undertaken.  census_year=2001
estimate_year Number The most recent year an estimate of the population was devised.  estimate_year=2006
census_pop Number The population that was devised as an outcome of a census.  census_pop=1363500
estimate_pop Number The recent population levels estimated on projected values.  estimate_pop=1447275
population_density_km2 Number Number of people per square kilometer.  poplation_density_km2=1970
area_total_km2 Number Total area in square kilometers.  area_total_km2=1970
towns Number Total number of towns in the city (other neighbourhoods).  towns=5
uc Number Total number of union council seats in the region.  towns=5

[edit] Government Variables

Variable Value type Deprecated Description Examples
nazim Text The name of the nazim or the mayor.  nazim=Some Name
naib nazim Text The name of the naib nazim or the deputy mayor.  naib nazim=Some Name
footnotes Wiki Any additional information you'd like the user to know about. This field is mostly used to indicate an eGovernance initiative by the Government like the Government's own website, etc.  [http://www.hyderabad.gov.pk Official Website]

[edit] Simple examples

Only the values that need to be addressed be provided. For instance, if you were to create an infobox for Hyderabad, Sindh. You would provide the following template code while editing.

{{Pakistani Cities|official_name=Hyderabad|province=Sindh}}

If more data be provided, as is the case below, more information would be displayed.

{{Pakistani Cities|official_name=Hyderabad|province=Sindh|n1=25|n2=22|n3=45|e1=68|e2=22|e3=06|location_map=true}}

The above would generate simple information with a locator map to indicate the position of the city on the map of Pakistan. However, if you'd like to use the complete functionality, then use in the way below. Here, displayed is the basic information for the city of Karachi.

{{Pakistani Cities|official_name=Karachi
                  |flag=Pk-sindh.PNG
                  |emblem=
                  |province=[[Sindh]]
                  |city_image=mausoleum123.jpg
                  |location_map=true
                  |n1=24|n2=51|n3=36|e1=67|e2=00|e3=36
                  |elevation_m=8
                  |area_total_km2=3527
                  |census_year=2007
                  |code=021
                  |census_pop=12,315,843(estimate)<ref/>
                  |population_density_km2=349
                  |towns=18|uc=178
                  |nazim=[[Mustafa Kamal|Mustafa Kamal]] ([[Azad MQM]])
                  |naib nazim=[[Nasreen Jalil]]
                  |footnotes=[http://www.karachicity.gov.pk Official website]
                  }}

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