Permanently protected template

Template:Infobox World Heritage Site

From Wikipedia, the free encyclopedia
Jump to: navigation, search
UNESCO World Heritage Site
Template documentation[view] [edit] [history] [purge]

Usage

Deprecated per Template talk:Infobox World Heritage Site#RfC: revert back to non-Wikidata version?
The following discussion has been closed. Please do not modify it.

Just add:

{{Infobox World Heritage Site}}

to the top of an article, and data will be automatically included from Wikidata where they are available. These values can be overridden by passing values to the relevant parameters in the article (if need be), e.g.:

{{Infobox World Heritage Site
| name = 
}}

If you want to include it as a child template of another infobox, then use:

{{Infobox World Heritage Site | child = yes}}

Syntax

{{Infobox World Heritage Site
| WHS         = <!-- name as inscribed on the World Heritage List -->
| image       = <!-- optional -->
| image_size  = <!-- optional -->
| alt         = <!-- optional -->
| caption     = <!-- optional -->
| Location    = <!-- optional -->
| Type        = <!-- Cultural, Natural or Mixed --> 
| Criteria    =
| ID          =
| Link        = <!-- optional -->
| Region      = 
| coordinates = <!-- optional; use {{coord}} -->
| Year        = 
| Session     = <!-- optional -->
| Extension   = <!-- optional -->
| Danger      = <!-- optional -->
| locmapin    = <!-- optional -->
| map_caption = <!-- optional -->
| map_width   = <!-- optional -->
| relief      = <!-- "1" for relief map - if available -->
| child       = <!-- optional; set to "yes" to embed this infobox within another infobox -->
| embedded    = <!-- optional; use to embed another infobox template within this one, e.g. {{Infobox mountain}} -->
}}

Conversion to local data

Per Template talk:Infobox World Heritage Site#RfC: revert back to non-Wikidata version?.

Step 1: find local data

Data for the parameters of this template may be found in the article or its history:

Make sure the values thus retrieved are valid (covered by references in the body of the article or elsewhere)

Step 2: complement to a full parameter set

All useful parameters should have a local value defined. Empty fields can in some cases be complemented by substituting a value from Wikidata:

| image         = {{subst:Wikidata|property|P18}}
| image_upright = 1.2
| caption       = {{subst:Wikidata|qualifier|P18|P2096}}
| Location      = {{subst:Wikidata|properties|linked|P527}} in {{subst:Wikidata|properties|linked|P706}}, {{subst:Wikidata|properties|linked|P276}}, {{subst:Wikidata|properties|linked|P131}}, {{subst:Wikidata|property|linked|P17}}, {{subst:Wikidata|property|linked|P30}} <!--make selection-->
| includes      = {{subst:Wikidata|properties|linked|P527}}
| Type          = <!-- Cultural, Natural or Mixed --> 
| Criteria      = {{subst:Wikidata|properties|P2614}}
| ID            = {{subst:Wikidata|property|linked|P757}}
| Year          = {{subst:Wikidata|qualifier|P1435|P580}}
| Extension     = {{subst:Wikidata|qualifiers|P793|P585}}
| Coordinates   = {{subst:Wikidata|property|linked|P625}}<!--{{coord|...|...|format=dms}}-->
| area          = {{subst:Wikidata|property|P2046}}<!--{{convert|...|ha|sqmi|abbr=on}}-->{{subst:wikidata|reference|P2046}}
| locmapin      = {{subst:Wikidata|property|P17}}

Some substituted parameter values may need some adjustment after importing in this way, e.g.

  • image is imported "full size" by the substitution, [[File: and ]] wrapping the image name need to be removed on second pass in order to make image resizing take effect
  • Coordinate values need to be converted to the {{coord}} template before they can be used by the locinmap parameter
  • Area values preferably inserted in {{convert}}
  • the "caption" parameter is imported without wikilinks: such links may be added in a second pass.

Step 3: mark completion of conversion to local data

Method 1
add
| noicon     = no
to the parameter set, marking that the parameter values are no further edited through Wikidata.
Method 2 (preferable)
convert to {{Infobox UNESCO World Heritage Site}}: as, however, some obsolete parameters are no longer recognised by this template, such parameters are best deactivated through deletion or commenting out, e.g.
<!-- | State Party = ... -->

Wikidata

This template returns values from Wikidata where they are available; these values can be overridden by passing values to the relevant parameters.

Parameter Default Description
child Set to "yes" if this is a child template of another infobox. Changes the style to remove the border (since that is provided by the parent infobox), also hides the title, picture and coordinates (assumed to be provided by the parent infobox).
name Page name Site name.
native_name native language (P103)
native_lang native label (P1705)
Image or image image (P18) Picture of the site
image_size Image size (if necessary)
image_upright Image orientation (if necessary)
alt Image alt tag (if necessary)
caption, Caption, or imagecaption media legend (P2096) Picture caption
WHS heritage designation (P1435), qualifier official name (P1448) Official WHS name
location located on terrain feature (P706), location (P276), located in the administrative territorial entity (P131), country (P17) (fallback to continent (P30) for Antarctica) The location of the site
criteria World Heritage criteria (P2614) Selection criteria
id World Heritage Site ID (P757) World Heritage Site ID. Automatically makes link.
coordinates coordinate location (P625) Coordinates. Use {{coord}} with display=inline. Use nocoord=True to disable showing any coordinates from Wikidata.
area area (P2046) The area of the site
includes has part (P527) Sub-items of the site
year heritage designation (P1435), qualifier start time (P580) Year that the site became a UNESCO site. Automatically determines UNESCO session.
Extension significant event (P793), UNESCO World Heritage Site record modification (Q29778318), qualifier point in time (P585) Point in time that the record was modified
delisted heritage designation (P1435), qualifier end time (P582) Year that the site stopped being a UNESCO site.
Danger significant event (P793), List of World Heritage in Danger (Q222384), qualifiers start time (P580) & end time (P582) Years on the list of World Heritage in Danger
website official website (P856) URL
embedded If you want to include a child infobox template within this one.
locmapin Show location map? Normally it is auto-created from Wikidata if both the coordinate and country are set. Use nomap=True to disable showing any map using info from Wikidata.
refs no Set to 'yes' to show references from Wikidata
noicon Set to 'no' to hide the Wikidata edit link icons

Microformat

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

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.

Classes

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

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

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

See the monthly error report for this template.

TemplateData for Infobox World Heritage Site

An Infobox for World Heritage Sites

Template parameters

Parameter Description Type Status
Name WHSName

name as inscribed on the World Heritage List

Default
empty
Example
empty
Auto value
empty
String required
Image imageImage

An image of the site

Default
empty
Example
empty
Auto value
empty
String optional
Caption captionCaptionimagecaption

The image caption

Default
empty
Example
empty
Auto value
empty
String optional
Location Location

Location of the site

Default
empty
Example
empty
Auto value
empty
String optional
Type Type

The designated type: Cultural, Natural or Mixed

Default
empty
Example
empty
Auto value
empty
String required
Criteria Criteria

The designated criteria i, ... ix or x

Default
empty
Example
empty
Auto value
empty
String required
ID ID

The reference number

Default
empty
Example
empty
Auto value
empty
Number required
Region Region

The UNESCO region: Africa, Arab States, Asia-Pacific, Asia and Oceania, Europe and North America, Latin America and the Caribbean

Default
empty
Example
empty
Auto value
empty
String required
Link Link

A link, only used if no ID

Default
empty
Example
empty
Auto value
empty
String optional
Coordinates Coordinatescoordinates

Use the {{coord}} template with display=inline, do not be overly precise.

Default
empty
Example
empty
Auto value
empty
String optional
Year Year

Year site was listed

Default
empty
Example
empty
Auto value
empty
String optional
Session Session

Session site was inscribed: 1st – 40th

Default
empty
Example
empty
Auto value
empty
String optional
Extension Extension

Extension

Default
empty
Example
empty
Auto value
empty
String optional
Danger Danger

Period site has been in danger

Default
empty
Example
empty
Auto value
empty
String optional
Location map locmapin

Name of Location map to use, typically a country name

Default
empty
Example
empty
Auto value
empty
String optional
Map caption map_caption

Caption to use with the map

Default
empty
Example
empty
Auto value
empty
String optional
Map width map_width

Width of displayed the map

Default
empty
Example
empty
Auto value
empty
Number optional
Relief relief

Use '1' for relief map - if available

Default
empty
Example
empty
Auto value
empty
Number optional
Child child

set to 'yes' to embed this infobox within another infobox

Default
empty
Example
empty
Auto value
empty
String optional
Embedded embedded

Use to embed another infobox template within this one, e.g. {{Infobox mountain}}

Default
empty
Example
empty
Auto value
empty
String optional

Tracking categories

See also

  • {{AFR}} [Africa]
  • {{AST}} [Arab States]
  • {{APA}} [Asia & Pacific]
  • {{ENA}} [Europe & N. America]
  • {{LAC}} [Latin America & Caribbean]
  • {{AFR}} [Africa]
  • {{AST}} [Arab States]
  • {{APA}} [Asia & Pacific]
  • {{ENA}} [Europe & N. America]
  • {{LAC}} [Latin America & Caribbean]