Template:Infobox PNG Place/Info
From Wikipedia, the free encyclopedia
[edit] Usage
To use this template:
- Copy the relevant blank template for City, Town, Suburb or Village from the sections below, into the beginning of your document, remembering to put the code at the very top of the article and the first word of the article on the very next line.
- Enter values for the fields as outlined in the table below. Fields left blank will automatically be hidden.
- Preview.
- Save the page with an appropriate edit summary.
The category the Place is listed in with be determined by the type used below.
[edit] Cities
For only the cities of PNG: Port Moresby, Lae and Mount Hagen.
{{Infobox PNG Place | type = city | name = | othername = | province = | llg = | district = | lang = | langarea = | dot_x = | dot_y = | image = | caption = | pop = | popdate = | poprank = | est = | postcode = | elevation = | coor = | maxtemp = | mintemp = | rainfall = | dist1 = | location1 = | dir1 = }}
[edit] Town
The towns of PNG, eg Goroka, Rabaul, Wewak etc
{{Infobox PNG Place | type = town | name = | othername = | province = | llg = | district = | lang = | langarea = | dot_x = | dot_y = | image = | caption = | pop = | popdate = | poprank = | est = | postcode = | elevation = | coor = | maxtemp = | mintemp = | rainfall = | dist1 = | location1 = | dir1 = }}
[edit] Village
eg Salamaua
{{ Infobox PNG Place | type = village | name = | province = | llg = | district = | dot_x = | dot_y = | image = | caption = | pop = | lang = | langarea = | elevation = | coor = | maxtemp = | mintemp = | rainfall = | dist1 = | location1 = | dir1 = }}
[edit] Suburb
Suburbs of cities, such as Konedobu or Waigani in Port Moresby.
{{Infobox PNG Place | type = suburb | name = | city = | province = | llg = | dot_x = | dot_y = | image = | caption = | pop = | postcode = | elevation = | coor = | near-nw = | near-n = | near-ne = | near-w = | near-e = | near-sw = | near-s = | near-se = }}
[edit] Coordinates
For coordinates, use {{coord}} with display=inline,title. Please do not be overly precise.
[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.
[edit] Fields
All fields used by this template are optional. The following fields are available:
Field Name | Description | Valid for blank = all |
Values |
type | infobox type | 'city', 'suburb', 'village', | |
name | name of locality | plain text | |
othername | other name of locality | plain text | |
province | cen = Central Province ehp = Eastern Highlands enb = East New Britain esp = East Sepik eng = Enga gul = Gulf mad = Madang man = Manus mbp = Milne Bay mor = Morobe nip = New Ireland bou = North Solomons (Bougainville) oro = Oro (Northern) |
||
llg | local level government | plain text | |
dot_x | horizontal co-ordinate of location on map | numerical, 1-250 | |
dot_y | vertical position of location on map | numerical, 1-168 | |
image | generic image of the locality | filename | |
caption | caption for the locality image | wikitext (can contain links) | |
city | suburb | plain text, link | |
pop | population | number | |
popdate | census date | year | |
poprank | ranking of place per population | 1st, 2nd, 3rd, 4th etc | |
lang | main currently spoken languages | wikitext (can contain links) | |
langarea | local (indigenous) language area | wikitext (can contain links) | |
postcode | suburb, village | number | |
est | established | year | |
elevation | measured from sea level | number (m) | |
coor | Geographic coordinates | plain text but use the {{coord}} template | |
maxtemp | max average annual temperature | number (°C) | |
mintemp | mix average annual temperature | number (°C) | |
rainfall | average annual rainfall | number (mm) | |
near-nw/n/ne/e/w/se/s/sw | neighbours (suburb or ocean) | suburb | plain text, link |
dist# | See below | number (km) | |
location# | See below | plain text, link | |
dir# | See below | plain text |
Notes:
Dist#, Location# and Dir#
: This is the distance, and optionally direction, to another location. The '#' is replaced with a number between 1 and 5. Therefore distances, for up to five locations, can be listed using the range 'dist1' - 'dist5', and locations can be listed as 'location1' - 'location5'. Each dist# must be partnered with an appropriate location#. An optional field is dir#, a free text field, which equates to a direction.
eg. | dist1 = 36 | location1 = Lae | dir1 = north-west
will show: 36km north-west of Lae.
[edit] Notes
The infobox type affects the colour of the top bar of the infobox.
- Yellow: city
- Pink: suburb
- Blue: town
- Green: village
- Gray:
undefined