Bước tới nội dung

Bản mẫu:YYYY in nationality cinema category header

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]

Bản mẫu được dùng để tạo một thể loại có định dạng "Điện ảnh "quốc gia" năm YYYY", trong đó YYYY là năm có 4 chữ số.

v.d.

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

Cơ bản[sửa mã nguồn]

{{YYYY in nationality cinema category header}}

Việc sử dụng ở mức cơ bản không yêu cầu tham số vì bản mẫu sẽ tra cứu các dữ liệu khác.

v.d. ở Thể loại:Điện ảnh Úc năm 1969, không cần thêm tham số nào khác

The other needed data is:

  1. the adjectival form of the country in which the country is located. This is looked up by Bản mẫu:GetAdjectiveFromCountryName

If this lookups fails, then an error is reported unless the required data is supplied by an optional parameter.

That may be due to this category being misnamed, or it may be due to an omission in the lookup table used by Bản mẫu:GetAdjectiveFromCountryName. (Some former countries may have been omitted. Also, when country has been renamed, the lookup uses only the current country name).

If a lookup fails, then the template creates no output other than an error message. If you are satisfied that the category is correctly named, use the one of the optional parameters below.

Optional parameters[sửa mã nguồn]

  • |nationality=Fooish bypasses the lookup of the nationality, and uses "Fooish"
  • |parentnationality=AnotherCountry is available for use when a country is part of another country.
  • |diagnose=yes turns on diagnostics, which may help if the template doesn't work as expected

Tracking[sửa mã nguồn]

Use of the |parentnationality= parameter is tracked in:

Categories where country lookup fails are tracked in a category shared with many other templates:

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