21 Aug, 2019
By, Wikipedia
Template:Ship Prefix
3
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‹ The template below (Ship prefix) is being considered for deletion. See templates for discussion to help reach a consensus. ›
3 ("HMS" is listed)
{{Ship prefix|German battleship Tirpitz}}
returns‹ The template below (Ship prefix) is being considered for deletion. See templates for discussion to help reach a consensus. ›
0 ("German" is not listed)
For use in Template:Infobox ship begin, for italicizing titles of ship articles.
See also
String-handling templates (help page) | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
The above documentation is transcluded from Template:Ship prefix/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.