模板:Ship prefix
跳转到导航
跳转到搜索
3
File:Test Template Info-Icon - Version (2).svg 模板文档[查看] [编辑] [历史] [清除缓存]
Usage[编辑]
Returns the length of the first word (i.e. the number of characters before the first space) if that word is one of the ship prefixes listed in the template code; returns 0 otherwise. For example:
- {{Ship prefix|HMS Victory}} returns 3 ("HMS" is listed)
- {{Ship prefix|German battleship Tirpitz}} returns 0 ("German" is not listed)
For use in Template:Infobox ship begin, for italicizing titles of ship articles.