Template:Infobox UNESCO World Heritage Site/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Fram
(→‎Syntax: Cleanup)
meta>Fram
(Add parameter)
Line 6: Line 6:
<pre style="overflow:auto;">
<pre style="overflow:auto;">
{{Infobox UNESCO World Heritage Site
{{Infobox UNESCO World Heritage Site
| WHS        = <!-- name as inscribed on the World Heritage List -->
| WHS        = <!-- name as inscribed on the World Heritage List: use with the STAND-ALONE version of this template -->
| Official_name = <!-- name as inscribed on the World Heritage List: use ONLY with the embedded version of this template, if it doesn't matches the name of the template it is in: see [[Giza pyramid complex]] for an example-->
| image      = <!-- optional -->
| image      = <!-- optional -->
| image_size  = <!-- optional -->
| image_size  = <!-- optional -->
Line 33: Line 34:
== Notes ==
== Notes ==
*If the Heritage Site has multiple locations across a country or continent, use the embedded template <nowiki>{{Location map many}}</nowiki> as in example 4.
*If the Heritage Site has multiple locations across a country or continent, use the embedded template <nowiki>{{Location map many}}</nowiki> as in example 4.
*If the template is not used as an embedded template, always use the "WHS" parameter. If the template is embedded, ''and'' the official name at the Unesco site doesn't match the  name of the template it is used in, use "Official_name". See [[Giza pyramid complex]] for an example of the second use.


==Coordinates==
==Coordinates==

Revision as of 09:28, 2 November 2017

Syntax

{{Infobox UNESCO World Heritage Site
| WHS         = <!-- name as inscribed on the World Heritage List: use with the STAND-ALONE version of this template -->
| Official_name = <!-- name as inscribed on the World Heritage List: use ONLY with the embedded version of this template, if it doesn't matches the name of the template it is in: see [[Giza pyramid complex]] for an example-->
| image       = <!-- optional -->
| image_size  = <!-- optional -->
| caption     = <!-- optional -->
| Part_of     = <!-- optional: when the article subject is part of a WHS listing, not a full one, e.g. one church in a series of churches -->
| Includes    = <!-- optional: when a small group of subjects together form this WHS; don't add in infobox when list is too long -->
| Location    = <!-- optional -->
| Criteria    = <!-- Cultural, Natural or Mixed, plus roman numbers --> 
| ID          =
| Coordinates = <!-- optional; use {{coord}} -->
| Year        = 
| Extension   = <!-- optional -->
| Danger      = <!-- optional -->
| Area        = <!-- optional -->
| Buffer_zone = <!-- optional -->
| Website     = <!-- 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. {{Location map many}} -->
}}

Notes

  • If the Heritage Site has multiple locations across a country or continent, use the embedded template {{Location map many}} as in example 4.
  • If the template is not used as an embedded template, always use the "WHS" parameter. If the template is embedded, and the official name at the Unesco site doesn't match the name of the template it is used in, use "Official_name". See Giza pyramid complex for an example of the second use.

Coordinates

For coordinates, use {{coord}} with display=inline,title. Please do not be overly precise.

Examples

Example 1
Kathmandu Valley
UNESCO World Heritage Site
LocationNepal
CriteriaCultural: iii, iv, vi
Reference121
Inscription1979 (3rd session)
Extensions2006
Endangered2003-2007

This example has no image:

{{Infobox UNESCO World Heritage Site
| WHS         = Kathmandu Valley
| Location    = [[Nepal]]
| Criteria    = Cultural: iii, iv, vi
| ID          = 121
| Region      = Asia-Pacific
| Year        = 1979
| Danger      = 2003-2007
| Extension   = 2006
}}
Example 2
Kathmandu Valley
UNESCO World Heritage Site
The Kathmandu Darbar Square
The Kathmandu Darbar Square
LocationNepal
CriteriaCultural: iii, iv, vi
Reference121
Inscription1979 (3rd session)
Extensions2006
Endangered2003-2007

This example uses an image of width 270px, and the alt and caption parameters:

{{Infobox UNESCO World Heritage Site
| WHS         = Kathmandu Valley
| image       = Basantapurpalace.JPG
| image_size  = 270px
| alt         = The Kathmandu Darbar Square
| caption     = The Kathmandu Darbar Square
| Location    = [[Nepal]]
| Criteria    = Cultural: iii, iv, vi
| ID          = 121
| Year        = 1979
| Danger      = 2003-2007
| Extension   = 2006
}}
Example 3
Kathmandu Valley
UNESCO World Heritage Site
The Kathmandu Darbar Square
The Kathmandu Darbar Square
LocationNepal
CriteriaCultural: iii, iv, vi
Reference121
Inscription1979 (3rd session)
Extensions2006
Endangered2003-2007
Area167.37 ha
Buffer zone70.29 ha
CoordinatesLua error: callParserFunction: function "#coordinates" was not found.
Script error: No such module "Location map".

This example uses the default image width, and a location map:

{{Infobox UNESCO World Heritage Site
| WHS         = Kathmandu Valley
| image       = Basantapurpalace.JPG
| alt         = The Kathmandu Darbar Square
| caption     = The Kathmandu Darbar Square
| Location    = [[Nepal]]
| Criteria    = Cultural: iii, iv, vi
| ID          = 121
| Year        = 1979
| Danger      = 2003-2007
| Extension   = 2006
| Area        = 167.37 ha
| Buffer_zone = 70.29 ha 
| locmapin    = Nepal
| coordinates = {{coord|27.704|85.309}}
| map_caption = Location in Nepal
}}
Example 4
Bauhaus and its Sites in Weimar, Dessau and Bernau
UNESCO World Heritage Site
Bauhaus Dessau Workshop
Bauhaus building in Dessau
LocationGermany
CriteriaCultural: ii, iv, vi
Reference729
Inscription1996 (20th session)
Extensions2017
Area8.1614 ha
Buffer zone59.26 ha
Script error: No such module "Location map/multi".

This example uses an embedded template for the location map, allowing an unlimited number of clickable locations:

{{Infobox UNESCO World Heritage Site
|WHS          = Bauhaus and its Sites in Weimar, Dessau and Bernau
|Image        = [[File:Bundesarchiv Bild 183-1987-0204-305, Dessau, Bauhaus.jpg|250px|Bauhaus Dessau Workshop]]
|imagecaption = Bauhaus building in Dessau
|Location     = Germany
|Criteria     = Cultural: ii, iv, vi
|ID           = 729
|Year         = 1996
|Extension    = 2017
|Area         =  8.1614 ha
|Buffer_zone  =  59.26 ha 
|embedded     =
{{Location map many
| Germany
| caption     = Bauhaus sites: 1 = Weimar, 2 = Dessau, 3 = Bernau
| label1      = 1
| link1       = Weimar
| coordinates1=  {{coord|50|58|29|N|11|19|46|E}}
| label2      = 2
| link2       = Dessau
| coordinates2= {{coord|51|50|18|N|12|13|38|E}}
| label3      = 3
| link3       = Bernau
| coordinates3= {{coord|52|42|24|N|13|32|39|E}}
}}
}}


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 "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

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 for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for this template in articles based on this TemplateData.

TemplateData for Infobox UNESCO World Heritage Site

An Infobox for World Heritage Sites

Template parameters

ParameterDescriptionTypeStatus
NameWHS Name

name as inscribed on the World Heritage List

Stringrequired
Imageimage Image

An image of the site

Stringoptional
Captioncaption Caption imagecaption

The image caption

Stringoptional
LocationLocation

Location of the site

Stringoptional
CriteriaCriteria

The designated criteria i, ... ix or x

Stringrequired
IDID

The reference number

Numberrequired
LinkLink

A link, only used if no ID

Stringoptional
CoordinatesCoordinates coordinates

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

Stringoptional
YearYear

Year site was listed

Stringoptional
SessionSession

Session site was inscribed: 1st – 40th

Stringoptional
ExtensionExtension

Extension

Stringoptional
DangerDanger

Period site has been in danger

Stringoptional
Location maplocmapin

Name of Location map to use, typically a country name

Stringoptional
Map captionmap_caption

Caption to use with the map

Stringoptional
Map widthmap_width

Width of displayed the map

Numberoptional
Reliefrelief

Use '1' for relief map - if available

Numberoptional
Childchild

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

Stringoptional
Embeddedembedded

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

Stringoptional

Tracking categories

See also

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