Şablon:Ship prefix
<!--
-- -- Ship prefix - Get length code from ship prefix letters
-- --
--> SS MS MV ARA HMS RMS SMS TCG USS RFA INS CSS HMCS<!-- then--> +4 +3}}
}} USNS RMAS USAS HMAS USRC CCGS HMVS USAFS HMNZS
}}}}<!--endexpr--
--
--------------------------------------------------------------
--
--NOTES
--
-- NOTE A1: This template gets the length for a ship prefix
-- code (such as: SS=2, HMS=3, SMS=3,. ). By using only
-- 2 steps, it initially compares the first 3 letters,
-- then it compares 5 letters (including any space
-- character) to the 4-or-5-letter ship prefixes.