Template:USN fleet totals/doc

This template creates the lists of ship types and their counts at. 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
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.
 * – template returns the total number of ships from the, , , , and tables rounded to the nearest multiple of 5.
 * – template returns the total number of ships from the and  tables rounded to the nearest multiple of 5.
 * – template returns the total number of ships marked with the and  template from the Note column in the tables rounded to the nearest multiple of 5.
 * – template returns the detailed list of ship types and their numbers for use in . Any value assigned to the first positional parameter that is not   or   will be treated as if there were no parameter value at all.