Editing
Template:Infobox UNESCO World Heritage Site/doc
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> {{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}} == Syntax == <pre style="overflow:auto;"> {{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 group of subjects together form this WHS; avoid long listings, in which case it is better to summarize or to omit the parameter altogether--> | 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}} --> }} </pre> ===Pre-loading Wikidata values=== The listing below proposes to import Wikidata values (called "claims" at Wikidata) and convert them to static local data, with the subst: technique. Pre-loading Wikidata values in this fashion would often be unsuccessful due to failing Wikidata claims for the item: it is up to the editor importing the claims to check whether the claim is correct and appropriate for the infobox. {{warning|several values need to be reformatted after loading with this method, see comments starting with three !!! in the list below}} The preload-list can be used for a first implementation of this template in an article. Separate parameter substitutions can be used to complement incomplete parameter sets in a previously implemented infobox. {{incomplete list}} <pre style="overflow:auto;"> {{Infobox UNESCO World Heritage Site | child = | WHS = {{subst:Wikidata|qualifier|P1435|P1448}}<!-- leave empty, unless for stand-alone infoboxes that need a title different from the article title --> | image = {{subst:Wikidata|property|P18}}<!-- !!! remove "[[File:" and "]]" wrapping the image name or it is impossible to manage the image size --> | image_upright = 1.2 | caption = {{subst:Wikidata|qualifier|P18|P2096}} | official_name = {{subst:Wikidata|qualifier|P1435|P1448}}<!-- leave empty unless the official WHS name is different from the title of the infobox --> | location = {{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: P17 (country) and possibly P131 (administrative subdivision of country) suffice in most cases --> | part_of = {{subst:Wikidata|properties|linked|P361}} | includes = {{subst:Wikidata|properties|linked|P527}}<!--replace by summary if the list of sub-entities is too large or incomplete--> | criteria = {{UNESCO WHS type|{{subst:Wikidata|properties|P2614}}}}{{subst:Wikidata|properties|P2614}} | ID = {{subst:Wikidata|property|P757}} | coordinates = {{subst:Wikidata|property|linked|P625}}<!-- !!! convert to {{coord|...|...|format=dms}} --> | year = {{subst:Wikidata|qualifier|P1435|P580}} | extension = {{subst:Wikidata|qualifiers|P793|P585}} | danger = {{#if: {{subst:Wikidata|qualifiers|P793|P580}}|{{subst:Wikidata|qualifiers|P793|P580}} -|}}{{#if: {{subst:Wikidata|qualifiers|P793|P582}}|- {{subst:Wikidata|qualifiers|P793|P582}}|}} | area = {{subst:Wikidata|property|P2046}}<!-- {{convert|...|ha|acre|abbr=on}} or similar with other units recommended -->{{subst:wikidata|reference|P2046}} | buffer_zone = | website = {{URL|{{subst:Wikidata|property|P856}}}} | embedded = | locmapin = {{subst:Wikidata|property|P17}} | map_caption = }} </pre> == 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 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. *"Type" is kept as a parameter for backwards compatibility only, and should preferably not be used. ==Coordinates== {{UF-coord}} ==Examples== ;Example 1: {{Infobox UNESCO World Heritage Site | WHS = Kathmandu Valley | Location = [[Nepal]] | Criteria = Cultural: iii, iv, vi | ID = 121 | Year = 1979 | Danger = 2003-2007 | Extension = 2006 }} This example <!--uses the default infobox width of 20[[Em (typography)|em]] and--> has no image: <pre style="width:55%; overflow:auto; margin-right:5px; font-size:95%;"> {{Infobox UNESCO World Heritage Site | WHS = Kathmandu Valley | Location = [[Nepal]] | Criteria = Cultural: iii, iv, vi | ID = 121 | Year = 1979 | Danger = 2003-2007 | Extension = 2006 }} </pre> {{clear}} ;Example 2: {{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 }} This example uses <!--the default infobox width of 20[[Em (typography)|em]] with--> an image of width 270px, and the alt and caption parameters: <pre style="width:55%; overflow:auto; margin-right:5px; font-size:95%;"> {{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 }} </pre> {{clear}} ;Example 3: {{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 }} This example uses the default image width, and a location map: <pre style="width:55%; overflow:auto; margin-right:5px; font-size:95%;"> {{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 }} </pre> {{clear}} ;Example 4: {{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|border=infobox | 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}} }} }} This example uses an embedded template for the location map, allowing an unlimited number of clickable locations: <pre style="width:55%; overflow:auto; margin-right:5px; font-size:95%;"> {{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|border=infobox | 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 bei Berlin | coordinates3= {{coord|52|42|24|N|13|32|39|E}} }} }} </pre> {{clear}} ==Microformat== {{UF-hcard-geo}} <templatedata>{ "description": "An Infobox for World Heritage Sites", "params": { "WHS": { "label": "Name", "description": "name as inscribed on the World Heritage List", "type": "string", "required": true, "aliases": [ "Name" ] }, "image": { "label": "Image", "description": "An image of the site", "type": "string", "required": false, "aliases": [ "Image" ] }, "caption": { "label": "Caption", "description": "The image caption", "type": "string", "required": false, "aliases": [ "Caption", "imagecaption" ] }, "Location": { "label": "Location", "description": "Location of the site", "type": "string", "required": false }, "Criteria": { "label": "Criteria", "description": "The designated criteria i, ... ix or x", "type": "string", "required": true }, "ID": { "label": "ID", "description": "The reference number", "type": "number", "required": true }, "Link": { "label": "Link", "description": "A link, only used if no ID", "type": "string", "required": false }, "Coordinates": { "label": "Coordinates", "description": "Use the {{coord}} template with display=inline, do not be overly precise.", "type": "string", "required": false, "aliases": ["coordinates"] }, "Year": { "label": "Year", "description": "Year site was listed", "type": "string", "required": false }, "Session": { "label": "Session", "description": "Session site was inscribed: 1st β 40th", "type": "string", "required": false }, "Extension": { "label": "Extension", "description": "Extension", "type": "string", "required": false }, "Danger": { "label": "Danger", "description": "Period site has been in danger", "type": "string", "required": false }, "locmapin": { "label": "Location map", "description": "Name of Location map to use, typically a country name", "type": "string", "required": false }, "map_caption": { "label": "Map caption", "description": "Caption to use with the map", "type": "string", "required": false }, "map_width": { "label": "Map width", "description": "Width of displayed the map", "type": "number", "required": false }, "relief": { "label": "Relief", "description": "Use '1' for relief map - if available", "type": "number", "required": false }, "child": { "label": "Child", "description": "set to 'yes' to embed this infobox within another infobox", "type": "string", "required": false }, "embedded": { "label": "Embedded", "description": "Use to embed another infobox template within this one, e.g. {{Infobox mountain}}", "type": "string", "required": false } } }</templatedata> == Tracking categories == * {{clc|Pages using infobox UNESCO World Heritage Site with unknown parameters}} == See also == {{UNESCO templates}} <includeonly>{{Sandbox other|| <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:World Heritage Site templates| ]] [[Category:Place infobox templates|World Heritage Site]] [[Category:Infobox templates with module parameter|World Heritage Site]] [[Category:Embeddable templates|{{PAGENAME}}]] [[Category:Templates that add a tracking category]] [[Category:WikiProject Protected areas|Ο]] [[Category:WikiProject World Heritage Sites|Ο]] }}</includeonly>
Edit summary
(Briefly describe your changes)
Please note that all contributions to A2wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
A2wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Ambox
(
edit
)
Template:Both
(
edit
)
Template:Category link with count
(
edit
)
Template:Clc
(
edit
)
Template:Clear
(
edit
)
Template:Coord
(
edit
)
Template:Documentation subpage
(
edit
)
Template:Flatlist
(
edit
)
Template:Flatlist/microformat
(
edit
)
Template:Hlist/styles.css
(
edit
)
Template:If first display both
(
edit
)
Template:Incomplete list
(
edit
)
Template:Infobox
(
edit
)
Template:Infobox UNESCO World Heritage Site
(
edit
)
Template:Location map
(
edit
)
Template:Location map many
(
edit
)
Template:Lua
(
edit
)
Template:Main other
(
edit
)
Template:Mbox
(
edit
)
Template:Navbar
(
edit
)
Template:Ordinal
(
edit
)
Template:Para
(
edit
)
Template:Str left
(
edit
)
Template:Strong
(
edit
)
Template:Template link
(
edit
)
Template:Template link general
(
edit
)
Template:Template link with alternate text
(
edit
)
Template:Template other
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tl
(
edit
)
Template:Tla
(
edit
)
Template:Tlg
(
edit
)
Template:UF-coord
(
edit
)
Template:UF-hcard-geo
(
edit
)
Template:UNESCO templates
(
edit
)
Template:Warning
(
edit
)
Module:Arguments
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:Coordinates
(
edit
)
Module:Coordinates/styles.css
(
edit
)
Module:Infobox
(
edit
)
Module:Infobox/styles.css
(
edit
)
Module:InfoboxImage
(
edit
)
Module:List
(
edit
)
Module:Location map
(
edit
)
Module:Location map/data/Germany
(
edit
)
Module:Location map/data/Nepal
(
edit
)
Module:Location map/multi
(
edit
)
Module:Location map/styles.css
(
edit
)
Module:Lua banner
(
edit
)
Module:Math
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Navbar
(
edit
)
Module:Navbar/configuration
(
edit
)
Module:Navbar/styles.css
(
edit
)
Module:No globals
(
edit
)
Module:Ordinal
(
edit
)
Module:String
(
edit
)
Module:TableTools
(
edit
)
Module:Template link general
(
edit
)
Module:Unsubst
(
edit
)
Module:Yesno
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Current events
Random page
About A2wiki
interaction
Help
Community portal
Recent changes
Upload file
Tools
What links here
Related changes
Special pages
Page information