Template:Ship in active service/doc
This is a documentation subpage for Template:Ship in active service. It may contain usage information, categories and other content that is not part of the original template page. |
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
[edit]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:
History | |
---|---|
Country name | |
Status | in active service, as of 2024[update] |
Ship articles whose status is from a previous year will be added to Category:Ships articles in need of updated status.
Parameters
[edit]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}}
→in active service
For ships known to be active in the current year:
{{subst:ship in active service}}
→in active service, as of 2024[update]
For ships known to be active in a previous year:
{{ ship in active service | 2008 }}
→in active service, as of 2008[update]
For ships known to be active at a more specific earlier date:
{{ ship in active service | 2005 | June }}
→in active service, as of June 2005[update]
{{ ship in active service | 2000 | March | 11 }}
→in active service, as of 11 March 2000[update]
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}} }}
→in active service
For editors who have these links enabled (see Wikipedia:As of), this would display as:
- In active service, as of 2024[ref]
See also
[edit]Notes
[edit]- ^ 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.