Difference between revisions of "Template:Ship prefix/doc"

From Wiki
Jump to: navigation, search
(See also: reflect move and transclude not link the navbox, replaced: {{String templates see also}} → {{navbox string handling templates}} using AWB)
 
m (1 revision)
 
(No difference)

Latest revision as of 23:29, 1 February 2014


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