Bản mẫu:Ship in active service/doc
Đây là một trang con tài liệu sử dụng bản mẫu dành cho Bản mẫu:Ship in active service. Nó gồm có các thông tin hướng dẫn sử dụng, thể loại và các nội dung khác không thuộc về phần trang bản mẫu gốc. |
This template is designed for use in the ship infobox of articles on ships that are in active service. The template uses Template:As of, so any changes to that template may be reflected in this template even if this one has not been edited.
Usage[sửa mã nguồn]
Add {{subst:ship in active service}}
to the field "Ship status"[1] like this:
|Ship status={{ship in active service}}
This will display as in the sample infobox at right:
Lịch sử | |
---|---|
Country name | |
Tình trạng | Đang hoạt động, tính đến năm 2024[cập nhật] |
Ship articles whose status is from a previous year will be added to Category:Ships articles in need of updated status.
Parameters[sửa mã nguồn]
When substed, the template will default to using the current year, 2024, but for ships where the status is known only for an earlier year or date, optional parameters can display the earlier date.
{{subst:ship in active service}}
{{ship in active service|year|month|day|url=}}
If no year parameter is defined and the template is transcluded, no year will be shown and the article will be added to the category Category:Ships articles with undated status.
{{ship in active service}}
→Đang hoạt động
For ships known to be active in the current year:
{{subst:ship in active service}}
→Đang hoạt động, tính đến năm 2024[cập nhật]
For ships known to be active in a previous year:
{{ship in active service|2008}}
→Đang hoạt động, tính đến năm 2008[cập nhật]
For ships known to be active at a more specific earlier date:
{{ship in active service|2005|June}}
→Đang hoạt động, tính đến tháng 6 năm 2005[cập nhật]
{{ship in active service|2000|March|11}}
→Đang hoạt động, tính đến ngày 11 tháng 3 năm 2000[cập nhật]
To provide a link through which future editors might check to see if the ship's status has been changed, use the url
field. For example, for USS Enterprise (CVN-65), enter this:
{{ship in active service|url={{NVR url|id=CVN65}}}}
→Đang hoạt động
For editors who have these links enabled (see Wikipedia:As of), this would display as:
- In active service, as of 2024[ref]
See also[sửa mã nguồn]
Notes[sửa mã nguồn]
- ^ Despite the name of the template, it is better placed in the "Ship status" field rather than "Ship fate"; status implies an on-going condition, where fate implies a final, perhaps irreversible, condition.