模板:Ship prefix/doc
外觀
此頁面是Template:Ship prefix的模板文件。 此頁面可能包含了模板的使用說明、分類和其他內容。 |
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.
See also
[編輯]Template:String templates see also