Template:1701-suffix/doc

Jump to navigation Jump to search

Usage[edit source]

Returns the suffix (if there is one) for the vessel name based on the date entered for the vessel hull registry number 1701.

Setting up the suffix data[edit source]

Copy the sample code below:

{{Earth-date-range-variable| 5 May 2024 | 31 Dec 2450 |{{{1}}}| -refit }}

...and paste it into this template before the <noinclude> tag.

The suffix "-refit" will need to be changed to reflect the suffix to name of this vessel (hull number 1701) if it is applicable.

Likewise dates my need to be altered to define a specific range of time that the name was in use.

Additional entries (if needed) can be added using the same format with different dates, thereby building up to form a detailed ship registry history for the vessel. This allows all calls of this template using a target date to display the correct ship name for hull number 1701 for a specific date or time period used in articles and tables throughout the wiki.

Note: Only one entry outlined above need be used if the same ship name had any name suffix added or was used throughout the history of hull registry number 1701.

Important: If the vessel 1701 has never had a suffix appended onto its name, the above example entry could should still be entered into the template, leaving the text parameter empty. This will make all the templates that use or make calls to this one, function properly (by returning a blank).

Additional entries need only be added if the name changed at any point in the vessel's service history.

Example[edit source]

Please include a valid date parameter within the {{vessel/suffix documentation text}} to make the example work!

Entering the following hull registry number and date:

{{1701-suffix | Dec 7, 2271 }}

Renders as:

refit

When used in the as a variable in the {{vessel}} template when the other vessel parameters are employed, such as this example for hull number 1701:

{{vessel
|hull-number   = 1701
|date          = Dec 7, 2271
|number-prefix = classification
|number        = yes
|name-prefix   = link
|name          = link
|suffix        = yes
}}

It renders as:

See also[edit source]

Support templates