Template:Ship prefix

Revision as of 09:10, 12 November 2013 by Huntster (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

3

50px Template documentation[view] [edit] [history] [purge]


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


Last modified on 12 November 2013, at 09:10