Jump to content

Template:USN fleet totals/doc

From Wikipedia, the free encyclopedia

This template creates the lists of ship types and their counts at List of current ships of the United States Navy § Fleet totals. It also creates approximate active and planned numbers for the article's leed. The lists of ship types and their counts are created dynamically each time the article is saved or previewed. The modules underlying this template read the unparsed wikitables to extract and count each ship's type from the Type column. The modules then summarize and present the data at § Fleet totals. Approximate and planned numbers for the leed are extracted from the summary data.

Usage[edit]

This template requires the tables in the various sections of the List of current ships of the United States Navy to keep the vertical form that existed on 29 September 2022 (this version).

This template takes one positional parameter.

  • {{USN fleet totals|active}} – template returns the total number of ships from the § Commissioned, § Non-commissioned, § Support, § Ready Reserve Force ships, and § Reserve fleet tables rounded to the nearest multiple of 5.
  • {{USN fleet totals|planned}} – template returns the total number of ships from the § Under construction and § On order tables rounded to the nearest multiple of 5.
  • {{USN fleet totals|retire}} – template returns the total number of ships marked with the {{decommission}} and {{end of service}} template from the Note column in the tables rounded to the nearest multiple of 5.
  • {{USN fleet totals}} – template returns the detailed list of ship types and their numbers for use in § Fleet totals. Any value assigned to the first positional parameter that is not active or planned will be treated as if there were no parameter value at all.