User:AussieLegend/Infobox Papua New Guinea place/doc


Usage edit

{{Infobox Papua New Guinea place}} is the standard infobox used in Papua New Guinea articles. Papua New Guinea articles using {{Infobox settlement}} should be converted to use this infobox.

To use this template edit

  1. Copy the relevant blank template from the Blank Infobox Template Page 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.
  2. Enter values for the fields as outlined in the table below. Fields left blank will automatically be hidden.
  3. Preview.
  4. Save the page with an appropriate edit summary.

Examples edit

Fields edit

All fields used by this template are optional. The following fields are available:

Parameter Description Valid for
blank = all
Source/notes Values
type infobox type Sets up the template for a specific type of locality. Should be left empty when the place is not one of the defined types. "city", "town", "suburb", "village", "llg", "district", "province" or may be empty
name name of place If this field does not exist, the template will use the name of the article. If the field exists, but the place name is not defined, the infobox title will be blank. plain text
city city name See List of cities and towns in Papua New Guinea. In some cases it may be desirable to include the name of a non-city here. In any case, if the name is not wikilinked, it will automatically be linked. wikitext (can contain links)
province province all except province plain text, do not link. Use one of the following abbreviations:
bou = Bougainville
cen = Central Province
ehp = Eastern Highlands
enb = East New Britain
esp = East Sepik Province
eng = Enga Province
gul = Gulf Province
mad = Madang Province
man = Milne
mbp = Milne Bay Province
mor = Morobe Province
nip = New Ireland
oro = Oro (Northern)
wsp = Sandaun Province (West Sepik)
sim = Simbu (Chimbu) Province
shp = Southern Highlands
wes = Western Province
whp = Western Highlands
wnb = West New Britain
ncd = NCD
image generic image of the locality filename
imagesize width of generic image of the locality This is an optional field. If not specified, the image width will default to 270px. number
caption caption for the locality image wikitext (can contain links)
image_alt Alt text for the image wikitext (can contain links)
image2 A second image of the locality This is typically for use in articles where a map of the locality is required but the appropriate locator map template is not available. filename
image2size width of the second image of the locality This is an optional field. If not specified, the image width will default to 270px. number
caption2 caption for the second locality image wikitext (can contain links)
image2_alt Alt text for the image wikitext (can contain links)
logo province/district logo province, district image link
logosize width of province/district logo province, district number. If not specified, logosize defaults to 175px
coor_type coordinates type override This field is used to override the default region:PG_type:city generated by the infobox. For valid inputs see Template:Coord.
latd
latm
lats
latitude degrees
minutes
seconds (optional for llg and district)
longd
longm
longs
longitude degrees
minutes
seconds (optional for llg and district)
alternative_location_map forces locator map Forces the locator map to use an alternative, rather than the province map, regardless of the contents of province. Name of the alternative map
force_national_map forces locator map Forces the locator map to use the Papua New Guinea, rather than the province map, regardless of the contents of province. "yes" or leave blank, plain text, do not link
relief forces relief map "yes" or leave blank, plain text, do not link
pushpin_map_caption caption optional, plain text or linked
pushpin_label_position label position left, right, top, bottom
default: right
map_alt Alt text for the location map wikitext (can contain links)
district district This should normally be the district where the locality is located. For provinces, this should be a list of the districts within the province. wikitext (can contain links). If there are more than two names, use {{Plainlist}}
llg local level government wikitext (can contain links)
capital provincial capital wikitext (can contain links)
area unformatted number (km²)
area_footnotes area footnote for references wikitext (can contain links)
Should use <ref> </ref> tags. Best used with {{cite web}}.
pop population Do not add anything else to this field (years, references etc) number. should be plain, without a comma. i.e. 12345 not 12,345
pop_year population year Year applicable to the population figure number
pop_footnotes population footnote for references wikitext (can contain links)
Should use <ref> </ref> tags. Best used with {{cite web}}.
poprank population rank city Used with pop
List of cities and towns in Papua New Guinea by population
number
density population density This template automatically calculates population density when pop and area are specified. This field will override the automatic calculation unformatted number (people/km²)
density_footnotes population density footnote for references wikitext (can contain links)
Should use <ref> </ref> tags. Best used with {{cite web}}.
lang main language(s) Languages spoken in the area wikitext (can contain links)
langarea traditional language Language traditionally spoken in the area wikitext (can contain links)
est established Year the locality was established year
president LLG president The name will be automatically linked if an article exists. wikitext (can contain links)
governor governor province The name will be automatically linked if an article exists. wikitext (can contain links)
governor_year Year(s) the individual was governor plain text
elevation measured from sea level in metres unformatted number (m)
elevation_footnotes elevation footnote for references fallingrain.com wikitext (can contain links)
Should use <ref> </ref> tags. Best used with {{cite web}}.
postcode suburb, village number
dist# See Notes below town, suburb, city (other cities) Distance by road, not direct - maps, Google earth, Bing unformatted number (km)
dir# See Notes below town, suburb, city (other cities) plain text, normally "N", "S", "E", "W", "NE", "SW", "SSE", "WNW" etc.
location# See Notes below town, suburb, city maps, Google earth plain text, may be wikilinked, automatically links the name
url website address bare url. e.g. http://www.example.com
maxtemp max average annual temperature number (°C)
maxtemp_footnotes footnote for references wikitext (can contain links)
Should use <ref> </ref> tags. Best used with {{cite web}}.
mintemp min average annual temperature number (°C)
mintemp_footnotes footnote for references wikitext (can contain links)
Should use <ref> </ref> tags. Best used with {{cite web}}.
rainfall average annual rainfall unformatted number (mm)
rainfall_footnotes footnote for references wikitext (can contain links)
Should use <ref> </ref> tags. Best used with {{cite web}}.
near-n/ne/e/se/s/sw/w/nw neighbours wikitext (can contain links)

Notes edit

Type edit

Setting the type parameter affects the colour of the top bar of the infobox.

  • Yellow: city
  • Pink: suburb, village
  • Green: town
  • Blue: llg
  • Purple: district
  • Ochre: province
  • Grey: undefined

Places will be categorised according to the setting of the parameter.

Footnotes fields edit

Any references should be placed within the respective "_footnotes" field and not within the field reserved solely for a numeric value. For example, place the reference used for the area of City X in the parameter {{{area_footnotes}}} and not in the {{{area}}} parameter. Otherwise, an error may result.

Unformatted numbers and expression errors edit

Certain fields require numeric values to be entered in an unformatted/raw fashion—i.e. 1000.0 NOT 1,000.0. If an expression error is present, simply remove any commas or spaces from the number.

Dist#, Dir# and Location# edit

This is the distance and approximate 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'. Direction from the locations can be specified use 'dir1' - 'dir5' and the locations can be listed as 'location1' - 'location5'. Each dist# must be partnered with an appropriate location#. Dir# is optional.

Deprecated field tracking edit

Articles that include deprecated fields are automatically added to Category:Papua New Guinea place articles using deprecated parameters.

Subpages edit

Template:Infobox Papua New Guinea place
Template:Infobox Papua New Guinea place/Blank
Template:Infobox Papua New Guinea place/Examples
Template:Infobox Papua New Guinea place/doc
Template:Infobox Papua New Guinea place/sandbox
Template:Infobox Papua New Guinea place/testcases
Template:Infobox Papua New Guinea place/pagelinks

Microformat edit

The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles 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 edit

If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.

If it has a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes edit

hCard uses HTML classes including:

  • adr
  • agent
  • category
  • county-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • uid
  • 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 edit

When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name= parameter. {{reflist]}