Template:End of service/doc

From English Wikipedia @ Freddythechick

Usage

This template is used to provide standardized phrasing and machine readability for the tables in List of current ships of the United States Navy. Place this template in the Notes column for non-commissioned ships scheduled to be or proposed for end of service.

This template takes two positional parameters:

  • <syntaxhighlight lang="wikitext" inline="1">{{{1}}}</syntaxhighlight> – (required) one of two keywords that cause the template to return an appropriate phrase; phrases are defined in Module:USN fleet totals/data. The keywords are scheduled and proposed
  • <syntaxhighlight lang="wikitext" inline="1">{{{2}}}</syntaxhighlight> – (optional) year when end of service is expected to occur; must be a four-digit year

Examples

<syntaxhighlight lang="wikitext" inline="1">Lua error in Module:USN_fleet_totals/data at line 65: attempt to index upvalue 'Article_content' (a nil value).</syntaxhighlight> → Lua error in Module:USN_fleet_totals/data at line 65: attempt to index upvalue 'Article_content' (a nil value).

<syntaxhighlight lang="wikitext" inline="1">Lua error in Module:USN_fleet_totals/data at line 65: attempt to index upvalue 'Article_content' (a nil value).</syntaxhighlight> → Lua error in Module:USN_fleet_totals/data at line 65: attempt to index upvalue 'Article_content' (a nil value).

<syntaxhighlight lang="wikitext" inline="1">Lua error in Module:USN_fleet_totals/data at line 65: attempt to index upvalue 'Article_content' (a nil value).</syntaxhighlight> → Lua error in Module:USN_fleet_totals/data at line 65: attempt to index upvalue 'Article_content' (a nil value).

See also

{{decommission}} – for commissioned ships