Jump to content

Template:Infobox City Pakistan/doc

Wikipedia se

Version History

[source ke badlo]
  • Requested
    1. Make naib nazim into naib_nazim.
    2. Make a municipality variable to denote the municipality agency of the city.

Identity Variables

[source ke badlo]

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 City ka official name, preferably English bhasa, Urdu bhasa ya Fiji Hindi bhasa mein.  official_name=Hyderabad
province Text Suba Pakistan ka, jisme city located hai.  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.
Yeh variable depricate ho giya hai kyunke Pakistan mein Karachi aur Lahore ke alaawa aur keesee shehar ka jhanda nahin hai.
 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

Location Variables

[source ke badlo]

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.

Elevation Variables

[source ke badlo]

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.

Demographic Variables

[source ke badlo]

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

Government Variables

[source ke badlo]
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]

Simple examples

[source ke badlo]

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]
                  }}

Microformat

[source ke badlo]

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

[source ke badlo]

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.

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

[source ke badlo]

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