Template:End of service/doc
![]() | This is a documentation subpage for Template:End of service. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template uses Lua: |
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
andproposed
- <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