الگو:Infobox UNESCO World Heritage Site

از ویکی‌پدیا، دانشنامهٔ آزاد
پرش به ناوبری پرش به جستجو
توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

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 [[مجموعه اهرام جیزه]] 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-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.

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.

{{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       = {{نشانی وب|{{subst:Wikidata|property|P856}}}}
| embedded      = 
| locmapin      = {{subst:Wikidata|property|P17}}
| map_caption   = 
}}

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 مجموعه اهرام جیزه for an example of the second use.
  • "Type" is kept as a parameter for backwards compatibility only, and should preferably not be used.

Coordinates[ویرایش]

برای مختصات‌دهی، از الگوی {{coord}} به همراه دستور display=inline,title استفاده کنید. لطفاً از درج مختصات بسیار دقیق خودداری کنید.

Examples[ویرایش]

Example 1
Kathmandu Valley
میراث جهانی یونسکو
موقعیتنپال
نوعCultural: iii, iv, vi
منابع121
ثبت1979 (سومین نشست)
گسترش2006
در معرض خطر2003-2007

This example has no image:

{{Infobox UNESCO World Heritage Site
| WHS         = Kathmandu Valley
| Location    = [[نپال]]
| Criteria    = Cultural: iii, iv, vi
| ID          = 121
| Year        = 1979
| Danger      = 2003-2007
| Extension   = 2006
}}
Example 2
Kathmandu Valley
میراث جهانی یونسکو
The Kathmandu Darbar Square
The Kathmandu Darbar Square
موقعیتنپال
نوعCultural: iii, iv, vi
منابع121
ثبت1979 (سومین نشست)
گسترش2006
در معرض خطر2003-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    = [[نپال]]
| Criteria    = Cultural: iii, iv, vi
| ID          = 121
| Year        = 1979
| Danger      = 2003-2007
| Extension   = 2006
}}
Example 3
Kathmandu Valley
میراث جهانی یونسکو
The Kathmandu Darbar Square
The Kathmandu Darbar Square
موقعیتنپال
نوعCultural: iii, iv, vi
منابع121
ثبت1979 (سومین نشست)
گسترش2006
در معرض خطر2003-2007
مساحت167.37 ha
منطقه حائل70.29 ha
مختصات۲۷°۴۲′۱۴″شمالی ۸۵°۱۸′۳۲″شرقی / ۲۷٫۷۰۴°شمالی ۸۵٫۳۰۹°شرقی / 27.704; 85.309
Infobox UNESCO World Heritage Site در نپال قرار گرفته‌است
Infobox UNESCO World Heritage Site
Location in Nepal

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    = [[نپال]]
| 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
میراث جهانی یونسکو
Bauhaus Dessau Workshop
Bauhaus building in Dessau
موقعیتGermany
نوعCultural: ii, iv, vi
منابع729
ثبت1996 (بیستمین نشست)
گسترش2017
مساحت8.1614 ha
منطقه حائل59.26 ha
Infobox UNESCO World Heritage Site در آلمان قرار گرفته‌است
1
1
2
2
3
3
Bauhaus sites: 1 = Weimar, 2 = Dessau, 3 = Bernau

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

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

زیر-الگوها[ویرایش]

اگر مکان دارای تاریخ "احداث‌", "پایه‌گذاری‌", "گشایش" یا موارد مشابه است، از {{تاریخ آغاز}} مگر اینکه تاریخ گاه‌شماری دوران مشترک قبل از ۱۵۸۳ باشد.

اگر پیوند دارد، از {{نشانی وب}} استفاده کنید.

Please do not remove instances of these sub-templates.

دسته‌بندی‌ها[ویرایش]

hCard uses HTML classes including:

  • adr
  • agent
  • category
  • county-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • uid
  • url
  • vcard

مختصات با فراخوانی {{coord}} و استفاده از کلاس‌های اچ‌تی‌م‌ال زیر تولید می‌شود:

  • geo
  • latitude
  • longitude

لطفاً این دسته‌بندی‌ها را جابجا نکنید، تغییر نام ندهید، و زیربخش‌های آن را نهفته نکنید

دقت[ویرایش]

هنگام ارائه مختصات، لطفاً از سطح مناسبی از دقت استفاده کنید. پارامتر |name= از الگوی {{coord}} را بکار نبرید.

An Infobox for World Heritage Sites

پارامترهای الگو

پارامترتوضیحاتنوعوضعیت
NameWHS Name

name as inscribed on the World Heritage List

رشتهضروری
Imageimage Image

An image of the site

رشتهاختیاری
Captioncaption Caption imagecaption

The image caption

رشتهاختیاری
LocationLocation

Location of the site

رشتهاختیاری
CriteriaCriteria

The designated criteria i, ... ix or x

رشتهضروری
IDID

The reference number

شمارهضروری
LinkLink

A link, only used if no ID

رشتهاختیاری
CoordinatesCoordinates coordinates

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

رشتهاختیاری
YearYear

Year site was listed

رشتهاختیاری
SessionSession

Session site was inscribed: 1st – 40th

رشتهاختیاری
ExtensionExtension

Extension

رشتهاختیاری
DangerDanger

Period site has been in danger

رشتهاختیاری
Location maplocmapin

Name of Location map to use, typically a country name

رشتهاختیاری
Map captionmap_caption

Caption to use with the map

رشتهاختیاری
Map widthmap_width

Width of displayed the map

شمارهاختیاری
Reliefrelief

Use '1' for relief map - if available

شمارهاختیاری
Childchild

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

رشتهاختیاری
Embeddedembedded

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

رشتهاختیاری

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]