Bản mẫu:Chú thích IUCN/doc

Bách khoa toàn thư mở Wikipedia

Bản mẫu dùng để chú thích Sách đỏ IUCN.

Cách sử dụng[sửa mã nguồn]

This template uses {{cite journal}} to render IUCN Red List citations. It will accept all parameters that are available to {{cite journal}} though only a few are needed because this template will automatically provide a standardized set of parameters. Data for the parameters that editors need to provide can be found on the appropriate Red List page. The parameters that editors need to provide are:

  • title: usually the species name; italics for proper formatting are not provided
  • page: the electronic page number; the template will use this value to create a correct url to link the value in |title=; in the form e.T<digits>A<digits> where <digits> is one or more of the 0–9 digits
  • lastn / firstn or any of the author name parameters available to {{cite journal}} see Template:Cite_journal § Authors
  • year: the year of publication; alias: date
  • errata: the year that an assessment errata is published – from IUCN citation text: (errata version published in year)
  • amends: the year that 'this assessment' amends – from IUCN citation text: (amended version of year assessment)
  • volume: usually same as year; may be omitted if year set

A handy tool for creating these templates is {{make cite iucn}}.

Examples[sửa mã nguồn]

  • Sillero-Zubiri, C. & Do Linh San, E. (2016). Mungos gambianus. The IUCN Red List of Threatened Species. 2016: e.T13922A45199653. doi:10.2305/IUCN.UK.2016-1.RLTS.T13922A45199653.en. Truy cập ngày 18 tháng 10 năm 2018. [new-style url provided]
  • Goodrich, J.; Lynam, A.; Miquelle, D.; Wibisono, H.; Kawanishi, K.; Pattanavibool, A.; Htun, S.; Tempa, T.; Karki, J.; Jhala, Y.; Karanth, U. (2015). Panthera tigris. The IUCN Red List of Threatened Species. IUCN. 2015: e.T15955A50659951. doi:10.2305/IUCN.UK.2015-2.RLTS.T15955A50659951.en. Truy cập ngày 15 tháng 1 năm 2018. [old-style url provided and replaced]
  • BirdLife International (2017). Passer domesticus. The IUCN Red List of Threatened Species. 2017: e.T103818789A111172035. Truy cập ngày 26 tháng 10 năm 2018. [old-style url provided and replaced]
  • BirdLife International (2019). Motacilla alba. Sách đỏ IUCN về các loài bị đe dọa. 2019.3. 2019: e.T22718348A137417893. Truy cập ngày 14 tháng 12 năm 2019. [no journal parameter provided]

Error and maintenance messaging[sửa mã nguồn]

This template emits a variety of error and maintenance messages.

Error messages[sửa mã nguồn]

  • malformed |doi= identifier
  • malformed |page= identifier
    IUCN uses an identifier to point to a particular page in their database. For |page= and |doi= the identifier portion of these parameter values has the form: T<digits>A<digits> where <digits> is one or more of the 0–9 digits. The template emits these error messages when the identifier portions of the parameter values do not match the expected form.
  • |doi= / |page= mismatch
  • |doi= / |url= mismatch
  • |page= / |url= mismatch
    This template uses {{cite journal}} for rendering. cs1|2 templates are designed to cite single sources. Because IUCN identifiers in |doi= and |page= point to individual pages in the IUCN database, all of the identifiers should match. The template emits these errors when the identifiers in a {{Chú thích IUCN}} template do not match. Caveat lector: regardless of the value assigned to |doi= (or urls that link to IUCN through the dx.doi.org resolver), doi links are redirected to the most recent assessment, not to the assessment specified in the |doi= parameter's value. For example, this template taken from Springbok at the time of this writing:
    {{Chú thích IUCN |publisher=[[IUCN]] |title=''Antidorcas marsupialis'' |author=IUCN SSC Antelope Specialist Group |year=2016 |volume=2016 |page=e.T1676A115056763 |doi=10.2305/IUCN.UK.2016-3.RLTS.T1676A50181753.en |url=https://www.iucnredlist.org/species/1676/115056763}}
    IUCN SSC Antelope Specialist Group (2016). Antidorcas marsupialis. Sách đỏ IUCN về các loài bị đe dọa. IUCN. 2016: e.T1676A115056763. doi:10.2305/IUCN.UK.2016-3.RLTS.T1676A50181753.en.{{cite iucn}}: error: |doi= / |url= không tương xứng (help)
    |page= and |url= have the same identifiers (to the current version of the assessment) but |doi= has a different (older identifier) yet clicking the doi-link takes the reader to the current assessment. Rewriting the url value to use the identifier from |doi= gives working link to the older assessment:
    https://www.iucnredlist.org/species/1676/50181753

Maintenance messages[sửa mã nguồn]

Maintenance messages emitted by this template are normally hidden. To make these maintenance messages visible, include the following text in your common CSS page (common.css) or your specific skin's CSS page (skin.css):

.citation-comment {display: inline !important;}  /* display cite iucn maintenance messages (also shows cs1|2 maint messages) */
  • |volume= / |date= mismatch
  • |volume= / |doi= mismatch
  • |date= / |doi= mismatch
    {{Chú thích IUCN}} validates the volume information in |volume= against the volume information in |doi= and compares these values with the content of |date= or |year=. These values should all be the same.
  • old-form url
    There are two old-form urls for the IUCN Red List. {{Chú thích IUCN}} modifies these old-form urls into a new-form url using identifier data from |page= or |doi=, in that order if available. If an identifier is not available, the template will switch from the http scheme to the https scheme which will sometimes make a 'dead' old-form url work. When either of these changes is made, the template emits this message. Templates cannot save changes like this to the wiki-text so editors should evaluate the results of these url changes and modify the template's wiki text to remove the url and add |page= (preferred) and/or |doi=.
  • new-form url
    {{Chú thích IUCN}} emits this message when |url= holds a new-form url. This form of url is acceptable but, for consistency, should be removed so that the template may create the url from |page= (preferred) and/or |doi=.
  • unknown url
    When the content of |url= is not recognized as old-, original-, or new-form, the template emits this message. Commonly, such urls are doi links (https://doi.org/10.2305/IUCN... or https://dx.doi.org/10.2305/IUCN...). When |url= holds a doi link, the parameter should be changed to |doi=10.2305/IUCN...
  • no identifier
    When |url=, |page=, and |doi= are all empty or omitted, {{Chú thích IUCN}} cannot construct a url. To resolve this issue add |page= (preferred) and/or |doi=.
  • title has extraneous text
    The template emits this message when |title= has either of these annotations:
    • errata annotation: (errata version published in year) – remove this text and add |errata=year
    • amendment annotation: (amended version of year assessment) – remove this text and add |amends=year

Tracking categories[sửa mã nguồn]

TemplateData[sửa mã nguồn]

Đây là tài liệu Dữ liệu bản mẫu cho bản mẫu này được sử dụng bởi Trình soạn thảo trực quan và các công cụ khác; xem báo cáo sử dụng tham số hàng tháng cho bản mẫu này.

Dữ liệu bản mẫu cho Chú thích IUCN

TemplateData

Formats a citation of the IUCN Red List of Threatened Species

Tham số bản mẫu

Nên dùng bản mẫu này với các tham số đặt trên cùng một hàng.

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

Usually the species name (in which case it should be italicised)

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

The electronic page number

Chuỗi ngắnkhuyên dùng
Family namelast last1 author author1

Last name or surname of the first author, or the whole name for an author with only given names or an organisation; don't wikilink, use "author-link"

Chuỗi ngắnkhuyên dùng
Given namefirst first1

Given name of the first author; if an author has only given names, use "last"; don't wikilink, use "author-link"

Chuỗi ngắnkhuyên dùng
Yearyear date

Year of publication

Ngày thángkhuyên dùng
Volumevolume

Usually same as "year", may be omitted if "year" is set

Chuỗi ngắntùy chọn
Access dateaccess-date

Date that the citation was verified to support the text

Ngày thángkhuyên dùng
Author linkauthor-link author-link1 author1-link

Title of existing Wikipedia page on the first author

Tên trangtùy chọn
Family name 2last2 author2

Last name or surname of the second author, or the whole name for an author with only given names or an organisation; don't wikilink, use "author-link2"

Chuỗi ngắntùy chọn
Given name 2first2

Given name of the second author; if an author has only given names, use "last2"; don't wikilink, use "author-link2"

Chuỗi ngắntùy chọn
Author link 2author-link2 author2-link

Title of existing Wikipedia page on the second author

Tên trangtùy chọn
Family name 3last3 author3

Last name or surname of the third author, or the whole name for an author with only given names or an organisation; don't wikilink, use "author-link3"

Chuỗi ngắntùy chọn
Given name 3first3

Given name of the third author; if an author has only given names, use "last3"; don't wikilink, use "author-link3"

Chuỗi ngắntùy chọn
Author link 3author-link3 author3-link

Title of existing Wikipedia page on the third author

Tên trangtùy chọn
Family name 4last4 author4

Last name or surname of the fourth author, or the whole name for an author with only given names or an organisation; don't wikilink, use "author-link4"

Chuỗi ngắntùy chọn
Given name 4first4

Given name of the fourth author; if an author has only given names, use "last4"; don't wikilink, use "author-link4"

Chuỗi ngắntùy chọn
Author link 4author-link4 author4-link

Title of existing Wikipedia page on the fourth author

Tên trangtùy chọn
Family name 5last5 author5

Last name or surname of the fifth author, or the whole name for an author with only given names or an organisation; don't wikilink, use "author-link5"

Chuỗi ngắntùy chọn
Given name 5first5

Given name of the fifth author; if an author has only given names, use "last5"; don't wikilink, use "author-link5"

Chuỗi ngắntùy chọn
Author link 5author-link5 author5-link

Title of existing Wikipedia page on the fifth author

Tên trangtùy chọn
Family name 6last6 author6

Last name or surname of the sixth author, or the whole name for an author with only given names or an organisation; don't wikilink, use "author-link6"

Chuỗi ngắntùy chọn
Given name 6first6

Given name of the sixth author; if an author has only given names, use "last6"; don't wikilink, use "author-link6"

Chuỗi ngắntùy chọn
Author link 6author-link6 author6-link

Title of existing Wikipedia page on the sixth author

Tên trangtùy chọn
Family name 7last7 author7

Last name or surname of the seventh author, or the whole name for an author with only given names or an organisation; don't wikilink, use "author-link7"

Chuỗi ngắntùy chọn
Given name 7first7

Given name of the seventh author; if an author has only given names, use "last7"; don't wikilink, use "author-link7"

Chuỗi ngắntùy chọn
Author link 7author-link7 author7-link

Title of existing Wikipedia page on the seventh author

Tên trangtùy chọn
Family name 8last8 author8

Last name or surname of the eighth author, or the whole name for an author with only given names or an organisation; don't wikilink, use "author-link8"

Chuỗi ngắntùy chọn
Given name 8first8

Given name of the eighth author; if an author has only given names, use "last8"; don't wikilink, use "author-link8"

Chuỗi ngắntùy chọn
Author link 8author-link8 author8-link

Title of existing Wikipedia page on the eighth author

Tên trangtùy chọn