Bản mẫu:Infobox UNESCO World Heritage Site

Bách khoa toàn thư mở Wikipedia
Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]

Cú pháp[sửa mã nguồn]

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

Tải trước các giá trị Wikidata[sửa mã nguồn]

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       = {{URL|{{subst:Wikidata|property|P856}}}}
| embedded      = 
| locmapin      = {{subst:Wikidata|property|P17}}
| map_caption   = 
}}

Ghi chú[sửa mã nguồn]

  • Nếu Địa điểm Di sản có nhiều vị trí trên một quốc gia hoặc nhiều quốc gia, hãy sử dụng mẫu {{Location map many}} như ví dụ 4.
  • Nếu bản mẫu được sử dụng làm mẫu, luôn sử dụng tham số "WHS". Nếu bản mẫu được đưa vào bài khác với tên chính thức tại trang UNESCO thì hãy sử dụng "Official_name" (Trang chính).
  • "Thể loại" được giữ làm tham số chỉ tương thích ngược và tốt nhất không nên sử dụng.

Coordinates[sửa mã nguồn]

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

Ví dụ[sửa mã nguồn]

Ví dụ 1
Thung lũng Kathmandu
Di sản thế giới UNESCO
Vị tríNepal
Tiêu chuẩnVăn hóa: iii, iv, vi
Tham khảo121
Công nhận1979 (Kỳ họp 3)
Mở rộng2006
Bị đe dọa2003-2007

Ví dụ này không có hình ảnh:

{{Infobox UNESCO World Heritage Site
| WHS         = Thung lũng Kathmandu
| Location    = [[Nepal]]
| Criteria    = Văn hóa: iii, iv, vi
| ID          = 121
| Year        = 1979
| Danger      = 2003-2007
| Extension   = 2006
}}
Ví dụ 2
Thung lũng Kathmandu
Di sản thế giới UNESCO
Quảng trường Kathmandu Darbar
Quảng trường Kathmandu Darbar
Vị tríNepal
Tiêu chuẩnVăn hóa: iii, iv, vi
Tham khảo121
Công nhận1979 (Kỳ họp 3)
Mở rộng2006
Bị đe dọa2003-2007

Ví dụ này sử dụng hình ảnh 270px, và tham số alt và chú thích:

{{Infobox UNESCO World Heritage Site
| WHS         = Thung lũng Kathmandu
| image       = Basantapurpalace.JPG
| image_size  = 270px
| alt         = Quảng trường Kathmandu Darbar
| caption     = Quảng trường Kathmandu Darbar
| Location    = [[Nepal]]
| Criteria    = Văn hóa: iii, iv, vi
| ID          = 121
| Year        = 1979
| Danger      = 2003-2007
| Extension   = 2006
}}
Ví dụ 3
Thung lũng Kathmandu
Di sản thế giới UNESCO
Quảng trường Kathmandu Darbar
Quảng trường Kathmandu Darbar
Vị tríNepal
Tiêu chuẩnVăn hóa: iii, iv, vi
Tham khảo121
Công nhận1979 (Kỳ họp 3)
Mở rộng2006
Bị đe dọa2003-2007
Diện tích167,37 ha
Vùng đệm70,29 ha
Tọa độ27°42′14″B 85°18′32″Đ / 27,704°B 85,309°Đ / 27.704; 85.309
Infobox UNESCO World Heritage Site trên bản đồ Nepal
Infobox UNESCO World Heritage Site
Vị trí tại Nepal

Ví dụ này sử dụng chiều rộng hình ảnh mặc định và bản đồ vị trí:

{{Infobox UNESCO World Heritage Site
| WHS         = Thung lũng Kathmandu
| image       = Basantapurpalace.JPG
| alt         = Quảng trường Kathmandu Darbar
| caption     = Quảng trường Kathmandu Darbar
| Location    = [[Nepal]]
| Criteria    = Văn hóa: 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 = Vị trí tại Nepal
}}
Ví dụ 4
Bauhaus và các địa điểm của nó tại Weimar, Dessau và Bernau
Di sản thế giới UNESCO
Bauhaus Dessau Workshop
Tòa nhà Bauhaus tại Dessau
Vị tríĐức
Tiêu chuẩnVăn hóa: ii, iv, vi
Tham khảo729
Công nhận1996 (Kỳ họp 20)
Mở rộng2017
Diện tích8,1614 ha
Vùng đệm59,26 ha
Infobox UNESCO World Heritage Site trên bản đồ Đức
1
1
2
2
3
3
Các địa điểm Bauhaus: 1 = Weimar, 2 = Dessau, 3 = Bernau

Ví dụ này sử dụng mẫu được gắn cho bản đồ vị trí, cho phép không giới hạn số lượng vị trí có thể kích vào:

{{Infobox UNESCO World Heritage Site
|WHS          = Bauhaus và các địa điểm của nó tại Weimar, Dessau và Bernau
|Image        = [[File:Bundesarchiv Bild 183-1987-0204-305, Dessau, Bauhaus.jpg|250px|Bauhaus Dessau Workshop]]
|imagecaption = Tòa nhà Bauhaus tại Dessau
|Location     = Đức
|Criteria     = Văn hóa: 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     = Các địa điểm Bauhaus: 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[sửa mã nguồn]

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

If the place or venue has an "established", "founded", "opened" or similar date, use {{Start date}}.

hCard uses HTML classes including:

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

When giving coordinates, please don't be overly precise.

An Infobox for World Heritage Sites

Tham số bản mẫu[Quản lý Dữ liệu bản mẫu]

Tham sốMiêu tảKiểuTrạng thái
NameWHS Name

name as inscribed on the World Heritage List

Chuỗi dàibắt buộc
Imageimage Image

An image of the site

Chuỗi dàitùy chọn
Captioncaption Caption imagecaption

The image caption

Chuỗi dàitùy chọn
LocationLocation

Location of the site

Chuỗi dàitùy chọn
CriteriaCriteria

The designated criteria i, ... ix or x

Chuỗi dàibắt buộc
IDID

The reference number

Sốbắt buộc
LinkLink

A link, only used if no ID

Chuỗi dàitùy chọn
CoordinatesCoordinates coordinates

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

Chuỗi dàitùy chọn
YearYear

Year site was listed

Chuỗi dàitùy chọn
SessionSession

Session site was inscribed: 1st – 40th

Chuỗi dàitùy chọn
ExtensionExtension

Extension

Chuỗi dàitùy chọn
DangerDanger

Period site has been in danger

Chuỗi dàitùy chọn
Location maplocmapin

Name of Location map to use, typically a country name

Chuỗi dàitùy chọn
Map captionmap_caption

Caption to use with the map

Chuỗi dàitùy chọn
Map widthmap_width

Width of displayed the map

Sốtùy chọn
Reliefrelief

Use '1' for relief map - if available

Sốtùy chọn
Childchild

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

Chuỗi dàitùy chọn
Embeddedembedded

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

Chuỗi dàitùy chọn

Danh mục theo dõi[sửa mã nguồn]

Xem thêm[sửa mã nguồn]

Bản mẫu:Bản mẫu UNESCO